You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlgraphics.apache.org by ss...@apache.org on 2020/08/28 07:04:38 UTC

[xmlgraphics-website] branch master updated: Fix title

This is an automated email from the ASF dual-hosted git repository.

ssteiner pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/xmlgraphics-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 1f7cfa5  Fix title
1f7cfa5 is described below

commit 1f7cfa5d8a7dbe4f9d3600a0e6718e3b7859fd63
Author: ssteiner <ss...@apache.org>
AuthorDate: Fri Aug 28 08:02:06 2020 +0100

    Fix title
---
 theme/templates/base.html |  9 ++-------
 theme/templates/page.html | 10 ++++++++++
 2 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/theme/templates/base.html b/theme/templates/base.html
index 6c1cdaa..94c5b47 100644
--- a/theme/templates/base.html
+++ b/theme/templates/base.html
@@ -1,14 +1,9 @@
 <!DOCTYPE html>
 <html lang="en">
   <head>
-
-    <title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
-
+    {% block head %}
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <meta property="og:image" content="http://www.apache.org/images/asf_logo.gif" />
-<!--
-    <link rel="stylesheet" type="text/css" media="screen" href="http://www.apache.org/css/style.css">
--->
     <link rel="stylesheet" type="text/css" media="screen" href="https://www.apache.org/css/code.css">
     <link href="/css/profile.css" rel="stylesheet" type="text/css" />
     <link href="/css/xmlgraphics.css" rel="stylesheet" type="text/css" />
@@ -36,7 +31,7 @@
 	<style>
 	.highlight {color: red;}
 	</style>
-
+    {% endblock head %}
   </head>
 
   <body>
diff --git a/theme/templates/page.html b/theme/templates/page.html
new file mode 100644
index 0000000..29d5513
--- /dev/null
+++ b/theme/templates/page.html
@@ -0,0 +1,10 @@
+{% extends "base.html" %}
+
+{% block head %}
+{{ super() }}
+   <title>{% block title %}{{ page.title }}{% endblock title %}</title>
+{% endblock head %}
+
+{% block content %}
+    {{ page.content }}
+{% endblock %}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org