Use page description if there is one

This commit is contained in:
dzello 2018-05-15 19:05:35 -07:00
parent 7f1924882a
commit 5d9c1a94bb
2 changed files with 4 additions and 3 deletions

View file

@ -1,5 +1,6 @@
+++
title = "reveal-hugo features and usage"
title = "reveal-hugo"
description = "A Hugo theme for creating Reveal.js presentations"
outputs = ["Reveal"]
[reveal_hugo]
custom_theme = "themes/dzello.css"

View file

@ -5,7 +5,7 @@
<head>
<meta charset="utf-8">
<title>{{ or .Page.Title .Site.Title }}</title>
<meta name="description" content="{{ .Site.Params.Description }}">
<meta name="description" content="{{ or .Page.Params.Description .Site.Params.Description }}">
<meta name="author" content="{{ .Site.Author.name }}">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">