feat: add footer date

This commit is contained in:
2026-06-28 22:59:32 +00:00
parent 31ae559825
commit 164687e627
3 changed files with 14 additions and 2 deletions
+1
View File
@@ -5,6 +5,7 @@ title = "starless"
theme = "starless" theme = "starless"
enableRobotsTXT = true enableRobotsTXT = true
disableHugoGeneratorInject = true disableHugoGeneratorInject = true
enableGitInfo = true
[outputs] [outputs]
home = ["HTML", "RSS", "JSON"] home = ["HTML", "RSS", "JSON"]
+5 -1
View File
@@ -228,7 +228,11 @@
} }
.page-footer { .page-footer {
padding-block: var(--space-8); display: flex;
flex-direction: column;
gap: var(--space-3);
padding-top: var(--space-3);
padding-bottom: var(--space-8);
} }
.search-trigger { .search-trigger {
+8 -1
View File
@@ -10,6 +10,13 @@
<hr class="rule"> <hr class="rule">
</div> </div>
<div class="footer-note page-footer"> <div class="footer-note page-footer">
{{ site.Params.homeFooter }} {{ with .GitInfo }}
{{ $firstCommit := . }}
{{ with .Ancestors.Reverse }}
{{ $firstCommit = index . 0 }}
{{ end }}
<div class="page-footer-date">{{ $firstCommit.AuthorDate.Format "2 Jan, 06" }}</div>
{{ end }}
<div>{{ site.Params.homeFooter }}</div>
</div> </div>
{{ end }} {{ end }}