mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-10-29 19:26: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:
parent
33a477cf36
commit
f1d4310ec1
@ -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}}
|
||||
|
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user