comparison 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
comparison
equal deleted inserted replaced
6784:502fb803fc22 6785:c90104abe508
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> 2 <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
3 <head> 3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <meta name="viewport" content="width=device-width, initial-scale=1"> 5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 {%- if 'name="description"' not in metatags %}
7 <meta name="description"
8 content="Page {{ pagename }} in documentation on the Roundup issue tracker, version {{ release|e }}.">
9 {%- endif %}
6 {{ metatags }} 10 {{ metatags }}
7 {%- if builder != 'htmlhelp' %} 11 {%- if builder != 'htmlhelp' %}
8 {%- set titlesuffix = docstitle|e %} 12 {%- set titlesuffix = docstitle|e %}
9 {%- set titlesuffix = " - " + titlesuffix %} 13 {%- set titlesuffix = " - " + titlesuffix %}
10 {%- endif %} 14 {%- endif %}

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