diff options
author | Tobias Schmidl <tobias@schmidl.cc> | 2017-11-13 10:03:33 +0100 |
---|---|---|
committer | Tobias Schmidl <tobias.schmidl@corpuls.com> | 2018-05-11 11:31:19 +0200 |
commit | 9d033a3ea6efd51af3926b02394596652ed97c97 (patch) | |
tree | 14b26af2991f21df8da88e4d85bebd4377707750 /Just-Read/templates/base.html | |
parent | de0a6de5263937e6b4e59c3d079dff2450916880 (diff) | |
download | pelican-themes-9d033a3ea6efd51af3926b02394596652ed97c97.tar.gz |
fixup! Just Read: Extended metadata block for non-article pages
Diffstat (limited to 'Just-Read/templates/base.html')
-rw-r--r-- | Just-Read/templates/base.html | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/Just-Read/templates/base.html b/Just-Read/templates/base.html index 715b8c4..8b980b5 100644 --- a/Just-Read/templates/base.html +++ b/Just-Read/templates/base.html @@ -31,19 +31,19 @@ <meta property="og:published_time" content="{{article.date}}" /> <meta property="og:title" content="{{article.title}}" /> <meta property="og:url" content="{{SITEURL}}/{{ article.url }}" /> - {% if article.featured_image %} + {% if article.featured_image %} <meta property="og:image" content="{{ article.featured_image }}" /> - {% endif %} - {%if DESCRIPTION %} + {% endif %} + {%if DESCRIPTION %} <meta property="og:description" content="{{DESCRIPTION}} " /> <meta name="description" content="{{DESCRIPTION}}" /> - {%else %} + {%else %} <meta property="og:description" content="{{article.summary|striptags}}" /> <meta name="description" content="{{article.summary|striptags}}" /> - {% endif %} - {%if FACEBOOK_PROFILE_URL %} + {% endif %} + {%if FACEBOOK_PROFILE_URL %} <meta property="article:author" content="{{FACEBOOK_PROFILE_URL}}" /> - {% endif %} + {% endif %} {% elif page %} <meta name="twitter:title" content="{{page.title}}" /> <meta name="date" content="{{page.date}}" /> @@ -52,28 +52,28 @@ <meta property="og:published_time" content="{{page.date}}" /> <meta property="og:title" content="{{page.title}}" /> <meta property="og:url" content="{{SITEURL}}/{{ page.url }}" /> - {% if page.featured_image %} + {% if page.featured_image %} <meta property="og:image" content="{{ page.featured_image }}" /> - {% endif %} - {%if DESCRIPTION %} + {% endif %} + {%if DESCRIPTION %} <meta property="og:description" content="{{DESCRIPTION}} " /> <meta name="description" content="{{DESCRIPTION}}" /> - {%else %} + {%else %} <meta property="og:description" content="{{page.summary|striptags}}" /> <meta name="description" content="{{page.summary|striptags}}" /> - {% endif %} + {% endif %} {% else %} <meta name="twitter:title" content="{{SITENAME}}" /> <meta property="og:type" content="website" /> - {% if DEFAULT_LANG %} + {% if DEFAULT_LANG %} <meta property="og:locale" content="{{DEFAULT_LANG}}" /> - {% endif %} + {% endif %} <meta property="og:title" content="{{SITENAME}}" /> <meta property="og:url" content="{{SITEURL}}/{{ output_file }}" /> - {%if DESCRIPTION %} + {%if DESCRIPTION %} <meta property="og:description" content="{{DESCRIPTION}} " /> <meta name="description" content="{{DESCRIPTION}}" /> - {% endif %} + {% endif %} {% endif %} <meta name="HandheldFriendly" content="True" /> <meta name="MobileOptimized" content="320" /> |