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
e73366a5
Commit
e73366a5
authored
May 05, 2016
by
key-amb
Browse files
Add document index template
parent
eeea8eee
Changes
1
Hide whitespace changes
Inline
Side-by-side
layouts/section/index.html
0 → 100644
View file @
e73366a5
{{ $baseUrl := .Site.BaseURL }}
{{ partial "header.html" . }}
<div
class=
"row"
>
<div
class=
"col-sm-8 doc-main"
>
<main
role=
"main"
>
<div
class=
"doc-list-header"
>
<h3>
Index
</h3>
</div>
<div
class=
"doc-list-entry"
>
<ul>
{{ range .Site.Sections }}
{{ range first 1 .Pages }}
{{ if and (ne .Section "") (ne .Section "index") }}
<li><a
class=
"doc-entry"
href=
"{{ $baseUrl }}/{{ .Section }}"
>
{{ .Section | title }}/
</a><ul>
{{ end }}
{{ end }}
{{ range .Pages }}
{{ if eq (substr .Title 0 1) "_" }}
{{ else }}
<li><a
class=
"doc-entry"
href=
"{{ .RelPermalink }}"
>
<span
class=
"doc-entry-title"
>
{{ .Title }}
</span>
<span
class=
"doc-entry-meta in-list"
>
(
<time
datetime=
"{{ .Date.Format "
2006
-01-02
"
}}"
>
{{ .Date.Format "January 02, 2006" }}
</time>
)
</span>
</a></li>
{{ end }}
{{ end }}
{{ range first 1 .Pages }}
{{ if and (ne .Section "") (ne .Section "index") }}
</ul></li>
{{ end }}
{{ end }}
{{ end }}
</ul>
</div>
</main>
</div>
<!-- /.doc-main -->
{{ partial "sidebar-list.html" . }}
</div>
<!-- /.row -->
{{ partial "footer.html" . }}
\ No newline at end of file
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