diff options
author | Melody Horn <melody@boringcactus.com> | 2018-08-31 16:00:51 -0500 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2018-08-31 16:00:51 -0500 |
commit | adad779c0af9e9db9331a5b7b4783f7f28296795 (patch) | |
tree | ad4dcff60522580beca4af9d1c9f875854bfe908 | |
parent | c97f4e9d9d11efc777d2a15306d98e308c43cda5 (diff) | |
download | boringcactus.com-adad779c0af9e9db9331a5b7b4783f7f28296795.tar.gz boringcactus.com-adad779c0af9e9db9331a5b7b4783f7f28296795.zip |
Add Open Graph & Twitter descriptions
This one's already an existing standard what the fuck
-rw-r--r-- | _layouts/default.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/_layouts/default.html b/_layouts/default.html index 485e975..b9ebf24 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -7,8 +7,10 @@ <meta name="twitter:card" content="summary" /> <meta name="twitter:site" content="@boring_cactus" /> <meta name="twitter:title" content="{{ page.title }}" /> + <meta name="twitter:description" content="{% if page.description != nil %}{{ page.description }}{% else %}{{ page.excerpt | strip_html | strip }}{% endif %}" /> <meta property="og:url" content="{{ page.url | absolute_url }}" /> <meta property="og:title" content="{{ page.title }}" /> + <meta property="og:description" content="{% if page.description != nil %}{{ page.description }}{% else %}{{ page.excerpt | strip_html | strip }}{% endif %}" /> {% if page.url == "/" %} <meta property="og:type" content="website" /> <title>{{ page.title }}</title> |