1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-10-30 03:36:16 +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 "category list"}}Category list{{end}}
{{define "title"}}{{template "category list"}}{{end}} {{define "title"}}{{template "category list"}}{{end}}
{{define "body"}} {{define "body"}}
<main class="main-width mv-categories"> <main class="main-width mv-tags">
<h1 class="p-name">{{template "title"}}</h1> <h1 class="p-name">{{template "title"}}</h1>
{{if len .Categories}} {{if len .Categories}}
<ol> <ol>
{{range .Categories}} {{range .Categories}}
<li class="mv-category"> <li class="mv-tag">
<a class="wikilink u-url p-name" href="/category/{{.}}">{{beautifulName .}}</a> <a class="wikilink u-url p-name" href="/category/{{.}}">{{beautifulName .}}</a>
</li> </li>
{{end}} {{end}}

View File

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