Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
University of Michigan Fencing
club-theme
Commits
5f0ac901
Commit
5f0ac901
authored
May 07, 2016
by
key-amb
Browse files
Show pages in categories at Top page
parent
affdfce2
Changes
2
Hide whitespace changes
Inline
Side-by-side
layouts/index.html
View file @
5f0ac901
...
...
@@ -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
/>
...
...
static/css/bootie-docs.css
View file @
5f0ac901
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment