Reproduce lente.dev setup
This commit is contained in:
parent
3ec9550325
commit
2ba59f18db
16 changed files with 261 additions and 146 deletions
|
@ -1,10 +1,7 @@
|
|||
{{ define "main" }}
|
||||
<content>
|
||||
{{ if .Data.Singular }}
|
||||
<h3 style="margin-bottom:0">{{ i18n "filter" }} "{{ .Title }}"</h3>
|
||||
<small>
|
||||
<a href="{{ i18n "posts" }}">{{ i18n "remove" }}</a>
|
||||
</small>
|
||||
<h3 style="margin-bottom:0">{{ i18n "filtering-for" }} "{{ .Title }}"</h3>
|
||||
{{ end }}
|
||||
<ul class="blog-posts">
|
||||
{{ range .Pages }}
|
||||
|
@ -12,7 +9,7 @@
|
|||
<span>
|
||||
<i>
|
||||
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
|
||||
{{ .Date.Format (default "02 Jan, 2006" .Site.Params.dateFormat) }}
|
||||
{{ .Date.Format (default "2006-01-02" .Site.Params.dateFormat) }}
|
||||
</time>
|
||||
</i>
|
||||
</span>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<p>
|
||||
<i>
|
||||
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
|
||||
{{ .Date.Format (default "02 Jan, 2006" .Site.Params.dateFormat) }}
|
||||
{{ .Date.Format (default "2006-01-02" .Site.Params.dateFormat) }}
|
||||
</time>
|
||||
</i>
|
||||
</p>
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
[home]
|
||||
other = '/en'
|
||||
|
||||
[posts]
|
||||
other = '/en/posts'
|
||||
|
||||
[other-lang]
|
||||
other = "Português 🇧🇷"
|
||||
|
||||
[other-home]
|
||||
other = "/"
|
||||
|
||||
[reply]
|
||||
other = 'Reply to '
|
||||
|
||||
[filter]
|
||||
other = 'Filtering for'
|
||||
|
||||
[remove]
|
||||
other = 'Remove filter'
|
||||
|
||||
[stone]
|
||||
other = 'Made of stone'
|
||||
|
||||
[stone-link]
|
||||
other = '/en/posts/stone-websites'
|
|
@ -1,26 +0,0 @@
|
|||
[home]
|
||||
other = '/'
|
||||
|
||||
[posts]
|
||||
other = '/posts'
|
||||
|
||||
[other-lang]
|
||||
other = "English 🇺🇸"
|
||||
|
||||
[other-home]
|
||||
other = "/en"
|
||||
|
||||
[reply]
|
||||
other = 'Resposta a '
|
||||
|
||||
[filter]
|
||||
other = 'Filtrando para'
|
||||
|
||||
[remove]
|
||||
other = 'Remover filtro'
|
||||
|
||||
[stone]
|
||||
other = 'Feito de pedra'
|
||||
|
||||
[stone-link]
|
||||
other = '/posts/sites-de-pedra'
|
|
@ -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