Browse Source

Fix #148: Title for tag pages (#937)

master
ulf 1 month ago
parent
commit
111252c751
2 changed files with 4 additions and 3 deletions
  1. 2
    2
      tags/tagged.en.xhtml
  2. 2
    1
      tools/update_xmllists.sh

+ 2
- 2
tags/tagged.en.xhtml View File

@@ -2,12 +2,12 @@
2 2
 
3 3
 <html>
4 4
   <head>
5
-    <title>FSFE - tagged pages</title>
5
+    <title>FSFE - pages tagged "XXX_TAGNAME_XXX"</title>
6 6
   </head>
7 7
   <body>
8 8
     
9 9
     <p id="category"><a href="/tags/tags.html">Tags</a></p>
10
-    <h1>List of tagged pages</h1>
10
+    <h1>List of pages tagged "XXX_TAGNAME_XXX"</h1>
11 11
     
12 12
     <p>View: <a href="#tagged-news">News</a> / <a href="#tagged-events">Events</a></p>
13 13
     

+ 2
- 1
tools/update_xmllists.sh View File

@@ -85,7 +85,8 @@ done
85 85
 for tag in $(ls "${tagmaps}"); do
86 86
   if ! cmp --quiet "${tagmaps}/${tag}" "tags/.tagged-${tag}.xmllist"; then
87 87
     echo "*   Updating tag ${tag}"
88
-    cp "tags/tagged.en.xhtml" "tags/tagged-${tag}.en.xhtml"
88
+    sed "s,XXX_TAGNAME_XXX,${tag},g" "tags/tagged.en.xhtml"  \
89
+              > "tags/tagged-${tag}.en.xhtml"
89 90
     cp "${tagmaps}/${tag}" "tags/.tagged-${tag}.xmllist"
90 91
   fi
91 92
 done

Loading…
Cancel
Save