-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e76998a
commit 5116ec4
Showing
21 changed files
with
165 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
layout: layouts/page.njk | ||
layout: layouts/page.vto | ||
title: About Me | ||
menu: | ||
visible: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ import metas from "lume/plugins/metas.ts"; | |
import pagefind from "lume/plugins/pagefind.ts"; | ||
import sitemap from "lume/plugins/sitemap.ts"; | ||
import feed from "lume/plugins/feed.ts"; | ||
import vento from "lume/plugins/vento.ts"; | ||
import readingTime from "https://raw.githubusercontent.com/lumeland/experimental-plugins/main/reading_time/mod.ts"; | ||
import toc from "https://deno.land/x/[email protected]/toc.ts"; | ||
import image from "https://deno.land/x/[email protected]/image.ts"; | ||
|
@@ -35,6 +36,7 @@ export default function (options: Options = {}) { | |
.use(pagefind()) | ||
.use(terser()) | ||
.use(sitemap()) | ||
.use(vento()) | ||
.use(feed({ | ||
output: ["/feed.xml", "/feed.json"], | ||
query: "type=post", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
layout: layouts/base.njk | ||
layout: layouts/base.vto | ||
url: /404.html | ||
--- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
src/_includes/layouts/archive_result.njk → src/_includes/layouts/archive_result.vto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
--- | ||
layout: layouts/base.njk | ||
layout: layouts/base.vto | ||
bodyClass: body-tag | ||
--- | ||
<header class="page-header"> | ||
<p><a href="/archive/">← Back</a></p> | ||
<h1 class="page-title">{{ title }}</h1> | ||
</header> | ||
|
||
{% set postslist = search.pages(search_query) %} | ||
{% include "templates/post-list.njk" %} | ||
{{ include "templates/post-list.vto" { postslist: search.pages(search_query) } }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
src/_includes/layouts/page.njk → src/_includes/layouts/page.vto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
--- | ||
layout: layouts/base.njk | ||
layout: layouts/base.vto | ||
bodyClass: body-tag | ||
--- | ||
<article class="post" data-pagefind-body> | ||
<header class="post-header"> | ||
<h1 class="post-title">{{ title }}</h1> | ||
<h1 class="post-title">{{ it.title }}</h1> | ||
|
||
{{ subtitle | md | safe }} | ||
{{ it.subtitle |> md }} | ||
</header> | ||
|
||
<div class="post-body"> | ||
{{ content | safe }} | ||
{{ content }} | ||
</div> | ||
</article> |
34 changes: 17 additions & 17 deletions
34
src/_includes/layouts/post.njk → src/_includes/layouts/post.vto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,62 @@ | ||
--- | ||
layout: layouts/base.njk | ||
layout: layouts/base.vto | ||
bodyClass: body-post | ||
--- | ||
<article class="post" data-pagefind-body data-title="{{ title }}" data-pagefind-index-attrs="data-title"> | ||
<header class="post-header"> | ||
<h1 class="post-title">{{ title }}</h1> | ||
|
||
{% include "templates/post-details.njk" %} | ||
{{ include "templates/post-details.vto" }} | ||
</header> | ||
|
||
{% if toc.length > 1 or toc[0].children.length %} | ||
{{ if toc.length > 1 || toc[0].children.length }} | ||
<nav class="toc"> | ||
<h2>Table of contents</h2> | ||
<ol> | ||
{% for item in toc %} | ||
{{ for item of toc }} | ||
<li> | ||
<a href="#{{ item.slug }}">{{ item.text }}</a> | ||
|
||
{% if item.children.length %} | ||
{{ if item.children.length }} | ||
<ul> | ||
{% for child in item.children %} | ||
{{ for child of item.children }} | ||
<li> | ||
<a href="#{{ child.slug }}">{{ child.text }}</a> | ||
</li> | ||
{% endfor %} | ||
{{ /for }} | ||
</ul> | ||
{% endif %} | ||
{{ /if }} | ||
</li> | ||
{% endfor %} | ||
{{ /for }} | ||
</ol> | ||
</nav> | ||
{% endif %} | ||
{{ /if }} | ||
|
||
<div class="post-body body"> | ||
{{ content | safe }} | ||
{{ content }} | ||
</div> | ||
</article> | ||
|
||
<nav class="page-pagination pagination"> | ||
<ul> | ||
{%- set previousPost = search.previousPage(url, "type=post") %} | ||
{%- if previousPost %} | ||
{{- set previousPost = search.previousPage(url, "type=post") }} | ||
{{- if previousPost }} | ||
<li class="pagination-prev"> | ||
<a href="{{ previousPost.data.url }}" rel="prev"> | ||
<span>← Older post</span> | ||
<strong>{{ previousPost.data.title }}</strong> | ||
</a> | ||
</li> | ||
{% endif %} | ||
{{ /if }} | ||
|
||
{%- set nextPost = search.nextPage(url, "type=post") %} | ||
{%- if nextPost %} | ||
{{- set nextPost = search.nextPage(url, "type=post") }} | ||
{{- if nextPost }} | ||
<li class="pagination-next"> | ||
<a href="{{ nextPost.data.url }}" rel="next"> | ||
<span>Newer post →</span> | ||
<strong>{{ nextPost.data.title }}</strong> | ||
</a> | ||
</li> | ||
{% endif %} | ||
{{ /if }} | ||
</ul> | ||
</nav> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.