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"] outputs = ["Reveal"]
[reveal_hugo] [reveal_hugo]
custom_theme = "themes/dzello.css" custom_theme = "themes/dzello.css"

View File

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