From ca4e418a986eb20c10f4a8b02fe1b17632ac6c44 Mon Sep 17 00:00:00 2001 From: Angelo Stavrow Date: Fri, 27 Sep 2019 09:19:51 -0400 Subject: Remove forward-slash URLs in HTML files (#57) --- layouts/404.html | 2 +- layouts/partials/footer.html | 2 +- layouts/partials/head.html | 18 +++++++++--------- layouts/partials/header.html | 2 +- layouts/partials/social.html | 28 ++++++++++++++-------------- 5 files changed, 26 insertions(+), 26 deletions(-) (limited to 'layouts') diff --git a/layouts/404.html b/layouts/404.html index 1f0e7bb..248651d 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -3,7 +3,7 @@ {{ partial "head.html" . }}
{{ partial "pagenav.html" . }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 864138b..35f8718 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,7 +1,7 @@ {{ if .Site.Params.ShowBio }}
- +

{{ .Site.Params.Author }}

diff --git a/layouts/partials/head.html b/layouts/partials/head.html index b6aab03..60cfd32 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -5,11 +5,11 @@ - - - - - + + + + + @@ -20,10 +20,10 @@ - - - {{ if (fileExists "/static/css/custom.css") -}} - + + + {{ if (fileExists "static/css/custom.css") -}} + {{- end }} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e2a1dc0..a9b7a2e 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -3,7 +3,7 @@ {{ partial "head.html" . }}

{{ partial "pagenav.html" . }} diff --git a/layouts/partials/social.html b/layouts/partials/social.html index cf9a08a..f43d1f5 100644 --- a/layouts/partials/social.html +++ b/layouts/partials/social.html @@ -2,72 +2,72 @@
{{ if isset .Site.Params "emailaddress" }}
- +
{{ end }} {{ if isset .Site.Params "facebookuser" }}
- +
{{ end }} {{ if isset .Site.Params "flickruser" }}
- +
{{ end }} {{ if isset .Site.Params "githubuser" }}
- +
{{ end }} {{ if isset .Site.Params "gitlabuser" }}
- +
{{ end }} {{ if isset .Site.Params "glitchuser" }}
- +
{{ end }} {{ if isset .Site.Params "keybaseuser" }}
- +
{{ end }} {{ if isset .Site.Params "linkedinuser" }}
- +
{{ end }} {{ if isset .Site.Params "mediumuser" }}
- +
{{ end }} {{ if isset .Site.Params "microbloguser" }}
- +
{{ end }} {{ if isset .Site.Params "reddituser" }}
- +
{{ end }} {{ if isset .Site.Params "stackoverflowuser" }}
- +
{{ end }} {{ if isset .Site.Params "tumblruser" }}
- +
{{ end }} {{ if isset .Site.Params "twitteruser" }}
- +
{{ end }}
-- cgit v1.2.3 From 1848457904ec73625421874db40c2f7a19559d59 Mon Sep 17 00:00:00 2001 From: Angelo Stavrow Date: Mon, 30 Sep 2019 08:25:19 -0400 Subject: Use mainSections configuration parameter in list templates (#56) --- layouts/_default/list.html | 2 +- layouts/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'layouts') diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 4af97c7..c975ac5 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,7 +1,7 @@ {{ partial "header.html" . }}

{{ .Title }}

-{{ range $index, $page := (.Paginate (where .Site.RegularPages "Type" "post")).Pages }} +{{ range $index, $page := (.Paginate (where .Site.RegularPages "Type" "in" site.Params.mainSections)).Pages }} {{ if ne $index 0 }} {{ end }} {{ .Render "li" }} diff --git a/layouts/index.html b/layouts/index.html index 4e973ac..3b02c07 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,7 +3,7 @@
-{{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "post") ".Params.hidden" "!=" "true" )).Pages }} +{{ range $index, $page := (.Paginate (where (where .Site.RegularPages "Type" "in" site.Params.mainSections) ".Params.hidden" "!=" "true" )).Pages }} {{ if ne $index 0 }} {{ end }} {{ .Render "li" }} -- cgit v1.2.3