Browse Source

[index,themes/*] Make motto opt-in based on frontmatter, improve footer

master
Lorenzo Cogotti 5 months ago
parent
commit
ee23ecef7f
  1. 1
      content/_index.md
  2. 8
      themes/doublefourteen/assets/sass/style.sass
  3. 3
      themes/doublefourteen/layouts/index.html
  4. 16
      themes/doublefourteen/layouts/partials/footer.html

1
content/_index.md

@ -10,7 +10,6 @@ tags:
- high performance
- research
- computer science
- non profit
---
{{< flexcolumn style="justify-content:center;align-items:center" >}}

8
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

3
themes/doublefourteen/layouts/index.html

@ -28,7 +28,4 @@
<div class="container parent-link" style="display:flex; flex-direction: row; justify-content: space-around; margin-top: 2em;">
</div>
<div class="container motto">
<small><em>For the glory of mankind.</em></small>
</div>
{{ end }}

16
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")) }}
<footer>
{{ if default false (index .Params "get_in_touch") }}
{{- partial "getintouch.html" . -}}
{{ if or $hasMotto $hasGetintouch }}
<div class="container footer-elements">
{{ if $hasMotto }}
<div class="motto">
<small><em>For the glory of mankind.</em></small>
</div>
{{ end }}
{{ if $hasGetintouch }}
{{- partial "getintouch.html" . -}}
{{ end }}
</div>
{{ end }}
<div class="container footer">

Loading…
Cancel
Save