From ee23ecef7f2d7e21e6f8bf7134c768afb5efbc4a Mon Sep 17 00:00:00 2001 From: Lorenzo Cogotti Date: Thu, 24 Mar 2022 08:52:03 +0100 Subject: [PATCH] [index,themes/*] Make motto opt-in based on frontmatter, improve footer --- content/_index.md | 1 - themes/doublefourteen/assets/sass/style.sass | 8 +++++++- themes/doublefourteen/layouts/index.html | 3 --- .../doublefourteen/layouts/partials/footer.html | 16 ++++++++++++++-- 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/content/_index.md b/content/_index.md index f0e8a9c..92a9859 100644 --- a/content/_index.md +++ b/content/_index.md @@ -10,7 +10,6 @@ tags: - high performance - research - computer science - - non profit --- {{< flexcolumn style="justify-content:center;align-items:center" >}} diff --git a/themes/doublefourteen/assets/sass/style.sass b/themes/doublefourteen/assets/sass/style.sass index 7b9614b..73e4be2 100644 --- a/themes/doublefourteen/assets/sass/style.sass +++ b/themes/doublefourteen/assets/sass/style.sass @@ -161,7 +161,7 @@ thead th flex-wrap: wrap justify-content: right gap: $large-spacer - margin: $large-spacer $huge-spacer $large-spacer $large-spacer + margin: $large-spacer $huge-spacer $large-spacer auto .button, .button:hover background-color: transparent @@ -187,6 +187,12 @@ thead th min-height: 16px margin-bottom: 0px +.footer-elements + display: flex + flex-direction: row + flex-wrap: wrap + align-items: stretch + justify-content: space-between .footer text-align: center padding-top: $large-spacer diff --git a/themes/doublefourteen/layouts/index.html b/themes/doublefourteen/layouts/index.html index 2c85b10..e183b61 100644 --- a/themes/doublefourteen/layouts/index.html +++ b/themes/doublefourteen/layouts/index.html @@ -28,7 +28,4 @@ -
- For the glory of mankind. -
{{ end }} diff --git a/themes/doublefourteen/layouts/partials/footer.html b/themes/doublefourteen/layouts/partials/footer.html index 5fb7714..e4fd3ce 100644 --- a/themes/doublefourteen/layouts/partials/footer.html +++ b/themes/doublefourteen/layouts/partials/footer.html @@ -1,6 +1,18 @@ +{{ $hasGetintouch := default false (index .Params "get_in_touch") }} +{{ $hasMotto := or .IsHome ( default false (index .Params "motto")) }} +