Bootstrap all the things
This commit is contained in:
commit
f4b4108ffc
19 changed files with 487 additions and 0 deletions
13
layouts/_default/list.html
Normal file
13
layouts/_default/list.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
{{ partial "header" . }}
|
||||
|
||||
<main>
|
||||
|
||||
<h2>{{ .Title }}</h2>
|
||||
|
||||
{{ range (.Paginator 5).Pages }} {{ partial "list-item" . }} {{ end }}
|
||||
|
||||
</main>
|
||||
|
||||
{{ partial "paginator" . }}
|
||||
|
||||
{{ partial "footer" . }}
|
30
layouts/_default/single.html
Normal file
30
layouts/_default/single.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
{{ partial "header" . }}
|
||||
|
||||
<main>
|
||||
|
||||
{{ partial "list-item" . }}
|
||||
|
||||
<br> <div class="text-justify">{{ .Content }}</div>
|
||||
|
||||
<!-- related posts with the same tags -->
|
||||
{{ $related := first 3 (where (where (where .Site.Pages.ByDate.Reverse ".Type" "==" "billets") ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
|
||||
|
||||
{{ if $related }}
|
||||
|
||||
<h4 class="page-header">Articles connexes</h4>
|
||||
|
||||
{{ range $related }} {{ partial "list-item" . }} {{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ if and .Site.DisqusShortname (not .Params.disableComments) }}
|
||||
|
||||
<h4 class="page-header">Commentaires</h4>
|
||||
|
||||
{{ template "_internal/disqus.html" . }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
</main>
|
||||
|
||||
{{ partial "footer.html" . }}
|
13
layouts/_default/terms.html
Normal file
13
layouts/_default/terms.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
{{ partial "header" . }}
|
||||
|
||||
<main>
|
||||
|
||||
<h2>{{ .Title }}</h2>
|
||||
|
||||
{{ range (.Paginator 5).Pages }} {{ partial "list-item" . }} {{ end }}
|
||||
|
||||
</main>
|
||||
|
||||
{{ partial "paginator" . }}
|
||||
|
||||
{{ partial "footer" . }}
|
Loading…
Add table
Add a link
Reference in a new issue