Skip to content

Commit

Permalink
minor css & pagination fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eueung committed Dec 31, 2017
1 parent 41571aa commit 44aecad
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 19 deletions.
6 changes: 3 additions & 3 deletions layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

<nav class="pagination" role="navigation">
{{if .Paginator.HasPrev}}
<a class="newer-posts" href="{{ .Paginator.Prev.URL }}">&larr; Next Posts</a>
<a class="newer-posts" href="{{ .Paginator.Prev.URL }}">&larr; <span class="hide">Next Posts</span></a>
{{end}}
<span class="page-number">Page {{ .Paginator.PageNumber }} of {{.Paginator.TotalPages}}</span>
<span class="page-number"><span class="hide">Page {{ .Paginator.PageNumber }} of {{.Paginator.TotalPages}}</span>&nbsp;</span>
{{if .Paginator.HasNext}}
<a class="older-posts" href="{{ .Paginator.Next.URL }}">Previous Posts &rarr;</a>
<a class="older-posts" href="{{ .Paginator.Next.URL }}"><span class="hide">Previous Posts</span> &rarr;</a>
{{end}}
</nav>
</div>
Expand Down
4 changes: 2 additions & 2 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

<nav class="pagination" role="navigation">
{{if .NextInSection}}
<a class="newer-posts" href="{{ .NextInSection.RelPermalink }}">&larr; Next Post</a>
<a class="newer-posts" href="{{ .NextInSection.RelPermalink }}">&larr; <span class="hide">Next Post</span></a>
{{end}}
<span class="page-number">&nbsp;</span>
{{if .PrevInSection}}
<a class="older-posts" href="{{ .PrevInSection.RelPermalink }}">Previous Post &rarr;</a>
<a class="older-posts" href="{{ .PrevInSection.RelPermalink }}"><span class="hide">Previous Post</span> &rarr;</a>
{{end}}
</nav>
{{ partial "disqus" . }}
Expand Down
6 changes: 3 additions & 3 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@

<nav class="pagination" role="navigation">
{{if .Paginator.HasPrev}}
<a class="newer-posts" href="{{ .Paginator.Prev.URL }}">&larr; Next Posts</a>
<a class="newer-posts" href="{{ .Paginator.Prev.URL }}">&larr; <span class="hide">Next Posts</span></a>
{{end}}
<span class="page-number">Page {{ .Paginator.PageNumber }} of {{.Paginator.TotalPages}}</span>
<span class="page-number"><span class="hide">Page {{ .Paginator.PageNumber }} of {{.Paginator.TotalPages}}</span>&nbsp;</span>
{{if .Paginator.HasNext}}
<a class="older-posts" href="{{ .Paginator.Next.URL }}">Previous Posts &rarr;</a>
<a class="older-posts" href="{{ .Paginator.Next.URL }}"><span class="hide">Previous Posts</span> &rarr;</a>
{{end}}
</nav>
</div>
Expand Down
32 changes: 21 additions & 11 deletions static/css/casper-two.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,28 @@
}

@media (min-width: 900px) {
.ctsingle .post-feed {
margin-top: -70px;
padding-top: 0;
}
.ctsingle .site-nav {
position: relative;
top: -70px;
}
.ctsingle .post-feed {
margin-top: -70px;
padding-top: 0;
}
.ctsingle .site-nav {
position: relative;
top: -70px;
}
}

@media (min-width: 795px) {
.ctsingle .post-feed p {
font-size: 1.8rem;
line-height: 1.55em;
.ctsingle .post-feed p {
font-size: 1.8rem;
line-height: 1.55em;
}
}

@media (max-width: 650px) {
.hide {
display: none !important;
}
.copyright {
text-align: center;
}
}

0 comments on commit 44aecad

Please sign in to comment.