From 23d4dac3d3bd6ffa756254ec41efd3b6c2a65a39 Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Sat, 9 Sep 2017 14:14:47 -0400 Subject: Add page defaults --- _config.yml | 8 ++++++++ _layouts/master.html | 20 -------------------- 2 files changed, 8 insertions(+), 20 deletions(-) diff --git a/_config.yml b/_config.yml index 305ad21..751ae24 100644 --- a/_config.yml +++ b/_config.yml @@ -22,3 +22,11 @@ excerpt_separator: twitter: site: "@bburwell" creator: "@bburwell" + +# Page defaults +defaults: + - scope: + path: "" # Applies to all files + values: + description: "I make things." + image: "https://www.benburwell.com/assets/images/icons/benburwell.png" diff --git a/_layouts/master.html b/_layouts/master.html index bb78416..53c83f0 100644 --- a/_layouts/master.html +++ b/_layouts/master.html @@ -18,24 +18,12 @@ - {% if page.description %} - {% else %} - - {% endif %} - {% if page.description %} - {% else %} - - {% endif %} - {% if page.image %} - {% else %} - - {% endif %} @@ -43,16 +31,8 @@ - {% if page.description %} - {% else %} - - {% endif %} - {% if page.image %} - {% else %} - - {% endif %} {% if page.chrome-webstore-item %} -- cgit v1.2.3