diff --git a/source/_posts/caddy-nixos-part-1.md b/source/_posts/caddy-nixos-part-1.md index cbddb05..cb48636 100644 --- a/source/_posts/caddy-nixos-part-1.md +++ b/source/_posts/caddy-nixos-part-1.md @@ -8,6 +8,7 @@ tags: - linux - caddy - nixos +series: first --- In this segment, I show you how I install NixOS. diff --git a/source/_posts/caddy-nixos-part-2.md b/source/_posts/caddy-nixos-part-2.md index 4cc8037..8e081fd 100644 --- a/source/_posts/caddy-nixos-part-2.md +++ b/source/_posts/caddy-nixos-part-2.md @@ -8,6 +8,7 @@ tags: - linux - caddy - nixos +series: true --- > 9 Nov 2020: Updated to NixOS 20.09 syntax. diff --git a/source/_posts/caddy-nixos-part-3.md b/source/_posts/caddy-nixos-part-3.md index ad00286..1fa0126 100644 --- a/source/_posts/caddy-nixos-part-3.md +++ b/source/_posts/caddy-nixos-part-3.md @@ -9,6 +9,7 @@ tags: - caddy - nixos - cloudflare +series: true --- > 9 Nov 2020: Updated to Caddy 2.1 syntax. Refer to {% post_link caddy-upgrade-v2-proxy 'this article' %} for upgrade guide. diff --git a/source/_posts/i2p-eepsite-nixos.md b/source/_posts/i2p-eepsite-nixos.md index aa8855f..d04462a 100644 --- a/source/_posts/i2p-eepsite-nixos.md +++ b/source/_posts/i2p-eepsite-nixos.md @@ -10,6 +10,7 @@ tags: - nixos - i2p - censorship +series: last --- > 9 Nov 2020: Updated to Caddy 2.1 syntax. Refer to {% post_link caddy-upgrade-v2-proxy 'this article' %} for upgrade guide. diff --git a/source/_posts/tor-hidden-onion-nixos.md b/source/_posts/tor-hidden-onion-nixos.md index a4cfafc..3b34e29 100644 --- a/source/_posts/tor-hidden-onion-nixos.md +++ b/source/_posts/tor-hidden-onion-nixos.md @@ -10,6 +10,7 @@ tags: - nixos - tor - censorship +series: true --- > 9 Nov 2020: Updated to Caddy 2.1 syntax. Refer to {% post_link caddy-upgrade-v2-proxy 'this article' %} for upgrade guide. @@ -164,7 +165,7 @@ in { home = cfg.dataDir; createHome = true; }; - + users.groups.caddyProxy = { members = [ "caddyProxy" ]; }; diff --git a/themes/chameleon/layout/_partial/head.ejs b/themes/chameleon/layout/_partial/head.ejs index 726d9c0..c4c95aa 100644 --- a/themes/chameleon/layout/_partial/head.ejs +++ b/themes/chameleon/layout/_partial/head.ejs @@ -46,5 +46,21 @@ if (is_archive()) { <% if (theme.icons) { %> <%- css('/libs/forkawesome/css/forkawesome-1.1.7.min.css') %> <% } %> +<% if (is_post() && page.series) { %> + <% + if (page.series !== 'first' && page.next?.path?.startsWith(`${config.archive_dir}/`)) { + const pageTitle = page.next.title + %> + <%/* page.next is not a typo */%> + + <% } %> + <% + if (page.series !== 'last' && page.prev?.path?.startsWith(`${config.archive_dir}/`)) { + const pageTitle = page.prev.title + %> + + <% } %> +<% } %> +