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

github.com/zhaohuabing/hugo-theme-cleanwhite.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhaohuabing <zhaohuabing@gmail.com>2022-04-11 12:19:19 +0300
committerzhaohuabing <zhaohuabing@gmail.com>2022-04-11 12:19:19 +0300
commitaf6a9b4d491caeb4960088cbc786c10a4fa97bfc (patch)
tree3a83d0133bf87c6716d4ce179eb3a05a2b8096cd
parent7b64a06446db7aa1620e99186302a5ebe3f976cf (diff)
add sidecar to "about" page layout
Signed-off-by: zhaohuabing <zhaohuabing@gmail.com>
-rw-r--r--layouts/top/single.html52
1 files changed, 10 insertions, 42 deletions
diff --git a/layouts/top/single.html b/layouts/top/single.html
index bd7b148..7034463 100644
--- a/layouts/top/single.html
+++ b/layouts/top/single.html
@@ -7,51 +7,19 @@
<!-- Post Container -->
<div class="
- col-lg-11 col-lg-offset-1
- col-md-10 col-md-offset-1
- post-container">
+ col-lg-8 col-lg-offset-1
+ col-md-8 col-md-offset-1
+ col-sm-12
+ col-xs-12
+ post-container">
{{ .Content }}
- {{ partial "comments.html" . }}
-
- </div>
- <!-- Sidebar Container -->
- <div class="
- col-lg-11 col-lg-offset-1
- col-md-10 col-md-offset-1
- sidebar-container">
-
- <!-- Featured Tags -->
- {{ if .Site.Params.featured_tags }}
- <section>
- <hr class="hidden-sm hidden-xs">
- <h5><a href="/tags/">FEATURED TAGS</a></h5>
- <div class="tags">
- {{ $featured_condition_size := .Site.Params.featured_condition_size }}
- {{ range $name, $taxonomy := .Site.Taxonomies.tags }}
- {{ if gt (len $taxonomy.Pages) $featured_condition_size }}
- <a href="{{ "/tags/" | relLangURL }}{{ $name | urlize }}" title="{{ $name }}">
- {{ $name }}
- </a>
- {{ end }}
- {{ end }}
- </div>
- </section>
- {{ end }}
-
- <!-- Friends Blog -->
- {{ if .Site.Params.friends }}
- <section>
- <hr>
- <h5>FRIENDS</h5>
- <ul class="list-inline">
- {{ range .Site.Params.friend_link }}
- <li><a target="_blank" href="{{.href}}">{{.title}}</a></li>
- {{ end }}
- </ul>
- </section>
- {{ end }}
+ <!--
+ {{ partial "comments.html" . }}
+ -->
</div>
+
+ {{ partial "sidebar.html" . }}
</div>
</div>
</article>