diff options
| author | Reorx <novoreorx@gmail.com> | 2022-04-22 01:09:19 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-04-22 01:13:25 +0800 |
| commit | 4d93247e53eadc672416f33429c5af0ff334e5e8 (patch) | |
| tree | ff2eafc0398cc44d8c1755414bacb6f5bc5b1997 /layouts | |
| parent | 7d6dfd7ebc437a776e6f67097d52b2d941d90008 (diff) | |
change post nav and footer style
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/_default/single.html | 6 | ||||
| -rw-r--r-- | layouts/partials/post_nav_links.html | 9 |
2 files changed, 10 insertions, 5 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 7f0d181..0a5f5bf 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -50,12 +50,12 @@ {{- end }} <footer class="post-footer"> - {{- if (.Param "ShowPostNavLinks") }} - {{- partial "post_nav_links.html" . }} - {{- end }} {{- if (and site.Params.ShowShareButtons (ne .Params.disableShare true)) }} {{- partial "share_icons.html" . -}} {{- end }} + {{- if (.Param "ShowPostNavLinks") }} + {{- partial "post_nav_links.html" . }} + {{- end }} </footer> {{- if (.Param "comments") }} diff --git a/layouts/partials/post_nav_links.html b/layouts/partials/post_nav_links.html index b988641..2d1eaa9 100644 --- a/layouts/partials/post_nav_links.html +++ b/layouts/partials/post_nav_links.html @@ -3,14 +3,19 @@ <nav class="paginav"> {{- with $pages.Next . }} <a class="prev" href="{{ .Permalink }}"> - <span class="title">« {{ i18n "prev_page" }}</span> + <span class="title"> + <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left" style="user-select: text;"><line x1="19" y1="12" x2="5" y2="12" style="user-select: text;"></line><polyline points="12 19 5 12 12 5" style="user-select: text;"></polyline></svg> + {{- i18n "prev_page" }}</span> <br> <span>{{- .Name -}}</span> </a> {{- end }} {{- with $pages.Prev . }} <a class="next" href="{{ .Permalink }}"> - <span class="title">{{ i18n "next_page" }} »</span> + <span class="title"> + {{- i18n "next_page" -}} + <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right" style="user-select: text;"><line x1="5" y1="12" x2="19" y2="12" style="user-select: text;"></line><polyline points="12 5 19 12 12 19" style="user-select: text;"></polyline></svg> + </span> <br> <span>{{- .Name -}}</span> </a> |
