Permalink
Browse files

Update style of next/prev section pager nav (#393)

  • Loading branch information...
gcushen committed Jan 13, 2018
1 parent a42037e commit 0c635d1a8293372817a7062109312714d569a6c9
View
@@ -110,7 +110,7 @@ defaultContentLanguageInSubdir = false
# Display comment count? Requires commenting to be enabled.
comment_count = true
# Display section pager for posts?
# Display next/previous section pager?
section_pager = false
# Enable global LaTeX math rendering?
View
@@ -14,6 +14,12 @@
- id: minute_read
translation: min read
- id: previous
translation: Previous
- id: next
translation: Next
# Buttons
- id: btn_preprint
@@ -35,7 +35,7 @@ <h3>{{ i18n "related" }}</h3>
{{ end }}
{{ if .Site.Params.section_pager }}
<div class="container article-widget">
<div class="article-container article-widget">
{{ partial "section_pager.html" . }}
</div>
{{ end }}
@@ -226,6 +226,39 @@ small,
color: red;
}
/*************************************************
* Pager.
**************************************************/
.post-nav {
margin-top: 1rem;
font-size: 0.8rem;
}
.post-nav-item {
hyphens: auto;
word-wrap: break-word;
padding: 11px 0 12px;
width: 100%;
}
.post-nav-item a {
color: #2b2b2b;
line-height: 1.7;
text-transform: none;
}
.post-nav-item .meta-nav {
color: #767676;
font-weight: 900;
line-height: 2;
text-transform: uppercase;
}
.dark .post-nav-item a {
color: #ddd;
}
/*************************************************
* Home Sections
**************************************************/
@@ -1,13 +1,14 @@
<nav>
<ul class="pager">
{{if .PrevInSection}}
<li class="previous"><a href="{{.PrevInSection.Permalink}}"><span
aria-hidden="true">&larr;</span> {{.PrevInSection.Title}}</a></li>
{{end}}
{{if .NextInSection}}
<li class="next"><a href="{{.NextInSection.Permalink}}">{{.NextInSection.Title}} <span
aria-hidden="true">&rarr;</span></a></li>
{{end}}
</ul>
</nav>
<div class="post-nav">
{{if .NextInSection}}
<div class="post-nav-item">
<div class="meta-nav">{{ i18n "next" }}</div>
<a href="{{.NextInSection.Permalink}}" rel="next">{{.NextInSection.Title}}</a>
</div>
{{end}}
{{if .PrevInSection}}
<div class="post-nav-item">
<div class="meta-nav">{{ i18n "previous" }}</div>
<a href="{{.PrevInSection.Permalink}}" rel="prev">{{.PrevInSection.Title}}</a>
</div>
{{end}}
</div>
@@ -62,9 +62,11 @@ <h2>{{ (i18n "talks") }}</h2>
</div>
</article>
<div class="container">
{{ if .Site.Params.section_pager }}
<div class="article-container article-widget">
{{ partial "section_pager.html" . }}
</div>
{{ end }}
{{ partial "footer_container.html" . }}
{{ partial "footer.html" . }}
@@ -100,9 +100,11 @@ <h3>{{ i18n "abstract" }}</h3>
</div>
</div>
<div class="container">
{{ if .Site.Params.section_pager }}
<div class="article-container article-widget">
{{ partial "section_pager.html" . }}
</div>
{{ end }}
{{ partial "footer_container.html" . }}
{{ partial "footer.html" . }}
View
@@ -107,9 +107,11 @@ <h3>{{ i18n "abstract" }}</h3>
</div>
</div>
<div class="container">
{{ if .Site.Params.section_pager }}
<div class="article-container article-widget">
{{ partial "section_pager.html" . }}
</div>
{{ end }}
{{ partial "footer_container.html" . }}
{{ partial "footer.html" . }}

0 comments on commit 0c635d1

Please sign in to comment.