-
Notifications
You must be signed in to change notification settings - Fork 5
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
e5a9ba2
commit a687dd0
Showing
11 changed files
with
80 additions
and
32 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,6 +1,6 @@ | ||
{ | ||
"imports": { | ||
"lume/": "https://deno.land/x/lume@v2.1.4/", | ||
"lume/": "https://deno.land/x/lume@v2.2.4/", | ||
"lume/cms/": "https://cdn.jsdelivr.net/gh/lumeland/[email protected]/" | ||
}, | ||
"lock": false, | ||
|
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
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,20 +1,28 @@ | ||
{{ set folder = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="var(--color-dim)" viewBox="0 0 256 256"><path d="M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64l27.73,20.8a16.12,16.12,0,0,0,9.6,3.2H200v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z"></path></svg>' }} | ||
{{ set expandable = !!item.children }} | ||
|
||
{{> let urlPrefix = `${prefix ?? "/" }${item.slug}/` }} | ||
{{ set expanded = expandable ? url.startsWith(urlPrefix) : false }} | ||
|
||
{{ if expandable }}<details{{ expanded ? " open" : "" }}><summary>{{ /if }} | ||
{{ if item.data }} | ||
<a {{ if item.data.url == url }}aria-current="page"{{ /if }} href="{{ item.data.url }}"> | ||
{{ if item.children }}<span class="icon">{{ folder }}</span>{{ /if }} | ||
{{ if item.children }}{{ /if }} | ||
{{ item.data.title || item.slug }} | ||
</a> | ||
{{ else }} | ||
<strong><span class="icon">{{ folder }}</span> {{ item.slug }}</strong> | ||
<strong>{{ item.slug }}</strong> | ||
{{ /if }} | ||
|
||
{{ if expandable }}</summary>{{ /if }} | ||
|
||
{{ if item.children }} | ||
<ul> | ||
{{ for child of item.children.sort((a, b) => a.data?.order - b.data?.order) }} | ||
<li> | ||
{{ include "templates/menu_item.vto" { item: child } }} | ||
{{ include "templates/menu_item.vto" { item: child, prefix: urlPrefix } }} | ||
</li> | ||
{{ /for }} | ||
</ul> | ||
{{ /if }} | ||
|
||
{{ if expandable }}</details>{{ /if }} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
index page |
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,3 +1,7 @@ | ||
--- | ||
order: 2 | ||
--- | ||
|
||
# First note | ||
|
||
This is a note |
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