From dae632b2937f0b5957b68200ebd56e9401518fce Mon Sep 17 00:00:00 2001 From: carpetscheme Date: Sat, 18 Apr 2020 16:49:03 +0200 Subject: [PATCH] whitespace, and author name meta-data --- README.md | 13 ++++++++++++- config.toml | 1 + templates/index.html | 7 +++---- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a22c531..1d779d6 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ Demo: [quirky-perlman-34d0da.netlify.com](https://quirky-perlman-34d0da.netlify. - [Title](#title) - [Sass](#Sass) - [Footer menu](#footer-menu) + - [Author](#author) - [Netlify](#netlify) - [Original](#original) - [License](#license) @@ -83,9 +84,19 @@ Create pages such as `$BASE_URL/about` by placing them in a subfolder of the con path = "about" ``` +### Author + +To add author name to the head meta-data, set an `author` field in `extra`: + +```toml +[extra] + +author = "Grant Green" +``` + ### Netlify -Deployed on netlify? Let people know in the footer by setting `netlify` in `extra` as `true`. +Deployed on netlify? Add a link in the footer by setting `netlify` in `extra` as `true`. ```toml [extra] diff --git a/config.toml b/config.toml index 3566a15..0cd1470 100644 --- a/config.toml +++ b/config.toml @@ -10,6 +10,7 @@ highlight_theme = "gruvbox-light" [extra] +author = "El Carpet" netlify = true footer_links = [ diff --git a/templates/index.html b/templates/index.html index 39befe0..2dd51f3 100755 --- a/templates/index.html +++ b/templates/index.html @@ -9,12 +9,11 @@ {% block title %}{{ config.title }} · {{ config.description }}{% endblock title %} - - + {% if config.extra.author %}{% endif %} - {% set data = load_data(path="public/style.css", format="plain") %} + {% set data = load_data(path="public/style.css", format="plain") -%} @@ -54,7 +53,7 @@ Built with Zola - {% if config.extra.netlify %} & hosted on Netlify{% endif %} + {%- if config.extra.netlify %} & hosted on Netlify{% endif -%} .
Maintained with ♥ for the web.