Reproduce lente.dev setup
This commit is contained in:
parent
3ec9550325
commit
2ba59f18db
16 changed files with 261 additions and 146 deletions
|
@ -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>
|
|
@ -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>
|
||||
|
|
|
@ -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> -->
|
Loading…
Add table
Add a link
Reference in a new issue