diff --git a/blog/themes/mineral/layouts/404.html b/blog/themes/mineral/layouts/404.html index e69de29..9cc4626 100644 --- a/blog/themes/mineral/layouts/404.html +++ b/blog/themes/mineral/layouts/404.html @@ -0,0 +1,23 @@ +{{ partial "header.html" . }} +
+
+
+
+
+

Page not found

+

The page you are looking for does not exist.

+ Go to home page +
+
+
+
+
+{{ partial "footer.html" . }} + +{{ define "main" }} +
+

Page not found

+

The page you are looking for does not exist.

+ Go back to the home page. +
+{{ end }} \ No newline at end of file diff --git a/blog/themes/mineral/layouts/_default/baseof.html b/blog/themes/mineral/layouts/_default/baseof.html index b2a0242..0d232fc 100644 --- a/blog/themes/mineral/layouts/_default/baseof.html +++ b/blog/themes/mineral/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - + {{- partial "head.html" . -}}
diff --git a/blog/themes/mineral/layouts/_default/list.html b/blog/themes/mineral/layouts/_default/list.html index e69de29..8605e0d 100644 --- a/blog/themes/mineral/layouts/_default/list.html +++ b/blog/themes/mineral/layouts/_default/list.html @@ -0,0 +1,36 @@ +{{ define "main" }} +
+ {{ $paginator := .Paginate ( where site.RegularPages "Type" "in" site.Params.mainSections ) }} +
+ + {{ range $paginator.Pages }} +
+ {{ range .Params.categories }} + {{ . }} + {{ end }} +

{{ .Title }}

+

{{.Date.Format "January 2, 2006"}}

+

{{ .Summary | plainify | htmlUnescape }}

+

+ {{ range .Params.tags }} + #{{ . }} + {{ end }} +

+
+ {{ end }} +
+ + {{ if gt $paginator.TotalPages 1 }} +
+ +
+ {{ end }} +{{ end }} \ No newline at end of file diff --git a/blog/themes/mineral/layouts/_default/single.html b/blog/themes/mineral/layouts/_default/single.html index e69de29..982369d 100644 --- a/blog/themes/mineral/layouts/_default/single.html +++ b/blog/themes/mineral/layouts/_default/single.html @@ -0,0 +1,40 @@ +{{ define "main" }} +
+ {{ range .Params.categories }} + {{ . }} + {{ end }} +
+ +
+ {{ .Content }} +
+ + {{ if .Params.tags }} +
+

+ Tagged: + {{ range .Params.tags }} + #{{ . }} + {{ end }} +

+
+ {{ end }} + + + +{{ end }} diff --git a/blog/themes/mineral/layouts/_default/taxonomy.html b/blog/themes/mineral/layouts/_default/taxonomy.html new file mode 100644 index 0000000..37144cc --- /dev/null +++ b/blog/themes/mineral/layouts/_default/taxonomy.html @@ -0,0 +1,37 @@ +{{ define "main" }} +
+ {{ $paginator := .Paginate ( where site.RegularPages "Type" "in" site.Params.mainSections ) }} + {{ $paginator = .Data }} +
+ + {{ range $paginator.Pages }} +
+ {{ range .Params.categories }} + {{ . }} + {{ end }} +

{{ .Title }}

+

{{.Date.Format "January 2, 2006"}}

+

{{ .Summary | plainify | htmlUnescape }}

+

+ {{ range .Params.tags }} + #{{ . }} + {{ end }} +

+
+ {{ end }} +
+ + {{ if gt $paginator.TotalPages 1 }} +
+ +
+ {{ end }} +{{ end }} \ No newline at end of file diff --git a/blog/themes/mineral/layouts/_default/terms.html b/blog/themes/mineral/layouts/_default/terms.html new file mode 100644 index 0000000..1bde1c4 --- /dev/null +++ b/blog/themes/mineral/layouts/_default/terms.html @@ -0,0 +1,36 @@ +{{ define "main" }} +
+ {{ $paginator := .Paginate ( where site.RegularPages "Type" "in" site.Params.mainSections ) }} + {{ $paginator = .Data }} +
+ + {{ range $paginator.Pages }} +
+ {{ range .Params.categories }} + {{ . }} + {{ end }} +

{{ .Title }}

+

{{ .Summary | plainify | htmlUnescape }}

+

+ {{ range .Params.tags }} + #{{ . }} + {{ end }} +

+
+ {{ end }} +
+ + {{ if gt $paginator.TotalPages 1 }} +
+ +
+ {{ end }} +{{ end }} \ No newline at end of file diff --git a/blog/themes/mineral/layouts/index.html b/blog/themes/mineral/layouts/index.html deleted file mode 100644 index e69de29..0000000 diff --git a/blog/themes/mineral/layouts/partials/footer.html b/blog/themes/mineral/layouts/partials/footer.html index da43129..37865be 100644 --- a/blog/themes/mineral/layouts/partials/footer.html +++ b/blog/themes/mineral/layouts/partials/footer.html @@ -1,5 +1,14 @@ +
-
-

copyright (c) 2021 steven ye

+ +
+
+
+

{{ .Site.Title }} copyright 2021 {{ .Site.Copyright }}

\ No newline at end of file diff --git a/blog/themes/mineral/layouts/partials/head.html b/blog/themes/mineral/layouts/partials/head.html index 740fbd7..c7df091 100644 --- a/blog/themes/mineral/layouts/partials/head.html +++ b/blog/themes/mineral/layouts/partials/head.html @@ -1,6 +1,6 @@ - MT_TITLE + {{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }} @@ -10,9 +10,9 @@ - - + + - + \ No newline at end of file diff --git a/blog/themes/mineral/layouts/partials/header.html b/blog/themes/mineral/layouts/partials/header.html index d24c2b9..5bd050e 100644 --- a/blog/themes/mineral/layouts/partials/header.html +++ b/blog/themes/mineral/layouts/partials/header.html @@ -1,6 +1,16 @@
-
-

MT_SITE_TITLE

-

MT_SITE_SUBTITLE

+
+

+ {{ if not .IsHome }} + {{ if eq .Kind "taxonomy" }} + {{ .Title | lower }} + {{ else }} + {{ .Title }} + {{ end }} + - + {{ end }} + {{ .Site.Title }} +

+ {{ if .IsHome }}

{{ .Site.Params.Description }}

{{ end }}
\ No newline at end of file