Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mazgi/hugo-theme-techlog-simple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHidenori MATSUKI <MATSUKI.Hidenori@gmail.com>2018-05-02 23:48:39 +0300
committerHidenori MATSUKI <MATSUKI.Hidenori@gmail.com>2018-05-02 23:48:39 +0300
commit6a5cbae7e6826b20ed194bbdccc0a53a7d6306d6 (patch)
treebaa87d2e88c0a3ab35b539e2571de49ea492b4a8 /layouts
parentc55ff91d35309d7306d01bf30460677f27880822 (diff)
Show sidebar on single page.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html24
1 files changed, 18 insertions, 6 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index d3c8ad0..a14e892 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,10 +1,22 @@
{{ partial "header.html" . }}
<div class="row">
- <article class="col-lg-12">
- <div class="row">
- <h1>{{ .Title }}</h1>
- </div>
- {{ .Content }}
- </article>
+ <div class="col-lg-9">
+ <article>
+ <div class="row">
+ <h1>{{ .Title }}</h1>
+ </div>
+ {{ .Content }}
+ </article>
+ </div>
+ <div class="col-lg-3">
+ <ul>
+ {{ $recents := .Parent.Pages | first 8 }}
+ {{ with $recents }}
+ {{ range . }}
+ <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
+ {{ end }}
+ {{ end }}
+ </ul>
+ </div>
</div>
{{ partial "footer.html" . }}