From ae6d55942ea365c32c380f316179added1a4e92c Mon Sep 17 00:00:00 2001 From: Reboot-Codes Date: Tue, 22 Oct 2024 22:21:14 -0700 Subject: [PATCH] Add open graph support! --- src/_data/generalData.json | 1 + src/_includes/layouts/base.njk | 14 ++++++++------ src/_includes/layouts/project.njk | 2 +- src/index.njk | 2 +- src/posts.njk | 2 +- src/projects.njk | 2 +- src/styles/home.scss | 5 +++++ src/tags.njk | 2 +- 8 files changed, 19 insertions(+), 11 deletions(-) diff --git a/src/_data/generalData.json b/src/_data/generalData.json index a32f8ce..8e63beb 100644 --- a/src/_data/generalData.json +++ b/src/_data/generalData.json @@ -1,4 +1,5 @@ { + "baseUrl": "https://www.reboot-codes.com", "site": { "title": "Reboot/Fitz" }, diff --git a/src/_includes/layouts/base.njk b/src/_includes/layouts/base.njk index 535180c..3b86f72 100644 --- a/src/_includes/layouts/base.njk +++ b/src/_includes/layouts/base.njk @@ -6,16 +6,18 @@ useContainer: true - - + + {% include "copywriting/title.njk" %} - - - {% if (opengraph) %} - {% endif %} + + + + {% if openGraph.imgUrl %}{% endif %} + + {% include "components/navigation.njk" %} diff --git a/src/_includes/layouts/project.njk b/src/_includes/layouts/project.njk index 427d28b..d514556 100644 --- a/src/_includes/layouts/project.njk +++ b/src/_includes/layouts/project.njk @@ -30,7 +30,7 @@ useContainer: true {%- for item in pagination.items %} {% if item.data.published != false %} -

{{ item.data.title }}

+

{{ item.data.title }}

on {{ item.page.date | formatDate }}, takes {{ item.content | timeToRead }} to read.

{% endif %} diff --git a/src/index.njk b/src/index.njk index 09a8b74..3a86506 100644 --- a/src/index.njk +++ b/src/index.njk @@ -17,7 +17,7 @@ pagination:
{%- for item in pagination.items %} -

{{ item.data.title }}

+

{{ item.data.title }}

{{ item.data.description }}

{% endfor -%} diff --git a/src/posts.njk b/src/posts.njk index fd2d411..a030cce 100644 --- a/src/posts.njk +++ b/src/posts.njk @@ -31,7 +31,7 @@ pagination:
{%- for item in pagination.items %} -

{{ item.data.title }}

+

{{ item.data.title }}

on {{ item.page.date | formatDate }}, takes {{ item.content | timeToRead }} to read.

{% endfor -%} diff --git a/src/projects.njk b/src/projects.njk index da61f2d..7a74eb9 100644 --- a/src/projects.njk +++ b/src/projects.njk @@ -13,7 +13,7 @@ pagination:
{%- for item in pagination.items %} -

{{ item.data.title }}

+

{{ item.data.title }}

{{ item.data.description }}

{% endfor -%} diff --git a/src/styles/home.scss b/src/styles/home.scss index 2b2ffdf..51293e1 100644 --- a/src/styles/home.scss +++ b/src/styles/home.scss @@ -59,3 +59,8 @@ flex-direction: row; } } + +.post-title, .home-section-card-title { + font-weight: bold; + font-size: 1.15em; +} diff --git a/src/tags.njk b/src/tags.njk index 390428d..6bdb596 100644 --- a/src/tags.njk +++ b/src/tags.njk @@ -20,7 +20,7 @@ isBlog: true
{% for post in (collections[ tag ] | reverse) %} -

{{ post.data.title }}

+

{{ post.data.title }}

on {{ post.page.date | formatDate }}

{% endfor %} -- 2.51.2