From f2f2aca76a8c0d91141d510d8d24819e7dfae48b Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 17 Aug 2018 23:29:41 +0100 Subject: [PATCH] Move social list to page layout --- content/about.md | 3 +-- layouts/_default/about.html | 28 ++++++++++++++++++++++++++++ layouts/shortcodes/social_list.html | 19 ------------------- 3 files changed, 29 insertions(+), 21 deletions(-) create mode 100644 layouts/_default/about.html delete mode 100644 layouts/shortcodes/social_list.html diff --git a/content/about.md b/content/about.md index f6af266..f323bf3 100644 --- a/content/about.md +++ b/content/about.md @@ -1,9 +1,8 @@ --- title: About +layout: about --- In the interest of privacy, there's very little personal information here. The information that is here is either not personal enough to bother protecting, or has been selectively chosen as nothing bad. - -{{% social_list %}} diff --git a/layouts/_default/about.html b/layouts/_default/about.html new file mode 100644 index 0000000..aeeb7c8 --- /dev/null +++ b/layouts/_default/about.html @@ -0,0 +1,28 @@ +{{ define "main" }} +
+
+ {{ partial "content.html" . }} + +
+ {{ range $i, $e := sort .Site.Data.social.accounts "name" }} + + {{ end }} +
+
+ {{ partial "share.html" . }} +
+{{ end }} diff --git a/layouts/shortcodes/social_list.html b/layouts/shortcodes/social_list.html deleted file mode 100644 index a372153..0000000 --- a/layouts/shortcodes/social_list.html +++ /dev/null @@ -1,19 +0,0 @@ -
- {{ range $i, $e := sort .Site.Data.social.accounts "name" }} - - {{ end }} -