summaryrefslogtreecommitdiff
path: root/scripts/html_fragments.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/html_fragments.py')
-rw-r--r--scripts/html_fragments.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/scripts/html_fragments.py b/scripts/html_fragments.py
index 96c9c5e..3e6223b 100644
--- a/scripts/html_fragments.py
+++ b/scripts/html_fragments.py
@@ -18,6 +18,17 @@ url_sourceforge = "https://sourceforge.net/projects/graphicsmagick/"
banner_logo = 'images/gm-107x76.png' # relative to top directory
+html_head_template = """<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <meta content="en" name="language">
+ <title>{title}</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <link media="screen" href="{url_screen_css}" type="text/css" rel="stylesheet">
+{metas}
+</head>
+"""
# banner_template and nav_template contain chunk which has to be created at
# runtime: the path to the image directory, and the path to the top directory.
@@ -63,10 +74,13 @@ nav_template = """
footer_template = u"""
<hr class="docutils">
<div class="document">
- <p><a href="%(url_prefix)sCopyright.html">Copyright</a> © GraphicsMagick Group 2002 - 2022%(sponsor_logo_html)s</p>
+ <p><a href="%(url_prefix)sCopyright.html">Copyright</a> © GraphicsMagick Group 2002 - 2023%(sponsor_logo_html)s</p>
</div>
"""
+def make_html_head(url_screen_css, title, metas):
+ return html_head_template.format(url_screen_css=url_screen_css, title=title, metas=metas)
+
def make_footer():
return footer_template % { 'url_prefix' : url_prefix,
'sponsor_logo_html' : sponsor_logo_html,