Added global keywords
diff --git a/README.md b/README.md
index e10a16b..8ab6fd9 100644
--- a/README.md
+++ b/README.md
@@ -44,6 +44,8 @@
- `MANGLE_EMAILS` If enabled, any emails in the `SOCIAL` links will be obfuscated in HTML and have their links generated by JavaScript when the page loads.
+- `GLOBAL_KEYWORDS` A list of strings that will be set as keywords for each page
+
When developing locally, you may want to set the following variable: `SITEURL = http://localhost:8000`
## MODIFICATIONS
diff --git a/templates/article.html b/templates/article.html
index 1cfdd0d..81bd24e 100644
--- a/templates/article.html
+++ b/templates/article.html
@@ -1,6 +1,13 @@
{% extends "base.html" %}
{% block head %}
-<meta name="keywords" content="{{ article.tags|join(', ') }}">
+<meta name="keywords" content="
+ {%- if GLOBAL_KEYWORDS -%}
+ {{ GLOBAL_KEYWORDS|join(', ') }}
+ {%- if article.tags -%}
+ {{', '}}
+ {%- endif -%}
+ {%- endif -%}
+ {{article.tags|join(', ') }}">
{% endblock %}
{% block title %}{{ article.title }} | {{ SITENAME }}{% endblock %}
diff --git a/templates/base.html b/templates/base.html
index 35b609a..8fd4fdd 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -26,6 +26,14 @@
{% endif %}
{% block head %}
+ <meta name="keywords" content="
+ {%- if GLOBAL_KEYWORDS -%}
+ {{ GLOBAL_KEYWORDS|join(', ') }}
+ {%- if tags -%}
+ {{', '}}
+ {%- endif -%}
+ {%- endif -%}
+ {{tags|join(', ', attribute='0') }}">
{% endblock %}
<title>