mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
Prev/next post pagination: hide title on small devices, when there's not enough space
This commit is contained in:
parent
3a0a4811cb
commit
a4262fb255
@ -391,6 +391,16 @@ h6:hover .anchor {
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.paginav .name {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 540px) {
|
||||||
|
.paginav .name {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
h1>a>svg {
|
h1>a>svg {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
@ -5,14 +5,14 @@
|
|||||||
<a class="prev" href="{{ .Permalink }}">
|
<a class="prev" href="{{ .Permalink }}">
|
||||||
<span class="title">« {{ i18n "prev_page" }}</span>
|
<span class="title">« {{ i18n "prev_page" }}</span>
|
||||||
<br>
|
<br>
|
||||||
<span>{{- .Name -}}</span>
|
<span class="name">{{- .Name -}}</span>
|
||||||
</a>
|
</a>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with $pages.Prev . }}
|
{{- with $pages.Prev . }}
|
||||||
<a class="next" href="{{ .Permalink }}">
|
<a class="next" href="{{ .Permalink }}">
|
||||||
<span class="title">{{ i18n "next_page" }} »</span>
|
<span class="title">{{ i18n "next_page" }} »</span>
|
||||||
<br>
|
<br>
|
||||||
<span>{{- .Name -}}</span>
|
<span class="name">{{- .Name -}}</span>
|
||||||
</a>
|
</a>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</nav>
|
</nav>
|
||||||
|
Loading…
Reference in New Issue
Block a user