Commit 5f0ac901 authored by key-amb's avatar key-amb
Browse files

Show pages in categories at Top page

parent affdfce2
......@@ -18,6 +18,29 @@
</div>
{{ end }}
<div class="row doc-category">
<h2>Pages in Categories</h2>
<div>
<ul class="doc-list-category">
{{ range $name, $taxonomy := .Site.Taxonomies.categories }}
<li>
<a href="{{ $baseUrl }}/categories/{{ $name | urlize }}">
<span class="doc-list-category">{{ $name | title }}</span>
</a>
<ul>{{ range $taxonomy.Pages }}
<li><a href="{{ .RelPermalink }}">
<span>{{ .Title }}{{ if .Draft }} #Draft{{ end }}</span>
<span class="doc-entry-meta">(<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time>)
</span>
</a></li>
{{ end }}
</ul>
</li>
{{ end }}
</ul>
</div>
</div>
{{ if isset .Site.Params "withSitePosts" }}
<hr />
......
......@@ -109,6 +109,9 @@ div.doc-search-form {
.doc-main pre code {
font-size: 14px;
}
div.doc-main {
margin-bottom: 20px;
}
/* List items */
.doc-list-header {
......@@ -134,6 +137,13 @@ span.doc-list-category {
font-style: italic;
background-color: #f5f5ff;
}
ul.doc-list-category > li {
font-size: 20px;
}
ul.doc-list-category > li > ul > li {
font-size: 18px;
font-style: normal;
}
/* Tables */
main > article > section > table {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment