mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 22:16:07 +01:00
Move last updated to bottom of page
This commit is contained in:
parent
b7526b024c
commit
430225b90c
3 changed files with 18 additions and 3 deletions
|
@ -26,6 +26,7 @@ html {
|
|||
|
||||
|
||||
body {
|
||||
position:relative;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Roboto",
|
||||
|
@ -781,3 +782,18 @@ mark {
|
|||
background-color: lch(20% 25 var(--accentHue)) !important;
|
||||
}
|
||||
}
|
||||
|
||||
#last-updated {
|
||||
position: absolute;
|
||||
font-style:italic;
|
||||
|
||||
bottom: 0;
|
||||
padding: 4px 4px 4px 8px;
|
||||
border-top-left-radius: 8px;
|
||||
opacity: 0.8;
|
||||
|
||||
background-color: $light-background;
|
||||
@media (prefers-color-scheme: dark) {
|
||||
background-color: $dark-background
|
||||
}
|
||||
}
|
|
@ -19,8 +19,7 @@
|
|||
<hr />
|
||||
<section class="posts" style="text-align:center">
|
||||
{{ partial "about-me.html" .}}
|
||||
|
||||
{{ partial "site-last-update.html" }}
|
||||
</section>
|
||||
</main>
|
||||
{{ partial "site-last-update.html" }}
|
||||
{{ end }}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{ if or (getenv "HUGO_LAST_UPDATE_TIME") (getenv "HUGO_LAST_UPDATE_HASH") }}
|
||||
<small style="font-style:italic">
|
||||
<small id="last-updated">
|
||||
Last updated
|
||||
{{ with getenv "HUGO_LAST_UPDATE_TIME" }}on {{ partial "year-relative-date.html" . }},{{ end }}
|
||||
{{ with getenv "HUGO_LAST_UPDATE_HASH" }}from <a href="https://github.com/by-jp/www.byjp.me/tree/{{ . }}">{{ . }}</a>{{ end }}.
|
||||
|
|
Loading…
Reference in a new issue