diff --git a/README.md b/README.md index 5c67ec7..37f3122 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,9 @@ Jekyll will assume that each post has been made on the first of January, 2001 (w You can configure almost any reveal.js setting using the `_config.yml` settings file in the root directory. -- `title`: The title of your presentation (displayed in the browser's title bar) +- `title`: The title of your presentation (displayed in the browser's title bar, optional and defaults to your repository’s name thanks to the `jekyll-github-metadata` plugin) +- `description`: A description for your presentation (displayed in the HTML head, optional and defaults to your repository’s description thanks to the `jekyll-github-metadata` plugin) +- `author`: Your name (displayed in the HTML head) - `reveal_theme`: The reveal.js-theme to use [default.css] - `reveal_transition`: The reveal.js-transition to use [default] - `reveal_theme_path`: The path to the reveal.js-theme (can be changed for custom themes) [reveal.js/css/theme/] diff --git a/_config.yml b/_config.yml index 9a4b807..f4b9785 100644 --- a/_config.yml +++ b/_config.yml @@ -1,5 +1,10 @@ # Your presentation title -title: Jekyll and Reveal.js + +# Your presentation description (optional) +description: A framework for easily creating beautiful presentations using HTML + +# Your name (optional) +author: jekyll-revealjs contributors # The Reveal theme reveal_theme: black.css diff --git a/_layouts/reveal.html b/_layouts/reveal.html index f07a95b..398ac6e 100644 --- a/_layouts/reveal.html +++ b/_layouts/reveal.html @@ -4,11 +4,11 @@ - {{ site.title }} + {% if site.title %}{{ site.title }}{% endif %} - - - + {% if site.description %}{% endif %} + {% if site.author %}{% endif %} + @@ -16,18 +16,18 @@ {% if site.extra_css %} - {% for css_file in site.extra_css %} - - {% endfor %} + {% for css_file in site.extra_css %} + + {% endfor %} {% endif %} - {% if site.highlight_style_sheet %} - {% assign highlight_style_sheet = site.highlight_style_sheet %} - {% else %} - {% capture highlight_style_sheet %}{{ site.reveal_path }}lib/css/zenburn.css {% endcapture %} - {% endif %} - + {% if site.highlight_style_sheet %} + {% assign highlight_style_sheet = site.highlight_style_sheet %} + {% else %} + {% capture highlight_style_sheet %}{{ site.reveal_path }}lib/css/zenburn.css {% endcapture %} + {% endif %} +