From afc6b7518f84523766163d4a2d0318c20ca2e661 Mon Sep 17 00:00:00 2001 From: Gordon Stanton Date: Mon, 1 May 2023 00:50:01 +1000 Subject: [PATCH 1/2] Fixed link to Tags. Get episode ID and episode tags from eps. Generate the Tags page by looping through the tags, order by their first character. Added tags page to the config. --- site.cfg | 4 ++ templates/content-tags.tpl.html | 84 ++++++++++++++++++++++++++ templates/navigation-main.tpl.html | 2 +- templates/queries-tags-mysql.tpl.html | 1 + templates/queries-tags-sqlite.tpl.html | 1 + 5 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 templates/content-tags.tpl.html create mode 100644 templates/queries-tags-mysql.tpl.html create mode 100644 templates/queries-tags-sqlite.tpl.html diff --git a/site.cfg b/site.cfg index aefadb2..a71dd2a 100644 --- a/site.cfg +++ b/site.cfg @@ -146,6 +146,10 @@ content: content-promote.tpl.html navigation: navigation-about.tpl.html content: content-sitemap.tpl.html +[tags] +navigation: navigation-main.tpl.html +content: content-tags.tpl.html + [twat_episode] navigation: navigation-get-shows.tpl.html content: content-twat_episode.tpl.html diff --git a/templates/content-tags.tpl.html b/templates/content-tags.tpl.html new file mode 100644 index 0000000..8afc1cf --- /dev/null +++ b/templates/content-tags.tpl.html @@ -0,0 +1,84 @@ + + + +$Template::Stash::PRIVATE = undef; # Allow . in tag + + + + + + + + + +
+

Tag summary

+

Page generated on

+

This section summarises all of the tags currently used throughout the + database. The tags are in alphabetical order and each is followed by links to + the show numbers where it is used so you can see the context the author used + it in. There are currently unique tags in the system.

+

Alphabetical index

+

This is an index to the initial letters of the tags below.

+ +
+ + +

↑ Go to index

+

Tags beginning with ''

+ + + +

Go to TOP of page

+
+ +$Template::Stash::PRIVATE = 1; + diff --git a/templates/navigation-main.tpl.html b/templates/navigation-main.tpl.html index e694c4a..e773eec 100644 --- a/templates/navigation-main.tpl.html +++ b/templates/navigation-main.tpl.html @@ -5,7 +5,7 @@
  • Get Shows
  • Give Shows
  • Contribute
  • -
  • Tags
  • +
  • Tags
  • About
  • Search
  • diff --git a/templates/queries-tags-mysql.tpl.html b/templates/queries-tags-mysql.tpl.html new file mode 100644 index 0000000..9b5e099 --- /dev/null +++ b/templates/queries-tags-mysql.tpl.html @@ -0,0 +1 @@ + diff --git a/templates/queries-tags-sqlite.tpl.html b/templates/queries-tags-sqlite.tpl.html new file mode 100644 index 0000000..9b5e099 --- /dev/null +++ b/templates/queries-tags-sqlite.tpl.html @@ -0,0 +1 @@ + From 8b218e20368d8984cbf3f95664cee6b3ff5d5f8e Mon Sep 17 00:00:00 2001 From: Roan Horning Date: Sat, 6 May 2023 09:07:25 -0400 Subject: [PATCH 2/2] Fix episode url issues Add absolute_path macro. Add eps folder to path. Pad episode number in path. --- templates/content-tags.tpl.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/content-tags.tpl.html b/templates/content-tags.tpl.html index 8afc1cf..6345329 100644 --- a/templates/content-tags.tpl.html +++ b/templates/content-tags.tpl.html @@ -1,3 +1,4 @@ + @@ -52,14 +53,14 @@ END %-->
    -

    ↑ Go to index

    +

    ↑ Go to index

    Tags beginning with ''