Mercurial > web-octave
changeset 185:4be8521a3f4f
* _includes/head.html: Shorten Liquid markup.
author | Kai T. Ohlhus <k.ohlhus@gmail.com> |
---|---|
date | Wed, 08 Jul 2020 13:11:32 +0900 |
parents | 171c46307031 |
children | 3af099b61f60 |
files | _includes/head.html |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/_includes/head.html Wed Jul 08 13:11:04 2020 +0900 +++ b/_includes/head.html Wed Jul 08 13:11:32 2020 +0900 @@ -3,10 +3,10 @@ <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> - <title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title> - <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | lstrip | rstrip | truncate: 140 }}{% else %}{{ site.description | strip_html | lstrip | rstrip | truncate: 140 }}{% endif %}"> - <meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}"> - <meta property="og:description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | lstrip | rstrip | truncate: 140 }}{% else %}{{ site.description | strip_html | lstrip | rstrip | truncate: 140 }}{% endif %}"> + <title>{{ page.title | default: site.title }}</title> + <meta name="description" content="{{ page.excerpt | default: site.description | strip_html | lstrip | rstrip | truncate: 140 }}"> + <meta property="og:title" content="{{ page.title | default: site.title }}"> + <meta property="og:description" content="{{ page.excerpt | default: site.description | strip_html | lstrip | rstrip | truncate: 140 }}"> <meta property="og:image" content="{{ "/img/octave-logo.png" | absolute_url }}"> <meta property="og:image:alt" content="GNU Octave"> <meta property="og:type" content="website">