diff website/www/_templates/layout.html @ 6785:c90104abe508

IF website page is missing description, put in generated description. Some pages like search etc. don't have descriptions Set up layout to search metatags for a desciption meta tag. If not present generate a generic description. Otherwise the meta description for the page will be used.
author John Rouillard <rouilj@ieee.org>
date Wed, 13 Jul 2022 00:09:22 -0400
parents e7b4ad2c57ac
children 1800964b9347
line wrap: on
line diff
--- a/website/www/_templates/layout.html	Tue Jul 12 23:48:47 2022 -0400
+++ b/website/www/_templates/layout.html	Wed Jul 13 00:09:22 2022 -0400
@@ -3,6 +3,10 @@
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1">
+    {%- if 'name="description"' not in metatags %}
+      <meta name="description"
+        content="Page {{ pagename }} in documentation on the Roundup issue tracker, version {{ release|e }}.">
+    {%- endif %}
     {{ metatags }}
     {%- if builder != 'htmlhelp' %}
       {%- set titlesuffix = docstitle|e %}

Roundup Issue Tracker: http://roundup-tracker.org/