Merge pull request #4 from recanman/main

feat: implement footer
This commit is contained in:
rottenwheel 2024-09-06 04:53:35 +00:00 committed by GitHub
commit ef7db9debd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 38 additions and 1 deletions

View file

@ -6,7 +6,7 @@ body {
background: black;
color: white;
}
.container {
.container, footer {
margin: auto;
padding: 0.5em 1em;
min-width: 300px;
@ -100,3 +100,26 @@ figcaption h4 {
.content a {
text-decoration: underline;
}
footer ul {
list-style-type: none;
padding: 0;
margin: 0;
}
footer ul li {
display: inline;
font-size: 1em;
line-height: 1.7em;
}
footer ul li img {
display: inline;
height: 1rem;
vertical-align: middle;
margin-bottom: 0;
border-radius: 0;
}
footer ul li::after {
content: " | ";
}
footer ul :last-child::after {
content: "";
}

View file

@ -0,0 +1,14 @@
<footer>
<a href="{{- .Site.Params.repo -}}">Source Code</a>
<ul>
{{- range .Site.Params.footer.items -}}
<li>
{{- if .icon -}}
<img src="/icons/{{- .icon -}}" alt="{{- .name -}}" />&nbsp;
{{- end -}}
<a href="{{- .link -}}">{{- .name -}}</a>
</li>
{{- end -}}
</ul>
</footer>