diff --git a/themes/shockrah.xyz/layouts/index.html b/themes/shockrah.xyz/layouts/index.html index 90b835d..66a1b73 100644 --- a/themes/shockrah.xyz/layouts/index.html +++ b/themes/shockrah.xyz/layouts/index.html @@ -3,10 +3,19 @@ {{- partial "head.html" . -}} {{- partial "header.html" . -}} -
-
- - +
+
+
+ + {{ $articles := where .Site.Pages "Params.Category" "article" }} + {{ range $articles }} +

{{ .Title }}

+

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

+ {{ if isset .Params "description" }} +

{{ .Description }}

+ {{ end }} + {{ end }} +
diff --git a/themes/shockrah.xyz/layouts/partials/head.html b/themes/shockrah.xyz/layouts/partials/head.html index 811cdd5..51e37c4 100644 --- a/themes/shockrah.xyz/layouts/partials/head.html +++ b/themes/shockrah.xyz/layouts/partials/head.html @@ -3,7 +3,8 @@ - {{ $title := print .Site.Title " | " .Title }} + + {{ $title := print .Title }} {{ if .IsHome }}{{ $title = .Site.Title}}{{end}} {{ $title }} diff --git a/themes/shockrah.xyz/layouts/partials/metadata.html b/themes/shockrah.xyz/layouts/partials/metadata.html index 141e247..e60623c 100644 --- a/themes/shockrah.xyz/layouts/partials/metadata.html +++ b/themes/shockrah.xyz/layouts/partials/metadata.html @@ -2,9 +2,9 @@ {{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }} {{ with .Params.tags }} -{{ range . }} -{{ $href := print (absURL "tags/") (urlize .) }} -{{ . }} -{{ end }} + {{ range . }} + {{ $href := print (absURL "tags/") (urlize .) }} + {{ . }} + {{ end }} {{ end }} diff --git a/themes/shockrah.xyz/layouts/partials/posts.html b/themes/shockrah.xyz/layouts/partials/posts.html new file mode 100644 index 0000000..61cd393 --- /dev/null +++ b/themes/shockrah.xyz/layouts/partials/posts.html @@ -0,0 +1,13 @@ +{{ define "main" }} +

{{ .Title }}

+ {{ range .Pages.ByPublishDate.Reverse }} +

+

{{ .Title }}

+ {{ partial "metadata.html" }} + +

{{ .Summary }}

+
+

+ {{ end }} +{{ end }} +