aboutsummaryrefslogtreecommitdiff
path: root/themes/even/layouts/post
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-24 03:20:47 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-24 03:20:47 +0000
commitf24f2d15275961f1c0144e68fde75a60aeaaa165 (patch)
tree38be1626f3ade436fbd17eadb2753fa2f0effb37 /themes/even/layouts/post
parentbf04383b34c4a4fdfe239de2805a30a051921002 (diff)
downloadcapotej.com-f24f2d15275961f1c0144e68fde75a60aeaaa165.tar.gz
move to bear theme
Diffstat (limited to '')
-rw-r--r--themes/even/layouts/post/single.html73
-rw-r--r--themes/even/layouts/post/summary.html28
2 files changed, 0 insertions, 101 deletions
diff --git a/themes/even/layouts/post/single.html b/themes/even/layouts/post/single.html
deleted file mode 100644
index 3be59a6..0000000
--- a/themes/even/layouts/post/single.html
+++ /dev/null
@@ -1,73 +0,0 @@
-{{ define "content" -}}
- <article class="post">
- <!-- post-header -->
- <header class="post-header">
- <h1 class="post-title">{{ .Title }}</h1>
-
- <div class="post-meta">
- <span class="post-time"> {{ .Date.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }} </span>
- {{ with .Params.categories -}}
- <div class="post-category">
- {{ range . }}
- <a href="{{ "categories" | relLangURL }}/{{ . | urlize }}/"> {{ . }} </a>
- {{ end }}
- </div>
- {{- end }}
- {{ if .Site.Params.moreMeta -}}
- <span class="more-meta"> {{ T "wordCount" .WordCount }} </span>
- <span class="more-meta"> {{ T "readingTime" .ReadingTime }} </span>
- {{- end }}
- {{ if and .Site.Params.busuanzi.enable .Site.Params.busuanzi.pagePV -}}
- {{ $valueSpan := printf `<span id="busuanzi_value_page_pv"><img src="%s" alt="spinner.svg"/></span>` ("img/spinner.svg" | relURL) -}}
- <span id="busuanzi_container_page_pv" class="more-meta"> {{ printf (T "pagePV") $valueSpan | safeHTML }} </span>
- {{- end }}
- </div>
- </header>
-
- <!-- TOC -->
- {{ partial "post/toc.html" . }}
-
- <!-- Outdated Info Warning -->
- {{ partial "post/outdated-info-warning.html" . }}
-
- {{ with .Params.tags -}}
- <div class="post-tags">
- {{ range . }}
- <a href="{{ "tags" | relLangURL }}/{{ . | urlize }}/">{{ . }}</a>
- {{ end }}
- </div>
- {{- end }}
-
- <!-- Content -->
- <div class="post-content">
- {{ .Content }}
- </div>
-
- <!-- Copyright -->
- {{ partial "post/copyright.html" . }}
-
- <!-- Reward -->
- {{ partial "post/reward.html" . }}
-
- <footer class="post-footer">
-
- <!-- Post Pagination -->
- <nav class="post-nav">
- {{ with .NextInSection }}
- <a class="prev" href="{{ .URL }}">
- <i class="iconfont icon-left"></i>
- <span class="prev-text nav-default">{{ .Title }}</span>
- <span class="prev-text nav-mobile">{{ T "prevPost" }}</span>
- </a>
- {{- end }}
- {{ with .PrevInSection }}
- <a class="next" href="{{ .URL }}">
- <span class="next-text nav-default">{{ .Title }}</span>
- <span class="next-text nav-mobile">{{ T "nextPost" }}</span>
- <i class="iconfont icon-right"></i>
- </a>
- {{- end }}
- </nav>
- </footer>
- </article>
-{{- end }}
diff --git a/themes/even/layouts/post/summary.html b/themes/even/layouts/post/summary.html
deleted file mode 100644
index 6069ca1..0000000
--- a/themes/even/layouts/post/summary.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<article class="post">
- <header class="post-header">
- <h1 class="post-title"><a class="post-link" href="{{ .URL }}">{{ .Title }}</a></h1>
- <div class="post-meta">
- <span class="post-time"> {{ .Date.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }} </span>
- {{ with .Params.categories -}}
- <div class="post-category">
- {{ range . }}
- <a href="{{ "categories" | relLangURL }}/{{ . | urlize }}/"> {{ . }} </a>
- {{ end }}
- </div>
- {{- end }}
- {{ if .Site.Params.moreMeta -}}
- <span class="more-meta"> {{ T "wordCount" .WordCount }} </span>
- <span class="more-meta"> {{ T "readingTime" .ReadingTime }} </span>
- {{- end }}
- </div>
- </header>
- <!-- Content -->
- <div class="post-content">
- <div class="post-summary">
- {{ .Summary }}
- </div>
- <div class="read-more">
- <a href="{{ .URL }}" class="read-more-link">{{ T "readMore" }}</a>
- </div>
- </div>
-</article>