Add translated pages templates
This commit is contained in:
parent
b4aafcb88f
commit
d66dbf5eca
6 changed files with 284 additions and 0 deletions
52
layouts/_default/archives.html
Normal file
52
layouts/_default/archives.html
Normal file
|
@ -0,0 +1,52 @@
|
|||
{{ define "main" }}
|
||||
|
||||
<header>
|
||||
<div class="container">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p class="subtitle">{{ .Params.subtitle }}</p>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
|
||||
|
||||
<section>
|
||||
<div class="container">
|
||||
<div class="filter-container">
|
||||
{{ $maxCategoryToShow := $.Site.Params.maxCategoryToShow | default 5 }}
|
||||
{{ range .Site.Taxonomies.categories.TaxonomyArray | first $maxCategoryToShow }}
|
||||
<div class="filter-item" data-value="{{ .Page.Title }}" data-type="categories">
|
||||
{{ .Page.Title }}<sup>{{ .Count }}</sup>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
<input id="search-query" type="search" placeholder="Faça sua pesquisa...">
|
||||
|
||||
<div id="search-results">
|
||||
</div>
|
||||
<section id="articles-list">
|
||||
{{ range $pages.GroupByDate "2006" }}
|
||||
<section>
|
||||
<h2>{{ .Key }}</h2>
|
||||
<div class="posts">
|
||||
{{ range .Pages }}
|
||||
<div class="post">
|
||||
<a href="{{ .RelPermalink }}">
|
||||
<div class="post-row">
|
||||
<time>{{ .Date.Format "Jan 02" }}</time>
|
||||
<h3>{{ .Title }}</h3>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{- $opts := dict "minify" hugo.IsProduction -}}
|
||||
{{ $search := resources.Get "ts/search.ts" | js.Build $opts | fingerprint }}
|
||||
<script async src="{{ $search.RelPermalink }}"></script>
|
||||
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue