[gimp-web/testing] Add SITEMAP_SITEURL variable to config file & sitemap plugin
- From: Pat David <patdavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web/testing] Add SITEMAP_SITEURL variable to config file & sitemap plugin
- Date: Mon, 23 May 2016 20:30:16 +0000 (UTC)
commit f6a9fc4448e647d56461fff6b28d43aaf187dafa
Author: Pat David <patdavid gmail com>
Date: Mon May 23 15:24:41 2016 -0500
Add SITEMAP_SITEURL variable to config file & sitemap plugin
Adding a the protocol + SITEURL to fix invalid <loc> tags
in the sitemap.xml file (they were protocol-less //).
Modified sitemap plugin to reference SITEMAP_SITEURL instead
of SITEURL.
pelicanconf.local.py | 1 +
pelicanconf.py | 1 +
pelicanconf.testing.py | 1 +
plugins/sitemap/sitemap.py | 2 +-
4 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pelicanconf.local.py b/pelicanconf.local.py
index 6f1c793..53795cd 100644
--- a/pelicanconf.local.py
+++ b/pelicanconf.local.py
@@ -31,6 +31,7 @@ I18N_SUBSITES = {
AUTHOR = u'Pat David'
SITENAME = u'GIMP'
SITEURL = '//www.gimp.org'
+SITEMAP_SITEURL = 'https://www.gimp.org'
GIMP_VERSION = u'2.8.16'
PATH = 'content'
diff --git a/pelicanconf.py b/pelicanconf.py
index 71b3463..a9d2947 100644
--- a/pelicanconf.py
+++ b/pelicanconf.py
@@ -32,6 +32,7 @@ I18N_SUBSITES = {
AUTHOR = u'Pat David'
SITENAME = u'GIMP'
SITEURL = '//www.gimp.org'
+SITEMAP_SITEURL = 'https://www.gimp.org'
GIMP_VERSION = u'2.8.16'
PATH = 'content'
diff --git a/pelicanconf.testing.py b/pelicanconf.testing.py
index fb5a53e..f91975d 100644
--- a/pelicanconf.testing.py
+++ b/pelicanconf.testing.py
@@ -32,6 +32,7 @@ I18N_SUBSITES = {
AUTHOR = u'Pat David'
SITENAME = u'GIMP'
SITEURL = '//testing.gimp.org'
+SITEMAP_SITEURL = 'https://testing.gimp.org'
GIMP_VERSION = u'2.8.16'
PATH = 'content'
diff --git a/plugins/sitemap/sitemap.py b/plugins/sitemap/sitemap.py
index ccd9bfc..da11e4a 100644
--- a/plugins/sitemap/sitemap.py
+++ b/plugins/sitemap/sitemap.py
@@ -61,7 +61,7 @@ class SitemapGenerator(object):
self.output_path = output_path
self.context = context
self.now = datetime.now()
- self.siteurl = settings.get('SITEURL')
+ self.siteurl = settings.get('SITEMAP_SITEURL')
self.default_timezone = settings.get('TIMEZONE', 'UTC')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]