From 1bd37bb9ac01c7b58d0957e40b7586345ad5b103 Mon Sep 17 00:00:00 2001 From: Kirill Zhuravlev Date: Wed, 15 Feb 2023 00:49:25 +0100 Subject: [PATCH] items -> links --- main.go | 4 ++-- tmpl/cat-tmpl.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 846a8217..56ef932d 100644 --- a/main.go +++ b/main.go @@ -25,7 +25,7 @@ type Category struct { Title string Slug string Description string - Items []Link + Links []Link } // Source files @@ -254,7 +254,7 @@ func makeCategoryByID(selector string, doc *goquery.Document) (*Category, error) Slug: slug.Generate(selCatHeader.Text()), Title: selCatHeader.Text(), Description: selDescr.Text(), - Items: links, + Links: links, } return true diff --git a/tmpl/cat-tmpl.html b/tmpl/cat-tmpl.html index 614f42d7..15633f44 100644 --- a/tmpl/cat-tmpl.html +++ b/tmpl/cat-tmpl.html @@ -81,7 +81,7 @@ 🗺️ back to content menu