diff options
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/list.html | 27 | ||||
| -rw-r--r-- | layouts/_default/single.html | 28 | ||||
| -rw-r--r-- | layouts/_default/terms.html | 15 |
3 files changed, 70 insertions, 0 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..5468281 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,27 @@ +{{ partial "header.html" . -}} + +<main> + <section class="post-body"> + <a class="back-link" href="/">← voltar</a> + + <h1 class="page-title">{{ .Title | title }}</h1> + + <ul class="recent-posts"> + {{ range .RegularPages.ByDate.Reverse }} + <li> + <span class="recent-post-left"> + <a href="{{ .Permalink }}">{{ .Title }}</a> + {{ with .Params.tags }}{{ range . }} + <a href="{{ "/tags/" | relURL }}{{ . | urlize }}/" class="post-tag">{{ . }}</a> + {{ end }}{{ end }} + </span> + {{ with .Params.date }} + <span class="recent-post-date">{{ . | time | dateFormat "2006-01-02" }}</span> + {{ end }} + </li> + {{ end }} + </ul> + </section> +</main> + +{{ partial "footer.html" . }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..e1272ce --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,28 @@ +{{ partial "header.html" . -}} + +<article class="post-body"> + <a class="back-link" href="/">← voltar</a> + + <header class="post-header"> + <h1>{{ .Title }}</h1> + {{ with .Params.excerpt }} + <p class="post-excerpt-lead">{{ . }}</p> + {{ end }} + {{ with .Date }}{{ if not .IsZero }} + <p class="post-date">{{ .Format "02/01/2006" }}</p> + {{ end }}{{ end }} + {{ with .Params.tags }} + <div class="post-tags-bar"> + {{ range . }} + <a href="{{ "/tags/" | relURL }}{{ . | urlize }}/" class="post-tag">{{ . }}</a> + {{ end }} + </div> + {{ end }} + </header> + + <div class="content"> + {{ .Content }} + </div> +</article> + +{{ partial "footer.html" . }} diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html new file mode 100644 index 0000000..a3def21 --- /dev/null +++ b/layouts/_default/terms.html @@ -0,0 +1,15 @@ +{{ partial "header.html" . -}} +{{ partial "navbar.html" . -}} + +<main> + <section class="post-body"> + <h1 class="page-title">{{ .Title | title }}</h1> + <nav class="indice" style="margin-top:20px;"> + {{ range .Data.Terms.Alphabetical }} + <a href="{{ .Page.RelPermalink }}">{{ .Term }} ({{ .Count }})</a> + {{ end }} + </nav> + </section> +</main> + +{{ partial "footer.html" . }} |
