diff options
author | dmlunar <root@lunar.sh> | 2025-03-14 13:56:27 +0200 |
---|---|---|
committer | dmlunar <root@lunar.sh> | 2025-08-08 16:16:49 +0200 |
commit | 994b347557ccf03af0cd910d8ba50d127b7a61dd (patch) | |
tree | 9ece6c3e1b6bf5477737df137df0536b0c8e9559 /_includes/meta.html | |
download | journal.lunar.sh-994b347557ccf03af0cd910d8ba50d127b7a61dd.tar.gz journal.lunar.sh-994b347557ccf03af0cd910d8ba50d127b7a61dd.zip |
initial commit.
Diffstat (limited to '_includes/meta.html')
-rw-r--r-- | _includes/meta.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/_includes/meta.html b/_includes/meta.html new file mode 100644 index 0000000..9cf1901 --- /dev/null +++ b/_includes/meta.html @@ -0,0 +1,16 @@ + <meta http-equiv='X-UA-Compatible' content='IE=edge'> + <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0'> + + {% if page.excerpt %} + <meta name="description" content="{{ page.excerpt| strip_html }}" /> + <meta property="og:description" content="{{ page.excerpt| strip_html }}" /> + {% else %} + <meta name="description" content="{{ site.meta }}"> + <meta property="og:description" content="{{ site.meta }}" /> + {% endif %} + <meta name="author" content="{{ site.name }}" /> + + {% if page.title %} + <meta property="og:title" content="{{ page.title }}" /> + <meta property="twitter:title" content="{{ page.title }}" /> + {% endif %} |