diff options
| author | Clayton Craft | 2022-04-17 15:34:03 -0700 |
|---|---|---|
| committer | Jieiku | 2022-05-30 22:28:15 -0700 |
| commit | a5a2e0ae482a5168781b4abf952885531bdc93cc (patch) | |
| tree | 007eda771da8c46631414515d0e49065656276d6 /templates/404.html | |
| parent | 04b9162a2698dc2bbd0bfecc7cb9cebcaeaf30e8 (diff) | |
| download | abridge-a5a2e0ae482a5168781b4abf952885531bdc93cc.tar.gz abridge-a5a2e0ae482a5168781b4abf952885531bdc93cc.tar.bz2 abridge-a5a2e0ae482a5168781b4abf952885531bdc93cc.zip | |
make generating seo-related tags optional
Diffstat (limited to 'templates/404.html')
| -rw-r--r-- | templates/404.html | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/templates/404.html b/templates/404.html index 22e8791..23c7168 100644 --- a/templates/404.html +++ b/templates/404.html @@ -2,10 +2,13 @@ {# Title #} {% block title %}<title>Sorry! Page not found.</title>{% endblock title %} -{% block current_url %} -<meta property="og:url" content="{{ get_url(path='/') }}"> -<meta name="twitter:url" content="{{ get_url(path='/') }}"> -{% endblock current_url %} + +{% if config.extra.seo | default(value=true) %} + {% block current_url %} + <meta property="og:url" content="{{ get_url(path='/') }}"> + <meta name="twitter:url" content="{{ get_url(path='/') }}"> + {% endblock current_url %} +{% endif %} {# Page heading #} {% block content %}<div> |
