From c57925b3f49de14e376c8c82858853df22d0bb83 Mon Sep 17 00:00:00 2001 From: Anton Livaja Date: Tue, 21 May 2024 14:06:52 -0400 Subject: [PATCH] feat: add conditional statements for og tags and additional tags --- _config.yml | 2 +- _includes/head.html | 120 ++++++++++++++++++++++++++++++-------------- 2 files changed, 84 insertions(+), 38 deletions(-) diff --git a/_config.yml b/_config.yml index aff023d..a7bbb9e 100644 --- a/_config.yml +++ b/_config.yml @@ -21,7 +21,7 @@ title: Distrust email: lance@distrust.co description: >- # this means to ignore newlines until "baseurl:" - Trust Nothing + Understand and mitigate security threats others won't see coming. baseurl: "" # the subpath of your site, e.g. /blog url: "https://distrust.co" # the base hostname & protocol for your site, e.g. http://example.com diff --git a/_includes/head.html b/_includes/head.html index 6d19d9a..7484611 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -6,49 +6,95 @@ {{ page.title }} - - - - - {% if page.robots %} - + + + {% if page.noindex %} + + {% endif %} {% if page.title %} + + + {% else %} + + + {% endif %} {% if page.summary %} + + {% else %} + + {% endif %} {% if page.url %} + + {% endif %} {% if page.date %} + + + {% endif %} {% if page.thumbnail %} + + {% endif %} {% if page.categories %} {% for category in page.categories + limit:1 %} + + {% endfor %} {% endif %} {% if page.tags %} {% for tag in page.tags %} + + {% endfor %} {% endif %} + + + + + + + {% if page.title %} + + {% else %} + {% endif %} - - + {% if page.url %} + + {% endif %} {% if page.summary %} + + {% else %} + + {% endif %} {% if page.header-img %} + + {% endif %} - - - - - - -