diff options
author | key-amb <yasutake.kiyoshi@gmail.com> | 2016-05-07 04:41:35 +0300 |
---|---|---|
committer | key-amb <yasutake.kiyoshi@gmail.com> | 2016-05-07 05:30:49 +0300 |
commit | 5f0ac90152a51a29941bfb69df4e59d8ff6a40f2 (patch) | |
tree | e57737858de5b74a2d4d211a3328f442f5335b05 | |
parent | affdfce20b7ab499fb8fbcd205a45621b5a28cb2 (diff) |
Show pages in categories at Top page
-rw-r--r-- | layouts/index.html | 23 | ||||
-rw-r--r-- | static/css/bootie-docs.css | 10 |
2 files changed, 33 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html index bc510ef..f85fbd3 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -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 /> diff --git a/static/css/bootie-docs.css b/static/css/bootie-docs.css index 3abc5a1..8123f69 100644 --- a/static/css/bootie-docs.css +++ b/static/css/bootie-docs.css @@ -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 { |