Bring files from personal blog
This commit is contained in:
parent
76ca2f889f
commit
3ec9550325
21 changed files with 321 additions and 333 deletions
|
@ -11,12 +11,13 @@
|
|||
{{- partial "seo_tags.html" . -}}
|
||||
<meta name="referrer" content="no-referrer-when-downgrade" />
|
||||
|
||||
{{ $css := resources.Get "style.css" | minify }}
|
||||
<link href="{{ $css.RelPermalink }}" rel="stylesheet">
|
||||
|
||||
{{ with .OutputFormats.Get "rss" -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
|
||||
{{- partial "style.html" . -}}
|
||||
|
||||
<!-- A partial to be overwritten by the user.
|
||||
Simply place a custom_head.html into
|
||||
your local /layouts/partials-directory -->
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{{ define "main" }}
|
||||
<content>
|
||||
{{ if .Data.Singular }}
|
||||
<h3 style="margin-bottom:0">Filtering for "{{ .Title }}"</h3>
|
||||
<small>
|
||||
<a href="{{ "/blog" | relURL }}">Remove filter</a>
|
||||
</small>
|
||||
<h3 style="margin-bottom:0">{{ i18n "filter" }} "{{ .Title }}"</h3>
|
||||
<small>
|
||||
<a href="{{ i18n "posts" }}">{{ i18n "remove" }}</a>
|
||||
</small>
|
||||
{{ end }}
|
||||
<ul class="blog-posts">
|
||||
{{ range .Pages }}
|
||||
|
@ -16,7 +16,11 @@
|
|||
</time>
|
||||
</i>
|
||||
</span>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
{{ if .Params.link }}
|
||||
<a href="{{ .Params.link }}">{{ .Title }}</a>
|
||||
{{ else }}
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ else }}
|
||||
<li>
|
||||
|
@ -26,13 +30,11 @@
|
|||
</ul>
|
||||
{{ if .Data.Singular }}
|
||||
{{else}}
|
||||
<small>
|
||||
<div>
|
||||
{{ range .Site.Taxonomies.tags }}
|
||||
<a href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
</small>
|
||||
{{ end }}
|
||||
<div>
|
||||
{{ range .Site.Taxonomies.tags }}
|
||||
<a class="blog-tags" href="{{ .Page.Permalink }}">#{{ .Page.Title }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</content>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{ define "main" }}
|
||||
{{ if eq .Type "blog" }}{{ if not .Params.menu }}
|
||||
{{ if not .Params.menu }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p>
|
||||
<i>
|
||||
|
@ -8,13 +8,13 @@
|
|||
</time>
|
||||
</i>
|
||||
</p>
|
||||
{{ end }}{{ end }}
|
||||
{{ end }}
|
||||
<content>
|
||||
{{ .Content }}
|
||||
</content>
|
||||
<p>
|
||||
{{ range (.GetTerms "tags") }}
|
||||
<a href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
|
||||
<a class="blog-tags" href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
|
||||
{{ end }}
|
||||
</p>
|
||||
{{ end }}
|
||||
|
|
26
layouts/i18n/en.toml
Normal file
26
layouts/i18n/en.toml
Normal file
|
@ -0,0 +1,26 @@
|
|||
[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'
|
26
layouts/i18n/pt.toml
Normal file
26
layouts/i18n/pt.toml
Normal file
|
@ -0,0 +1,26 @@
|
|||
[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 +1,5 @@
|
|||
{{ if ne .Site.Params.hideMadeWithLine true }}Made with <a href="https://github.com/janraasch/hugo-bearblog/">Hugo ʕ•ᴥ•ʔ Bear</a>{{ end }}
|
||||
{{ if ne .Site.Params.hideMadeWithLine true }}
|
||||
<small>
|
||||
{{ .Site.Copyright }} | <a href="{{ i18n "stone-link" }}">{{ i18n "stone" }}</a>
|
||||
</small>
|
||||
{{ end }}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<a href="{{ "/" | relURL }}" class="title">
|
||||
<a href="{{ i18n "home" | relURL }}" class="title">
|
||||
<h2>{{ .Site.Title }}</h2>
|
||||
</a>
|
||||
<nav>{{- partial "nav.html" . -}}</nav>
|
||||
|
|
|
@ -1,7 +1,15 @@
|
|||
<a href="{{ "/" | relURL }}">Home</a>
|
||||
{{ range .Site.Menus.main }}
|
||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
{{ with .Site.GetPage "/blog" }}
|
||||
<a href="{{ "/blog" | relURL }}">Blog</a>
|
||||
<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>
|
||||
|
||||
{{ $pageLang := .Page.Lang }}
|
||||
{{ if .IsTranslated }}
|
||||
{{ range .Translations }}
|
||||
{{ if ne $pageLang .Lang }}
|
||||
<a href="{{ .Permalink }}">{{ i18n "other-lang" }}</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<a class="disabled" href="">{{ i18n "other-lang" }}</a>
|
||||
{{ end }}
|
||||
|
|
|
@ -126,6 +126,10 @@
|
|||
color: #8b6fcb;
|
||||
}
|
||||
|
||||
h3.blog-filter {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
body {
|
||||
background-color: #333;
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
User-Agent: *
|
||||
User-agent: *
|
||||
Allow: /
|
||||
Sitemap: {{ "sitemap.xml" | absURL }}
|
||||
|
|
2
layouts/shortcodes/rawhtml.html
Normal file
2
layouts/shortcodes/rawhtml.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
<!-- raw html -->
|
||||
{{.Inner}}
|
Loading…
Add table
Add a link
Reference in a new issue