diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-24 03:20:47 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-24 03:20:47 +0000 |
commit | f24f2d15275961f1c0144e68fde75a60aeaaa165 (patch) | |
tree | 38be1626f3ade436fbd17eadb2753fa2f0effb37 /themes/even/layouts/_default | |
parent | bf04383b34c4a4fdfe239de2805a30a051921002 (diff) | |
download | capotej.com-f24f2d15275961f1c0144e68fde75a60aeaaa165.tar.gz |
move to bear theme
Diffstat (limited to 'themes/even/layouts/_default')
-rw-r--r-- | themes/even/layouts/_default/baseof.html | 46 | ||||
-rw-r--r-- | themes/even/layouts/_default/section.html | 50 | ||||
-rw-r--r-- | themes/even/layouts/_default/single.html | 7 | ||||
-rw-r--r-- | themes/even/layouts/_default/single.md | 1 | ||||
-rw-r--r-- | themes/even/layouts/_default/taxonomy.html | 46 | ||||
-rw-r--r-- | themes/even/layouts/_default/terms.html | 44 |
6 files changed, 0 insertions, 194 deletions
diff --git a/themes/even/layouts/_default/baseof.html b/themes/even/layouts/_default/baseof.html deleted file mode 100644 index 0693148..0000000 --- a/themes/even/layouts/_default/baseof.html +++ /dev/null @@ -1,46 +0,0 @@ -{{ if ne .Site.Params.version "3.x" -}} -{{ errorf "\n\nThere are two possible situations that led to this error:\n 1. You haven't copied the config.toml yet. See https://github.com/olOwOlo/hugo-theme-even#installation \n 2. You have an incompatible update. See https://github.com/olOwOlo/hugo-theme-even/blob/master/CHANGELOG.md#300 \n\n有两种可能的情况会导致这个错误发生:\n 1. 你还没有复制 config.toml 参考 https://github.com/olOwOlo/hugo-theme-even/blob/master/README-zh.md#installation \n 2. 你进行了一次不兼容的更新 参考 https://github.com/olOwOlo/hugo-theme-even/blob/master/CHANGELOG.md#300 \n" -}} -{{ end -}} -<!DOCTYPE html> -<html lang="{{ .Site.Language }}"> -<head> - <meta charset="utf-8"> - <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> - <title> - {{- block "title" . -}} - {{ if .IsPage }}{{ .Title }} - {{ .Site.Title }}{{ else }}{{ .Site.Title }}{{ end }} - {{- end -}} - </title> - {{ partial "head.html" . }} -</head> -<body> - {{ partial "slideout.html" . }} - <div class="container" id="mobile-panel"> - {{ if not .Params.hideHeaderAndFooter -}} - <header id="header" class="header"> - {{ partial "header.html" . }} - </header> - {{- end }} - - <main id="main" class="main"> - <div class="content-wrapper"> - <div id="content" class="content"> - {{ block "content" . }}{{ end }} - </div> - {{ partial "comments.html" . }} - </div> - </main> - - {{ if not .Params.hideHeaderAndFooter -}} - <footer id="footer" class="footer"> - {{ partial "footer.html" . }} - </footer> - {{- end }} - - <div class="back-to-top" id="back-to-top"> - <i class="iconfont icon-up"></i> - </div> - </div> - {{ partial "scripts.html" . }} -</body> -</html> diff --git a/themes/even/layouts/_default/section.html b/themes/even/layouts/_default/section.html deleted file mode 100644 index fbe80f1..0000000 --- a/themes/even/layouts/_default/section.html +++ /dev/null @@ -1,50 +0,0 @@ -{{ define "title" }}{{ T "archive" }} - {{ .Site.Title }}{{ end }} - -{{ define "content"}} -{{- $paginator := .Paginate .Data.Pages.ByDate.Reverse .Site.Params.archivePaginate }} -<section id="archive" class="archive"> - {{- if and (not $paginator.HasPrev) .Site.Params.showArchiveCount }} - <div class="archive-title"> - <span class="archive-post-counter"> - {{ T "archiveCounter" (len .Data.Pages) }} - </span> - </div> - {{- end -}} - - {{- range $index, $element := $paginator.Pages -}} - {{- $thisYear := $element.Date.Format "2006" }} - {{- $lastElement := $index | add -1 | index $paginator.Pages }} - {{ if or (eq $index 0) ( ne ($lastElement.Date.Format "2006") $thisYear ) }} - <div class="collection-title"> - <h2 class="archive-year">{{ $thisYear }}</h2> - </div> - {{- end }} - - <div class="archive-post"> - <span class="archive-post-time"> - {{ $element.Date.Format "01-02" }} - </span> - <span class="archive-post-title"> - <a href="{{ $element.URL }}" class="archive-post-link"> - {{ .Title }} - </a> - </span> - </div> - {{- end -}} -</section> -<!-- pagination --> -<nav class="pagination"> - {{ with $paginator.Prev -}} - <a class="prev" href="{{ .URL }}"> - <i class="iconfont icon-left"></i> - <span class="prev-text">{{ T "prevPage" }}</span> - </a> - {{- end }} - {{ with $paginator.Next -}} - <a class="next" href="{{ .URL }}"> - <span class="next-text">{{ T "nextPage" }}</span> - <i class="iconfont icon-right"></i> - </a> - {{- end }} -</nav> -{{ end }} diff --git a/themes/even/layouts/_default/single.html b/themes/even/layouts/_default/single.html deleted file mode 100644 index a1c30fd..0000000 --- a/themes/even/layouts/_default/single.html +++ /dev/null @@ -1,7 +0,0 @@ -{{ define "content" -}} -<article class="post"> - <div class="post-content"> - {{ .Content }} - </div> -</article> -{{- end }}
\ No newline at end of file diff --git a/themes/even/layouts/_default/single.md b/themes/even/layouts/_default/single.md deleted file mode 100644 index 57705e2..0000000 --- a/themes/even/layouts/_default/single.md +++ /dev/null @@ -1 +0,0 @@ -{{ .RawContent }}
\ No newline at end of file diff --git a/themes/even/layouts/_default/taxonomy.html b/themes/even/layouts/_default/taxonomy.html deleted file mode 100644 index d0c8d43..0000000 --- a/themes/even/layouts/_default/taxonomy.html +++ /dev/null @@ -1,46 +0,0 @@ -{{ define "title" }}{{ .Title }} · {{ .Site.Title }}{{ end }} - -{{ define "content"}} -{{ $paginator := .Paginate .Data.Pages.ByDate.Reverse .Site.Params.archivePaginate }} -<section id="archive" class="archive"> - {{ if not $paginator.HasPrev }} - {{ if eq .Data.Plural "tags" }} - <div class="archive-title tag"> - <h2 class="archive-name">{{ .Title }}</h2> - </div> - {{ else if eq .Data.Plural "categories" }} - <div class="archive-title category"> - <h2 class="archive-name">{{ .Title }}</h2> - </div> - {{ end }} - {{ end }} - - {{ range $paginator.Pages }} - <div class="archive-post"> - <span class="archive-post-time"> - {{ .Date.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }} - </span> - <span class="archive-post-title"> - <a href="{{ .URL }}" class="archive-post-link"> - {{ .Title }} - </a> - </span> - </div> - {{ end }} -</section> -<!-- pagination --> -<nav class="pagination"> - {{ with $paginator.Prev }} - <a class="prev" href="{{ .URL }}"> - <i class="iconfont icon-left"></i> - <span class="prev-text">{{ T "prevPage" }}</span> - </a> - {{- end }} - {{ with $paginator.Next }} - <a class="next" href="{{ .URL }}"> - <span class="next-text">{{ T "nextPage" }}</span> - <i class="iconfont icon-right"></i> - </a> - {{- end }} -</nav> -{{ end }} diff --git a/themes/even/layouts/_default/terms.html b/themes/even/layouts/_default/terms.html deleted file mode 100644 index 04b98f8..0000000 --- a/themes/even/layouts/_default/terms.html +++ /dev/null @@ -1,44 +0,0 @@ -{{ define "title" }}{{ T .Data.Plural }} - {{ .Site.Title }}{{ end }} - -{{ define "content" }} - {{ $name := .Data.Plural -}} - {{ $terms := .Data.Terms.ByCount -}} - {{ $length := len $terms -}} - {{ if eq $name "categories" }} - <div class="categories"> - <div class="categories-title"> - {{ if eq $length 0 }} - {{ T "zeroCategoryCounter" }} - {{ else }} - {{ T "categoryCounter" $length }} - {{ end }} - </div> - <div class="categories-tags"> - {{ range $key, $value := $terms }} - <a class="category-link" href="{{ $name | relLangURL }}/{{ $value.Term | urlize }}/"> - {{ $value.Term }} - <span class="category-count">{{ len $value.Pages }}</span> - </a> - {{ end }} - </div> - </div> - {{ else if eq $name "tags" }} - <div class="tag-cloud"> - <div class="tag-cloud-title"> - {{ if eq $length 0 }} - {{ T "zeroTagCounter" }} - {{ else }} - {{ T "tagCounter" $length }} - {{ end }} - </div> - <div class="tag-cloud-tags"> - {{ range $key, $value := $terms }} - <a href="{{ $name | relLangURL }}/{{ $value.Term | urlize }}/"> - {{ $value.Term }} - <span class="tag-count">{{ len $value.Pages }}</span> - </a> - {{ end }} - </div> - </div> - {{ end }} -{{ end }}
\ No newline at end of file |