mirror of https://gitlab.com/curben/blog
feat(theme): support for series hint
- https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel#attr-next
This commit is contained in:
parent
f56b7c176c
commit
d8c745dcf7
|
@ -8,6 +8,7 @@ tags:
|
||||||
- linux
|
- linux
|
||||||
- caddy
|
- caddy
|
||||||
- nixos
|
- nixos
|
||||||
|
series: first
|
||||||
---
|
---
|
||||||
|
|
||||||
In this segment, I show you how I install NixOS.
|
In this segment, I show you how I install NixOS.
|
||||||
|
|
|
@ -8,6 +8,7 @@ tags:
|
||||||
- linux
|
- linux
|
||||||
- caddy
|
- caddy
|
||||||
- nixos
|
- nixos
|
||||||
|
series: true
|
||||||
---
|
---
|
||||||
|
|
||||||
> 9 Nov 2020: Updated to NixOS 20.09 syntax.
|
> 9 Nov 2020: Updated to NixOS 20.09 syntax.
|
||||||
|
|
|
@ -9,6 +9,7 @@ tags:
|
||||||
- caddy
|
- caddy
|
||||||
- nixos
|
- nixos
|
||||||
- cloudflare
|
- 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.
|
> 9 Nov 2020: Updated to Caddy 2.1 syntax. Refer to {% post_link caddy-upgrade-v2-proxy 'this article' %} for upgrade guide.
|
||||||
|
|
|
@ -10,6 +10,7 @@ tags:
|
||||||
- nixos
|
- nixos
|
||||||
- i2p
|
- i2p
|
||||||
- censorship
|
- 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.
|
> 9 Nov 2020: Updated to Caddy 2.1 syntax. Refer to {% post_link caddy-upgrade-v2-proxy 'this article' %} for upgrade guide.
|
||||||
|
|
|
@ -10,6 +10,7 @@ tags:
|
||||||
- nixos
|
- nixos
|
||||||
- tor
|
- tor
|
||||||
- censorship
|
- 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.
|
> 9 Nov 2020: Updated to Caddy 2.1 syntax. Refer to {% post_link caddy-upgrade-v2-proxy 'this article' %} for upgrade guide.
|
||||||
|
|
|
@ -46,5 +46,21 @@ if (is_archive()) {
|
||||||
<% if (theme.icons) { %>
|
<% if (theme.icons) { %>
|
||||||
<%- css('/libs/forkawesome/css/forkawesome-1.1.7.min.css') %>
|
<%- 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 */%>
|
||||||
|
<link rel="prev" href="<%- url_for(page.next.path) %>" title="<%= pageTitle %>">
|
||||||
|
<% } %>
|
||||||
|
<%
|
||||||
|
if (page.series !== 'last' && page.prev?.path?.startsWith(`${config.archive_dir}/`)) {
|
||||||
|
const pageTitle = page.prev.title
|
||||||
|
%>
|
||||||
|
<link rel="next" href="<%- url_for(page.prev.path) %>" title="<%= pageTitle %>">
|
||||||
|
<% } %>
|
||||||
|
<% } %>
|
||||||
|
|
||||||
<meta name="yandex-verification" content="e026a03a5dd06730" />
|
<meta name="yandex-verification" content="e026a03a5dd06730" />
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in New Issue