[index,themes/*] Make motto opt-in based on frontmatter, improve footer
This commit is contained in:
@ -10,7 +10,6 @@ tags:
|
|||||||
- high performance
|
- high performance
|
||||||
- research
|
- research
|
||||||
- computer science
|
- computer science
|
||||||
- non profit
|
|
||||||
---
|
---
|
||||||
|
|
||||||
{{< flexcolumn style="justify-content:center;align-items:center" >}}
|
{{< flexcolumn style="justify-content:center;align-items:center" >}}
|
||||||
|
@ -161,7 +161,7 @@ thead th
|
|||||||
flex-wrap: wrap
|
flex-wrap: wrap
|
||||||
justify-content: right
|
justify-content: right
|
||||||
gap: $large-spacer
|
gap: $large-spacer
|
||||||
margin: $large-spacer $huge-spacer $large-spacer $large-spacer
|
margin: $large-spacer $huge-spacer $large-spacer auto
|
||||||
|
|
||||||
.button, .button:hover
|
.button, .button:hover
|
||||||
background-color: transparent
|
background-color: transparent
|
||||||
@ -187,6 +187,12 @@ thead th
|
|||||||
min-height: 16px
|
min-height: 16px
|
||||||
margin-bottom: 0px
|
margin-bottom: 0px
|
||||||
|
|
||||||
|
.footer-elements
|
||||||
|
display: flex
|
||||||
|
flex-direction: row
|
||||||
|
flex-wrap: wrap
|
||||||
|
align-items: stretch
|
||||||
|
justify-content: space-between
|
||||||
.footer
|
.footer
|
||||||
text-align: center
|
text-align: center
|
||||||
padding-top: $large-spacer
|
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 class="container parent-link" style="display:flex; flex-direction: row; justify-content: space-around; margin-top: 2em;">
|
||||||
</div>
|
</div>
|
||||||
<div class="container motto">
|
|
||||||
<small><em>For the glory of mankind.</em></small>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -1,7 +1,19 @@
|
|||||||
|
{{ $hasGetintouch := default false (index .Params "get_in_touch") }}
|
||||||
|
{{ $hasMotto := or .IsHome ( default false (index .Params "motto")) }}
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
{{ if default false (index .Params "get_in_touch") }}
|
{{ 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" . -}}
|
{{- partial "getintouch.html" . -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<div class="container footer">
|
<div class="container footer">
|
||||||
<small>
|
<small>
|
||||||
|
Reference in New Issue
Block a user