summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--__main__.py1
-rw-r--r--blog/templates/blog_feed.xml.j22
-rw-r--r--blog/templates/sidebar.html.j24
-rw-r--r--comic/templates/comic_feed.xml.j22
-rw-r--r--config.py1
5 files changed, 6 insertions, 4 deletions
diff --git a/__main__.py b/__main__.py
index 0379275..0e1dc48 100644
--- a/__main__.py
+++ b/__main__.py
@@ -20,6 +20,7 @@ def main(output_root_path: str, local: bool):
jinja_env = init_jinja_env()
jinja_env.globals.update(site={
"assets_path": Config.ASSETS_IMPORT_PATH,
+ "email": Config.EMAIL,
"assets_path_static": Config.ASSETS_IMPORT_PATH_STATIC,
"rss_filename": Config.RSS_FILE_NAME,
"main_url": Config.MAIN_ROOT_URL,
diff --git a/blog/templates/blog_feed.xml.j2 b/blog/templates/blog_feed.xml.j2
index 1061598..f6bcb17 100644
--- a/blog/templates/blog_feed.xml.j2
+++ b/blog/templates/blog_feed.xml.j2
@@ -12,7 +12,7 @@
<link>{{ post.get_link() }}</link>
<description>{{ post.intro }}</description>
<guid>{{ post.get_link() }}</guid>
- <author>contact@wazul.moe</author>
+ <author>{{ site.email }}</author>
<pubDate>{{ post.get_publish_time_rfc2822() }}</pubDate>
</item>
{% endfor %}
diff --git a/blog/templates/sidebar.html.j2 b/blog/templates/sidebar.html.j2
index 01625c2..461b55c 100644
--- a/blog/templates/sidebar.html.j2
+++ b/blog/templates/sidebar.html.j2
@@ -48,9 +48,9 @@ Sometimes I touch upon some more artistic stuff, but mostly just to amuse myself
<span>RSS feed</span>
</a>
<h3 class="magenta">Contact me at</h3>
-<a href="mailto:contact@wazul.moe" class="icon-text">
+<a href="mailto:{{ site.email }}" class="icon-text">
<img src="/assets/image/email.svg" class="svg-icon filter-yellow" />
-<span>contact@wazul.moe</span>
+<span>{{ site.email }}</span>
</a>
<p>especially if you find some typos or bugs on the page</p>
<h3 class="magenta">Thank you</h3>
diff --git a/comic/templates/comic_feed.xml.j2 b/comic/templates/comic_feed.xml.j2
index 3a8bcc8..b9e8e26 100644
--- a/comic/templates/comic_feed.xml.j2
+++ b/comic/templates/comic_feed.xml.j2
@@ -16,7 +16,7 @@
&lt;p&gt;{{ issue.description() }}&lt;/p&gt;
</description>
<guid>{{ issue.get_link() }}</guid>
- <author>contact@wazul.moe</author>
+ <author>{{ site.email }}</author>
<pubDate>{{ issue.get_publish_time_rfc2822() }}</pubDate>
</item>
{% endfor %}
diff --git a/config.py b/config.py
index a86475d..81fd243 100644
--- a/config.py
+++ b/config.py
@@ -5,6 +5,7 @@ import datetime
class Config:
__DIR = os.path.dirname(__file__)
ASSETS_IMPORT_PATH = "/assets"
+ EMAIL = "webmaster@wazul.moe"
ASSETS_IMPORT_PATH_STATIC = "https://static.wazul.moe"
MAIN_ROOT_URL = "https://wazul.moe"
GIT_ROOT_URL = "https://git.wazul.moe"