Skip to content

Commit f51e293

Browse files
authored
i18n + search.authors + nav.archive + test multi-author features #21
Merge pull request #21 from famebot/i18archive - nav.archive to html from md - add missing search.authors and adjust nav.archive - add aria label to logo/site title nav (.navbar-home) - add Dan Forsyth as author of Elegance to test multi-author features
2 parents cf45dc8 + b4ab5cd commit f51e293

File tree

5 files changed

+11
-5
lines changed

5 files changed

+11
-5
lines changed

_data/i18n.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ nav:
44
previous_post: ← Older post
55
continue_reading: Continue reading →
66
archive_title: Archive
7-
archive: "More posts can be found in [the archive](/archive/)."
7+
archive: More posts can be found in <a href="/archive/">the&nbsp;archive</a>.
88
back: ← Back
99
page: Page
1010
next: Next →
@@ -16,3 +16,4 @@ search:
1616
by_author: Posts by
1717
by_tag: Tagged
1818
tags: Tags
19+
authors: Authors

_includes/layouts/archive.vto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ bodyClass: body-tag
1515
{{ set pageAuthors = search.pages("type=author pagination.page=1", "author") }}
1616
{{ if pageAuthors.length > 1 }}
1717
<nav class="page-navigation">
18-
<h2>{{ i18n.search.authors }}:</h2>
18+
<h2>{{ i18n.search.authors }}</h2>
1919

2020
<ul class="page-navigation-tags">
2121
{{ for page of pageAuthors }}

_includes/layouts/base.vto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</head>
2121
<body>
2222
<nav class="navbar">
23-
<a href="/" class="navbar-home">
23+
<a href="/" class="navbar-home" aria-label="Homepage">
2424
{{ if it.logo }}
2525
<img src="{{ it.logo }}" height="{{ it.logo_height }}" alt="{{ metas.site }}" title="{{ metas.site }}" />
2626
{{ else }}

index.vto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ title: Home
4242

4343
<hr>
4444

45-
<p>{{ i18n.nav.archive |> md }}</p>
45+
<p>{{ i18n.nav.archive }}</p>
4646
<div class="search" id="search"></div>
4747
</main>

posts/elegance.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
---
22
title: Elegance
33
date: '2025-04-18T16:00:00.000Z'
4+
author: Dan Forsyth
5+
tags:
6+
- Design
7+
- Xeo
48
draft: false
59
---
610

@@ -10,7 +14,8 @@ draft: false
1014
1115
<!--more-->
1216

13-
With Xeo, we strive to reflect this _simply powerful_ aspect of elegance,
17+
With Xeo, we strive to reflect this _simply powerful_ aspect of elegance
18+
described by Dan Forsyth,
1419
[as quoted](https://www.google.com/search?tbm=bks&tbo=1&q=%22elegance+is+power+cloaked+in+simplicity%22+Dan+Forsyth)
1520
in
1621
[Classic Shell Scripting](https://www.oreilly.com/library/view/classic-shell-scripting/0596005954/)

0 commit comments

Comments
 (0)