From 83710f57f69cce08f7eb726cb8c4a3c55f4819b7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Duje=20Mihanovi=C4=87?= Date: Sat, 9 Sep 2023 18:17:07 +0200 Subject: [PATCH] Add recent posts to homepage --- layouts/_default/baseof.html | 9 ++------- layouts/index.html | 11 +++++++++++ layouts/partials/head.html | 10 ++++++++++ layouts/partials/meta.html | 4 ---- 4 files changed, 23 insertions(+), 11 deletions(-) create mode 100644 layouts/index.html create mode 100644 layouts/partials/head.html delete mode 100644 layouts/partials/meta.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index c461663..0fb29c9 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,13 +1,7 @@ - {{ partial "meta.html" . }} - {{ $style := resources.Get "css/style.css" | resources.Minify }} - - {{ $index := $.Site.GetPage "/" }} - {{ range $index.AlternativeOutputFormats }} - {{ printf `` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }} - {{ end }} + {{ partial "head.html" . }} @@ -17,6 +11,7 @@ {{ end }}