From 02547b8f65d84fd212813a80e820e2efd582281e Mon Sep 17 00:00:00 2001 From: saibotk Date: Fri, 14 Aug 2020 19:42:34 +0200 Subject: [PATCH] Add source code link to index page --- layouts/index.html | 37 ++++++++++++++++++++++++++++++++++++ layouts/partials/footer.html | 7 +++++++ 2 files changed, 44 insertions(+) create mode 100644 layouts/index.html create mode 100644 layouts/partials/footer.html diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..28dcb14 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,37 @@ +{{ define "head" }} + {{ if .Site.Params.bgImg -}} + + {{- else if .Site.Params.images -}} + {{- range first 1 .Site.Params.images -}} + + {{- end -}} + {{- end -}} +{{ end }} + +{{ define "main" }} + {{- if (or .Site.Params.images .Site.Params.bgImg) }} +
+ {{- end }} +
+
+

{{ .Site.Title }}

+ {{- with .Site.Params.homeSubtitle }} +

{{.}}

+ {{- end }} + {{- with .Site.Params.social }} +
+ {{ partialCached "social-icons.html" . }} +
+ {{- end }} + +
+ +
+{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..2e20daa --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,7 @@ +