diff options
author | Valentin Popov <valentin@popov.link> | 2023-08-30 13:49:12 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2023-08-30 13:49:12 +0300 |
commit | a593ef4506fa9dcc6926bb19e8cbffbed001d7ae (patch) | |
tree | 8b4e1785310ea49383a6718463b4712748872130 /templates | |
parent | 7363735ad8edd6147c16df776a366eb6d6559e78 (diff) | |
download | popov.link-a593ef4506fa9dcc6926bb19e8cbffbed001d7ae.tar.xz popov.link-a593ef4506fa9dcc6926bb19e8cbffbed001d7ae.zip |
Enhanced and added website description
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 4 | ||||
-rw-r--r-- | templates/includes/meta.html | 13 |
2 files changed, 14 insertions, 3 deletions
diff --git a/templates/base.html b/templates/base.html index a9edbde..50dcc1a 100644 --- a/templates/base.html +++ b/templates/base.html @@ -3,9 +3,7 @@ <head> <!-- Meta tags --> - <meta content="IE=edge" http-equiv="X-UA-Compatible" /> - <meta content="width=device-width, initial-scale=1" name="viewport" /> - <meta content="text/html; charset=utf-8" http-equiv="content-type" /> + {% include 'includes/meta.html' %} <!-- RSS --> {% block rss %} diff --git a/templates/includes/meta.html b/templates/includes/meta.html new file mode 100644 index 0000000..8db8747 --- /dev/null +++ b/templates/includes/meta.html @@ -0,0 +1,13 @@ +<meta content="IE=edge" http-equiv="X-UA-Compatible" /> +<meta content="width=device-width, initial-scale=1" name="viewport" /> +<meta content="text/html; charset=utf-8" http-equiv="content-type" /> + +{% if page.description %} +{% set description = page.description %} +{% endif %} + +{% if section.description %} +{% set description = section.description %} +{% endif %} + +<meta name="description" content="{{ description | default(value=config.description) | trim | safe }}" />
\ No newline at end of file |