[index,themes/*] Make motto opt-in based on frontmatter, improve footer
This commit is contained in:
parent
874f6daa44
commit
ee23ecef7f
|
@ -10,7 +10,6 @@ tags:
|
|||
- high performance
|
||||
- research
|
||||
- computer science
|
||||
- non profit
|
||||
---
|
||||
|
||||
{{< flexcolumn style="justify-content:center;align-items:center" >}}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -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…
Reference in New Issue