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

github.com/yanlinlin82/simple-style.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html16
1 files changed, 13 insertions, 3 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index fe6be00..d9425f9 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -5,14 +5,21 @@
<h2>{{ . }}</h2>
{{ end -}}
</div>
+<div style="position: fixed; right:-30px; max-width:300px; overflow:auto; top: 1px; width: 300px; bottom:100px">
+{{ partial "search.html" . }}
+</div>
<div class="meta">
{{ if .Date -}}
<div>{{ .Date.Format "2006-01-02 15:04" }}</div>
{{ end -}}
- {{ if .Params.tags -}}
+ {{ $taxo := "tags" -}}
+ {{ if .Param $taxo -}}
<div>
- {{ range .Params.tags -}}
- <span><a href="{{ "/tags/" | relURL }}{{ . | urlize }}">#{{ . }}</a></span>
+ {{ range .Param $taxo -}}
+ {{ $name := . -}}
+ {{ with $.Site.GetPage (printf "/%s/%s" $taxo ($name | urlize)) -}}
+ <span><a href="{{ .Permalink }}">#{{ $name }}</a></span>
+ {{ end -}}
{{ end -}}
</div>
{{ end -}}
@@ -20,4 +27,7 @@
<div class="content">
{{ .Content -}}
</div>
+<div style="position: fixed; right:50px; max-width:255px; overflow:auto; top: 120px; width: 220px; bottom:90px">
+{{ partial "toc.html" . }}
+</div>
{{ end -}}