[index,themes/*] Make motto opt-in based on frontmatter, improve footer
This commit is contained in:
		| @@ -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,7 +1,19 @@ | ||||
| {{ $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") }} | ||||
|   {{ 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"> | ||||
|     <small> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user