Get dates from git and improve layout

main
drebs 2023-12-30 13:49:57 -03:00
parent 642d7b1be5
commit b1d2a797fc
2 changed files with 15 additions and 8 deletions

View File

@ -3,6 +3,7 @@ languageCode = 'pt-br'
title = '44203.net'
theme = "smol"
defaultContentLanguage = "pt"
enableGitInfo = true
[languages]
[languages.pt]
@ -50,3 +51,7 @@ defaultContentLanguage = "pt"
# name = "Imprint"
# url = "/imprint"
# weight = 3
[frontmatter]
date = ['date', 'publishdate', 'pubdate', 'published', 'lastmod', 'modified', ':git']
lastmod = [':git', 'lastmod', 'modified', 'date', 'publishdate', 'pubdate', 'published']

View File

@ -2,18 +2,20 @@
<main>
<article>
<h1>{{ .Title }}</h1>
<b><time>{{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time></b>
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
<div>
<aside id="toc">
<p>Conteúdo:</p>
{{ .TableOfContents }}
</div>
{{ .Page.TableOfContents }}
</aside>
<div>
{{ .Content }}
</div>
<div>
<i>Criado em <time>{{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time>. Editado em <time>{{ .Lastmod.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time>.</i>
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
</div>
</article>
</main>
{{ partial "sidebar.html" . }}