Reproduce lente.dev setup

This commit is contained in:
C. Lente 2023-02-09 16:56:09 -03:00
parent 3ec9550325
commit 2ba59f18db
No known key found for this signature in database
GPG key ID: B0B503C26E05781B
16 changed files with 261 additions and 146 deletions

View file

@ -1,5 +1,3 @@
{{ if ne .Site.Params.hideMadeWithLine true }}
<small>
{{ .Site.Copyright }} | <a href="{{ i18n "stone-link" }}">{{ i18n "stone" }}</a>
</small>
{{ end }}
<small>
{{ .Site.Copyright }} | {{ markdownify .Site.Language.Params.params.madeWith }}
</small>

View file

@ -1,4 +1,2 @@
<a href="{{ i18n "home" | relURL }}" class="title">
<h2>{{ .Site.Title }}</h2>
</a>
<a href="{{ .Site.Language.Params.params.home }}" class="title"><h2>{{ .Site.Title }}</h2></a>
<nav>{{- partial "nav.html" . -}}</nav>

View file

@ -1,15 +1,18 @@
<a href={{ i18n "home" | relURL }}>Home</a>
<a href={{ i18n "posts" }}>Blog</a>
<a href="mailto:c@lente.dev?subject={{ i18n "reply" }}'{{ .Page.Title | default .Site.Title }}'">Email</a>
<a href="/index.xml">RSS</a>
{{ range .Site.Menus.main }}
<a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
{{ end }}
{{ $pageLang := .Page.Lang }}
{{ if .IsTranslated }}
{{ range .Translations }}
{{ if ne $pageLang .Lang }}
<a href="{{ .Permalink }}">{{ i18n "other-lang" }}</a>
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
{{ end }}
{{ end }}
{{ else }}
<a class="disabled" href="">{{ i18n "other-lang" }}</a>
{{ else if not .Site.Params.hideUntranslated }}
<a class="disabled" href="">{{ .Language.LanguageName }}</a>
{{ end }}
<!-- <a href={{ i18n "home" | relURL }}>Home</a>
<a href={{ i18n "posts" }}>Blog</a>
<a href="mailto:c@lente.dev?subject={{ i18n "reply" }}'{{ .Page.Title | default .Site.Title }}'">Email</a>
<a href="/index.xml">RSS</a> -->