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' title = '44203.net'
theme = "smol" theme = "smol"
defaultContentLanguage = "pt" defaultContentLanguage = "pt"
enableGitInfo = true
[languages] [languages]
[languages.pt] [languages.pt]
@ -50,3 +51,7 @@ defaultContentLanguage = "pt"
# name = "Imprint" # name = "Imprint"
# url = "/imprint" # url = "/imprint"
# weight = 3 # 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> <main>
<article> <article>
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
<b><time>{{ .Date.Format (default "2006-01-02 15:04:05" .Site.Params.dateFmt) }}</time></b> <aside id="toc">
{{ range .Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{ end }}
<div>
<p>Conteúdo:</p> <p>Conteúdo:</p>
{{ .TableOfContents }} {{ .Page.TableOfContents }}
</div> </aside>
<div> <div>
{{ .Content }} {{ .Content }}
</div> </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> </article>
</main> </main>
{{ partial "sidebar.html" . }} {{ partial "sidebar.html" . }}