Initial commit

This commit is contained in:
Renne Rocha 2020-05-19 22:25:48 -03:00
commit 1f637ed41e
33 changed files with 832 additions and 0 deletions

View file

@ -0,0 +1,10 @@
<!doctype html>
<html lang="en">
<head>{{ partial "header.html" . }}</head>
<body class="global-font">
{{ partial "nav.html" . }}
{{ block "main" . }}{{ end }}
{{ partial "footer.html" . }}
{{ partial "scripts.html" . }}
</body>
</html>

View file

@ -0,0 +1,14 @@
{{ define "main" }}
<main class="center mv4 content-width ph3">
<h1 class="f2 fw6 heading-font">{{ .Title }}</h1>
{{ .Content }}
<ul class="list-pages">
{{ range .Data.Pages }}
<li class="lh-copy"><a href="{{ .Permalink | relURL }}" class="link f5">{{ .Title }}</a> - <time>{{ .Date.Format "02 Jan 2006" }}</time></li>
{{ end }}
</ul>
</main>
<div class="pagination tc db fixed-l bottom-2-l right-2-l mb3 mb0-l">
{{ partial "back-to-top.html" . }}
</div>
{{ end }}

View file

@ -0,0 +1,26 @@
{{ define "main" }}
<main class="center mv4 content-width ph3">
<div class="f3 fw6 heading-color heading-font post-title">{{ .Title }}</div>
<p class="silver f6 mt1 mb4 post-meta">
{{ if not .Date.IsZero }}<time>{{ .Date.Format "02 Jan 2006" }}</time> {{ end }}
{{ if or .Params.tags .Params.categories .Params.series }} | {{ end }}
{{ if isset .Params "categories" }}
categories: [ {{ range .Params.categories }}<a href='{{ "/categories/" | relLangURL }}{{ . | urlize }}' class="link silver">{{ . }}</a> {{ end }} ]
{{ end }}
{{ if isset .Params "tags" }}
tags: [ {{ range .Params.tags }}<a href='{{ "/tags/" | relLangURL }}{{ . | urlize }}' class="link silver">{{ . }}</a> {{ end }} ]
{{ end }}
</p>
<div class="lh-copy post-content">{{ .Content }}</div>
</main>
{{ partial "table-of-contents" . }}
<div class="pagination tc tr-l db fixed-l bottom-2-l right-2-l mb3 mb0-l">
{{ partial "back-to-top.html" . }}<br>
<p class="mb0 mt2">
{{ with .PrevInSection }}{{ if . }}<a href="{{ .Permalink }}">prev post</a>{{ end }}{{ end }}
{{ with .NextInSection }}{{ if . }}<a href="{{ .Permalink }}">next post</a>{{ end }}{{ end }}
</p>
</div>
{{ end }}

View file

@ -0,0 +1,14 @@
{{ define "main" }}
<main class="center mv4 content-width ph3">
<h1 class="f2 fw6 heading-font"><span class="secondary-color">#</span> {{ .Data.Term }}</h1>
{{ .Content }}
<ul class="list-pages">
{{ range .Data.Pages }}
<li class="lh-copy"><a href="{{ .Permalink | relURL }}" class="link f5">{{ .Title }}</a> - <time>{{ .Date.Format "02 Jan 2006" }}</time></li>
{{ end }}
</ul>
</main>
<div class="pagination tc db fixed-l bottom-2-l right-2-l mb3 mb0-l">
{{ partial "back-to-top.html" . }}
</div>
{{ end }}

View file

@ -0,0 +1,15 @@
{{ define "main" }}
<main class="center mv4 content-width ph3">
{{ $type := .Type }}
<h1 class="f2 fw6 heading-font">{{ .Title }}</h1>
{{ .Content }}
<ul class="list-pages list pl0">
{{ range $key, $value := .Data.Terms }}
<li class="lh-copy di bg-light-gray ph1"><a href="{{ $key | urlize }}" class="link f5">{{ $key }}&nbsp;({{ len $value }})</a></li>
{{ end }}
</ul>
</main>
<div class="pagination tc db fixed-l bottom-2-l right-2-l mb3 mb0-l">
{{ partial "back-to-top.html" . }}
</div>
{{ end }}