From 9bd4ead39ef11a24dbc616e2b69ba278ec2d5568 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Sun, 24 Dec 2017 22:56:54 +0100 Subject: [PATCH] Added dynamic notification at top of site * closes #4 Signed-off-by: Jim Martens --- _data/notification.yml | 5 +++++ _includes/header.html | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 _data/notification.yml diff --git a/_data/notification.yml b/_data/notification.yml new file mode 100644 index 0000000..56eb5d3 --- /dev/null +++ b/_data/notification.yml @@ -0,0 +1,5 @@ +show: false +type: success +text: > + Welcome on my relaunched website. Please see info on + About page. \ No newline at end of file diff --git a/_includes/header.html b/_includes/header.html index 230bc64..040a9ab 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -61,9 +61,10 @@ {% endfor %} +{% if site.data.notification.show %}
- {% comment %}notification area {% endcomment %} - +{% endif %}