From d4b977b1ee931ec083f171b806374d67dc0a3111 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sun, 10 Oct 2021 19:58:55 -0700 Subject: [PATCH] Statically define the social icons --- layouts/_default/baseof.html | 9 --------- layouts/partials/head.html | 2 -- layouts/partials/header.html | 19 +++++++++---------- 3 files changed, 9 insertions(+), 21 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 26ed7e6..591a1bf 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,13 +1,4 @@ - -{{ $.Scratch.Delete "social-list" }} -{{ $social := slice "twitter" "github" "instagram" }} -{{ range $social }} -{{ if isset site.Params . }} -{{ $.Scratch.Add "social-list" (slice .) }} -{{ end }} -{{ end }} - {{ partial "head.html" . }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 694be9d..aae5d29 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -17,9 +17,7 @@ {{ $app_css := resources.Get "app.css" }} - {{ $custom_css := resources.Get "style.css" }} - {{ $css := slice $app_css $custom_css | resources.Concat "app.css" | minify }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 46e15c1..ec26b54 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -12,16 +12,15 @@ {{ end }} - {{ with $.Scratch.Get "social-list" }} - {{ end }}