Initial commit
This commit is contained in:
6
layouts/_default/baseof.html
Normal file
6
layouts/_default/baseof.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{{ partial "header" . }}
|
||||
|
||||
{{ block "main" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ partial "footer" . }}
|
||||
40
layouts/_default/list.html
Normal file
40
layouts/_default/list.html
Normal file
@@ -0,0 +1,40 @@
|
||||
{{ define "main" }}
|
||||
{{ $baseurl := .Site.BaseURL }}
|
||||
|
||||
<div class="container">
|
||||
<div class="columns">
|
||||
<div class="column">
|
||||
{{ if eq .Data.Singular "tag" }}
|
||||
<h2 class="is-size-2">#{{ .Title | lower }}</h2>
|
||||
{{ else }}
|
||||
<h2 class="is-size-2">{{ .Title }}</h2>
|
||||
{{ end }}
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
<hr>
|
||||
{{ range (.Paginate (.Data.Pages.GroupByDate "2006")).PageGroups }}
|
||||
<h3 class="is-size-4">{{ .Key }}</h3>
|
||||
{{ range .Pages }}
|
||||
<article class="tile is-child">
|
||||
<span class="is-size-2"><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
|
||||
{{ if .Params.tags }}
|
||||
<div class="tags is-pulled-right">
|
||||
{{ range $i, $t := .Params.tags }}
|
||||
<span class="tag"><a href="/tags/{{$t | urlize }}/">#{{ $t }}</a></span>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ partial "aside" . }}
|
||||
<hr>
|
||||
</article>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ partial "pagination" . }}
|
||||
|
||||
{{ end }}
|
||||
10
layouts/_default/single.html
Normal file
10
layouts/_default/single.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<div class="container">
|
||||
<br>
|
||||
{{ partial "article" . }}
|
||||
{{ partial "single_footer" . }}
|
||||
</div>
|
||||
|
||||
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user