diff options
| -rw-r--r-- | hugo.toml | 2 | ||||
| -rw-r--r-- | layouts/partials/primary-nav.html | 2 | ||||
| -rw-r--r-- | layouts/partials/recent.html | 4 |
3 files changed, 4 insertions, 4 deletions
@@ -16,7 +16,7 @@ enableRobotsTXT = false sourceURL = "https://git.richardqin.org/rhomepage" gitBase = "https://git.richardqin.org/rhomepage/tree" contentLicense = "CC BY-SA 4.0" - recentLimit = 20 + recentLimit = 10 announcementLimit = 3 [frontmatter] diff --git a/layouts/partials/primary-nav.html b/layouts/partials/primary-nav.html index 4a94d92..c55db31 100644 --- a/layouts/partials/primary-nav.html +++ b/layouts/partials/primary-nav.html @@ -1,8 +1,8 @@ <nav class="site-nav" aria-label="Primary"> - <a href="{{ "/announcements/" | relURL }}"{{ if eq .Section "announcements" }} aria-current="page"{{ end }}>announcements/</a> <a href="{{ "/journal/" | relURL }}"{{ if eq .Section "journal" }} aria-current="page"{{ end }}>journal/</a> <a href="{{ "/notes/" | relURL }}"{{ if eq .Section "notes" }} aria-current="page"{{ end }}>notes/</a> <a href="{{ "/projects/" | relURL }}"{{ if eq .Section "projects" }} aria-current="page"{{ end }}>projects/</a> + <a href="{{ "/announcements/" | relURL }}"{{ if eq .Section "announcements" }} aria-current="page"{{ end }}>announcements/</a> <a href="{{ "/links/" | relURL }}"{{ if eq .Section "links" }} aria-current="page"{{ end }}>links/</a> <a href="{{ "/now.txt" | relURL }}">now.txt</a> </nav> diff --git a/layouts/partials/recent.html b/layouts/partials/recent.html index cbe91af..f3d4209 100644 --- a/layouts/partials/recent.html +++ b/layouts/partials/recent.html @@ -1,6 +1,6 @@ {{- $items := partial "updated-items.html" . -}} <section class="recent" aria-labelledby="recent-title"> - <h2 id="recent-title">RECENT</h2> + <h2 id="recent-title">RECENT UPDATES</h2> <ol class="document-list"> {{- range first site.Params.recentLimit $items }} <li> @@ -10,5 +10,5 @@ </li> {{- end }} </ol> - <p class="recent-more"><a href="{{ "updates/" | relURL }}">Read more</a></p> + <p class="recent-more"><a href="{{ "updates/" | relURL }}">All updates →</a></p> </section> |
