1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-04 01:59:54 +00:00

Change the mv-categories made-up microformat to mv-tags to match Betula

One day Bouncepaw will learn of “JSON API”
This commit is contained in:
Timur Ismagilov 2024-06-11 14:58:59 +03:00
parent 33a477cf36
commit f1d4310ec1
2 changed files with 3 additions and 3 deletions

View File

@ -1,12 +1,12 @@
{{define "category list"}}Category list{{end}}
{{define "title"}}{{template "category list"}}{{end}}
{{define "body"}}
<main class="main-width mv-categories">
<main class="main-width mv-tags">
<h1 class="p-name">{{template "title"}}</h1>
{{if len .Categories}}
<ol>
{{range .Categories}}
<li class="mv-category">
<li class="mv-tag">
<a class="wikilink u-url p-name" href="/category/{{.}}">{{beautifulName .}}</a>
</li>
{{end}}

View File

@ -35,7 +35,7 @@ wrapper.appendChild(hamburgerSection);
return Array
.from(new DOMParser()
.parseFromString(html, 'text/html')
.querySelectorAll('.mv-category .p-name'))
.querySelectorAll('.mv-tags .p-name'))
.map(a => a.innerText);
});