diff options
| -rw-r--r-- | example/dst/.files | 14 | ||||
| -rw-r--r-- | example/dst/articles/an-interesting-article/assets/stamps.webp (renamed from example/dst/Articles/an-interesting-article/assets/stamps.webp) | bin | 46960 -> 46960 bytes | |||
| -rw-r--r-- | example/dst/articles/an-interesting-article/index.html (renamed from example/dst/Articles/an-interesting-article/index.html) | 0 | ||||
| -rw-r--r-- | example/dst/articles/another-interesting-article/assets/japanese-train.webp (renamed from example/dst/Articles/another-interesting-article/assets/japanese-train.webp) | bin | 128168 -> 128168 bytes | |||
| -rw-r--r-- | example/dst/articles/another-interesting-article/index.html (renamed from example/dst/Articles/another-interesting-article/index.html) | 0 | ||||
| -rw-r--r-- | example/dst/articles/article3.html (renamed from example/dst/Articles/article3.html) | 0 | ||||
| -rw-r--r-- | example/dst/index.html | 10 | ||||
| -rw-r--r-- | example/dst/lists/board-games.html (renamed from example/dst/Lists/board-games.html) | 0 | ||||
| -rw-r--r-- | example/dst/lists/movies.html (renamed from example/dst/Lists/movies.html) | 0 | ||||
| -rw-r--r-- | example/dst/sitemap.xml | 14 | ||||
| -rw-r--r-- | example/src/articles/an-interesting-article/assets/stamps.webp (renamed from example/src/Articles/an-interesting-article/assets/stamps.webp) | bin | 46960 -> 46960 bytes | |||
| -rw-r--r-- | example/src/articles/an-interesting-article/index.md (renamed from example/src/Articles/an-interesting-article/index.md) | 0 | ||||
| -rw-r--r-- | example/src/articles/another-interesting-article/assets/japanese-train.webp (renamed from example/src/Articles/another-interesting-article/assets/japanese-train.webp) | bin | 128168 -> 128168 bytes | |||
| -rw-r--r-- | example/src/articles/another-interesting-article/index.md (renamed from example/src/Articles/another-interesting-article/index.md) | 0 | ||||
| -rw-r--r-- | example/src/articles/article3.md (renamed from example/src/Articles/article3.md) | 0 | ||||
| -rw-r--r-- | example/src/lists/board-games.md (renamed from example/src/Lists/board-games.md) | 0 | ||||
| -rw-r--r-- | example/src/lists/movies.md (renamed from example/src/Lists/movies.md) | 0 | ||||
| -rwxr-xr-x | ssg-blog | 2 |
18 files changed, 20 insertions, 20 deletions
diff --git a/example/dst/.files b/example/dst/.files index 1611884..331242d 100644 --- a/example/dst/.files +++ b/example/dst/.files @@ -1,11 +1,11 @@ ./style.css -./Lists/board-games.md -./Lists/movies.md +./lists/board-games.md +./lists/movies.md +./articles/an-interesting-article/index.md +./articles/an-interesting-article/assets/stamps.webp +./articles/another-interesting-article/index.md +./articles/another-interesting-article/assets/japanese-train.webp +./articles/article3.md ./about.md -./Articles/an-interesting-article/index.md -./Articles/an-interesting-article/assets/stamps.webp -./Articles/another-interesting-article/index.md -./Articles/another-interesting-article/assets/japanese-train.webp -./Articles/article3.md ./404.md ./favicon.png diff --git a/example/dst/Articles/an-interesting-article/assets/stamps.webp b/example/dst/articles/an-interesting-article/assets/stamps.webp Binary files differindex 9785ce7..9785ce7 100644 --- a/example/dst/Articles/an-interesting-article/assets/stamps.webp +++ b/example/dst/articles/an-interesting-article/assets/stamps.webp diff --git a/example/dst/Articles/an-interesting-article/index.html b/example/dst/articles/an-interesting-article/index.html index 8e65041..8e65041 100644 --- a/example/dst/Articles/an-interesting-article/index.html +++ b/example/dst/articles/an-interesting-article/index.html diff --git a/example/dst/Articles/another-interesting-article/assets/japanese-train.webp b/example/dst/articles/another-interesting-article/assets/japanese-train.webp Binary files differindex c4cab3e..c4cab3e 100644 --- a/example/dst/Articles/another-interesting-article/assets/japanese-train.webp +++ b/example/dst/articles/another-interesting-article/assets/japanese-train.webp diff --git a/example/dst/Articles/another-interesting-article/index.html b/example/dst/articles/another-interesting-article/index.html index 010c0f1..010c0f1 100644 --- a/example/dst/Articles/another-interesting-article/index.html +++ b/example/dst/articles/another-interesting-article/index.html diff --git a/example/dst/Articles/article3.html b/example/dst/articles/article3.html index 75783b7..75783b7 100644 --- a/example/dst/Articles/article3.html +++ b/example/dst/articles/article3.html diff --git a/example/dst/index.html b/example/dst/index.html index 86ad95d..681fec9 100644 --- a/example/dst/index.html +++ b/example/dst/index.html @@ -28,14 +28,14 @@ </div> <h1>Articles</h1> <ul> -<li>2024-10-04: <a href="https://example.org/Articles/an-interesting-article/">This is a very interesting article about stamps</a></li> -<li>2024-09-10: <a href="https://example.org/Articles/another-interesting-article/">I love trains</a></li> -<li>2023-10-08: <a href="https://example.org/Articles/article3.html">This is a third article!</a></li> +<li>2024-10-04: <a href="https://example.org/articles/an-interesting-article/">This is a very interesting article about stamps</a></li> +<li>2024-09-10: <a href="https://example.org/articles/another-interesting-article/">I love trains</a></li> +<li>2023-10-08: <a href="https://example.org/articles/article3.html">This is a third article!</a></li> </ul> <h1>Lists</h1> <ul> -<li>2024-07-12: <a href="https://example.org/Lists/board-games.html">Board games</a></li> -<li>2022-06-05: <a href="https://example.org/Lists/movies.html">Movies</a></li> +<li>2024-07-12: <a href="https://example.org/lists/board-games.html">Board games</a></li> +<li>2022-06-05: <a href="https://example.org/lists/movies.html">Movies</a></li> </ul> </body> </html> diff --git a/example/dst/Lists/board-games.html b/example/dst/lists/board-games.html index 5a54f33..5a54f33 100644 --- a/example/dst/Lists/board-games.html +++ b/example/dst/lists/board-games.html diff --git a/example/dst/Lists/movies.html b/example/dst/lists/movies.html index dc7fc57..dc7fc57 100644 --- a/example/dst/Lists/movies.html +++ b/example/dst/lists/movies.html diff --git a/example/dst/sitemap.xml b/example/dst/sitemap.xml index 6c057b3..945ab51 100644 --- a/example/dst/sitemap.xml +++ b/example/dst/sitemap.xml @@ -4,11 +4,11 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> -<url><loc>https://example.org/Lists/board-games.html</loc><lastmod>2024-10-09</lastmod><priority>1.0</priority></url> -<url><loc>https://example.org/Lists/movies.html</loc><lastmod>2024-10-09</lastmod><priority>1.0</priority></url> -<url><loc>https://example.org/about.html</loc><lastmod>2024-10-09</lastmod><priority>1.0</priority></url> -<url><loc>https://example.org/Articles/an-interesting-article/</loc><lastmod>2024-10-09</lastmod><priority>1.0</priority></url> -<url><loc>https://example.org/Articles/another-interesting-article/</loc><lastmod>2024-10-09</lastmod><priority>1.0</priority></url> -<url><loc>https://example.org/Articles/article3.html</loc><lastmod>2024-10-09</lastmod><priority>1.0</priority></url> -<url><loc>https://example.org/404.html</loc><lastmod>2024-10-09</lastmod><priority>1.0</priority></url> +<url><loc>https://example.org/lists/board-games.html</loc><lastmod>2024-10-10</lastmod><priority>1.0</priority></url> +<url><loc>https://example.org/lists/movies.html</loc><lastmod>2024-10-10</lastmod><priority>1.0</priority></url> +<url><loc>https://example.org/articles/an-interesting-article/</loc><lastmod>2024-10-10</lastmod><priority>1.0</priority></url> +<url><loc>https://example.org/articles/another-interesting-article/</loc><lastmod>2024-10-10</lastmod><priority>1.0</priority></url> +<url><loc>https://example.org/articles/article3.html</loc><lastmod>2024-10-10</lastmod><priority>1.0</priority></url> +<url><loc>https://example.org/about.html</loc><lastmod>2024-10-10</lastmod><priority>1.0</priority></url> +<url><loc>https://example.org/404.html</loc><lastmod>2024-10-10</lastmod><priority>1.0</priority></url> </urlset> diff --git a/example/src/Articles/an-interesting-article/assets/stamps.webp b/example/src/articles/an-interesting-article/assets/stamps.webp Binary files differindex 9785ce7..9785ce7 100644 --- a/example/src/Articles/an-interesting-article/assets/stamps.webp +++ b/example/src/articles/an-interesting-article/assets/stamps.webp diff --git a/example/src/Articles/an-interesting-article/index.md b/example/src/articles/an-interesting-article/index.md index 779f4b6..779f4b6 100644 --- a/example/src/Articles/an-interesting-article/index.md +++ b/example/src/articles/an-interesting-article/index.md diff --git a/example/src/Articles/another-interesting-article/assets/japanese-train.webp b/example/src/articles/another-interesting-article/assets/japanese-train.webp Binary files differindex c4cab3e..c4cab3e 100644 --- a/example/src/Articles/another-interesting-article/assets/japanese-train.webp +++ b/example/src/articles/another-interesting-article/assets/japanese-train.webp diff --git a/example/src/Articles/another-interesting-article/index.md b/example/src/articles/another-interesting-article/index.md index 4e5d9b7..4e5d9b7 100644 --- a/example/src/Articles/another-interesting-article/index.md +++ b/example/src/articles/another-interesting-article/index.md diff --git a/example/src/Articles/article3.md b/example/src/articles/article3.md index c98ebba..c98ebba 100644 --- a/example/src/Articles/article3.md +++ b/example/src/articles/article3.md diff --git a/example/src/Lists/board-games.md b/example/src/lists/board-games.md index 6a40080..6a40080 100644 --- a/example/src/Lists/board-games.md +++ b/example/src/lists/board-games.md diff --git a/example/src/Lists/movies.md b/example/src/lists/movies.md index 92d82e6..92d82e6 100644 --- a/example/src/Lists/movies.md +++ b/example/src/lists/movies.md @@ -229,7 +229,7 @@ render_index() { done if [ -f "/tmp/articles_$category.txt" ]; then - echo "<h1>$category</h1>" >> "$output" + echo "<h1>$(echo "$category" | sed -E 's/(^|[_ ])([a-z])/\1\U\2/g')</h1>" >> "$output" echo "<ul>" >> "$output" sort -r "/tmp/articles_$category.txt" | while IFS='|' read -r date title url; do |
