From f1d4310ec145cf0f2c28a0214c1b085f612b709c Mon Sep 17 00:00:00 2001 From: Timur Ismagilov Date: Tue, 11 Jun 2024 14:58:59 +0300 Subject: [PATCH] Change the mv-categories made-up microformat to mv-tags to match Betula MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit One day Bouncepaw will learn of “JSON API” --- categories/view_list.html | 4 ++-- static/view.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/categories/view_list.html b/categories/view_list.html index e4e3573..71321dc 100644 --- a/categories/view_list.html +++ b/categories/view_list.html @@ -1,12 +1,12 @@ {{define "category list"}}Category list{{end}} {{define "title"}}{{template "category list"}}{{end}} {{define "body"}} -
+

{{template "title"}}

{{if len .Categories}}
    {{range .Categories}} -
  1. +
  2. {{beautifulName .}}
  3. {{end}} diff --git a/static/view.js b/static/view.js index 06fc1ec..909a092 100644 --- a/static/view.js +++ b/static/view.js @@ -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); });