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
433a5096
Commit
433a5096
authored
May 05, 2016
by
YASUTAKE Kiyoshi
Browse files
Merge pull request #7 from key-amb/develop
Add new template - Index page of documents
parents
5218061a
e73366a5
Changes
3
Hide whitespace changes
Inline
Side-by-side
layouts/_default/list.html
View file @
433a5096
...
...
@@ -4,15 +4,19 @@
<div
class=
"col-sm-8 doc-main"
>
<main
role=
"main"
>
<div
class=
"doc-list-header"
>
<h
1>
{{ .Title }}
</h
1
>
<h
3>
Pages in
{{ .Title }}
</h
3
>
</div>
<div
class=
"doc-list-entry"
>
<ul>
{{ range .Data.Pages }}
<a
class=
"doc-entry"
href=
"{{ .RelPermalink }}"
>
<h3
class=
"doc-entry-title"
>
{{ .Title }}{{ if .Draft }} #Draft{{ end }}
</h3>
<p
class=
"doc-entry-meta"
><time
datetime=
"{{ .Date.Format "
2006
-01-02
"
}}"
>
{{ .Date.Format "January 02, 2006" }}
</time></p>
</a>
<li><a
class=
"doc-entry"
href=
"{{ .RelPermalink }}"
>
<span
class=
"doc-entry-title"
>
{{ .Title }}{{ if .Draft }} #Draft{{ end }}
</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 }}
</ul>
</div>
</main>
</div>
<!-- /.doc-main -->
...
...
layouts/section/index.html
0 → 100644
View file @
433a5096
{{ $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
static/css/bootie-docs.css
View file @
433a5096
...
...
@@ -49,6 +49,9 @@ h2, .h2 {
/* List items */
.doc-list-header
{
padding-bottom
:
0px
;
margin-bottom
:
15px
;
border-bottom
:
1px
solid
#eee
;
}
.doc-entry
{
color
:
#666
;
...
...
@@ -61,6 +64,9 @@ h2, .h2 {
text-align
:
right
;
color
:
#999
;
}
.doc-entry-meta.in-list
{
font-size
:
80%
;
}
/* Sidebar modules for boxing content */
.sidebar-module
{
...
...
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