From b0ef38449aed5d51137e2b7a1bd60335a7732238 Mon Sep 17 00:00:00 2001 From: chrisrhymes Date: Sun, 1 Sep 2024 19:58:56 +0100 Subject: [PATCH 1/2] Add social footer icons --- _config.yml | 9 +++++ _includes/follow.html | 52 ++++++++++++++++++++++++++++ _includes/footer.html | 2 ++ _includes/head.html | 8 ++++- bulma-clean-theme.gemspec | 2 +- changelog.txt | 6 +++- docs/navigation/footer-navigation.md | 16 ++++++++- 7 files changed, 91 insertions(+), 4 deletions(-) create mode 100644 _includes/follow.html diff --git a/_config.yml b/_config.yml index 9d592bb98..b8eb494a2 100644 --- a/_config.yml +++ b/_config.yml @@ -84,3 +84,12 @@ collections: layout: product image: https://via.placeholder.com/800x600 show_sidebar: false + +social: + facebook: https://www.facebook.com/ + instagram: https://www.instagram.com/ + threads: https://www.threads.net/ + tiktok: https://www.tiktok.com/ + x: https://www.x.com/ + youtube: https://www.youtube.com/ + \ No newline at end of file diff --git a/_includes/follow.html b/_includes/follow.html new file mode 100644 index 000000000..98f6e8bdb --- /dev/null +++ b/_includes/follow.html @@ -0,0 +1,52 @@ +{% if site.social %} +
+ {% if site.social.facebook %} + + + + Facebook + + + {% endif %} + {% if site.social.instagram %} + + + + Instagram + + + {% endif %} + {% if site.social.threads %} + + + + Threads + + + {% endif %} + {% if site.social.tiktok %} + + + + TikTok + + + {% endif %} + {% if site.social.x %} + + + + X/Twitter + + + {% endif %} + {% if site.social.youtube %} + + + + YouTube + + + {% endif %} +
+{% endif %} diff --git a/_includes/footer.html b/_includes/footer.html index b97f91fa7..81b0861ca 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -12,6 +12,8 @@ {% endif %} + {% include follow.html %} +

Theme built by C.S. Rhymes

diff --git a/_includes/head.html b/_includes/head.html index 5b89ecb11..f4c226f1b 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -16,7 +16,13 @@ - + {% unless site.hide_share_buttons %} {% endunless %} diff --git a/bulma-clean-theme.gemspec b/bulma-clean-theme.gemspec index 013598248..aaa58535f 100644 --- a/bulma-clean-theme.gemspec +++ b/bulma-clean-theme.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |spec| spec.name = "bulma-clean-theme" - spec.version = "1.0.4" + spec.version = "1.1.0" spec.authors = ["chrisrhymes"] spec.email = ["csrhymes@gmail.com"] diff --git a/changelog.txt b/changelog.txt index 00a2ff1c0..90ff7d811 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,8 +1,12 @@ +# 1.1.0 +* Update FontAwesome to v6.6 +* Add social links to the footer + # 1.0.4 * Update Bulma to 1.0.2 * Add TikTok video include * Allow customising product collection name -* Increse cookie expiry time in cookie banner +* Increase cookie expiry time in cookie banner # 1.0.3 * Update Bulma to 1.0.1 diff --git a/docs/navigation/footer-navigation.md b/docs/navigation/footer-navigation.md index 6f2c467bc..9814a02d0 100644 --- a/docs/navigation/footer-navigation.md +++ b/docs/navigation/footer-navigation.md @@ -30,4 +30,18 @@ footer_menu: example_footer_menu ## Hiding the footer -If you would like to hide the footer on a particular page then set `hide_footer: true` in the page's front matter. \ No newline at end of file +If you would like to hide the footer on a particular page then set `hide_footer: true` in the page's front matter. + +## Footer social links + +You can add social links to your footer by setting the links to your social profiles in the `_config.yml` file. + +```yaml +social: + facebook: https://www.facebook.com/ + instagram: https://www.instagram.com/ + threads: https://www.threads.net/ + tiktok: https://www.tiktok.com/ + x: https://www.x.com/ + youtube: https://www.youtube.com/ +``` \ No newline at end of file From 6fb7f53d8b74ecdf8d092e42f4854b68f5402418 Mon Sep 17 00:00:00 2001 From: chrisrhymes Date: Sun, 1 Sep 2024 20:03:01 +0100 Subject: [PATCH 2/2] Add version notes --- docs/navigation/footer-navigation.md | 2 ++ docs/products/category-page.md | 2 ++ docs/products/product-pages.md | 2 ++ 3 files changed, 6 insertions(+) diff --git a/docs/navigation/footer-navigation.md b/docs/navigation/footer-navigation.md index 9814a02d0..738b50014 100644 --- a/docs/navigation/footer-navigation.md +++ b/docs/navigation/footer-navigation.md @@ -34,6 +34,8 @@ If you would like to hide the footer on a particular page then set `hide_footer: ## Footer social links +**Added in v1.1.0** + You can add social links to your footer by setting the links to your social profiles in the `_config.yml` file. ```yaml diff --git a/docs/products/category-page.md b/docs/products/category-page.md index f8cf6cedf..30ab6252b 100644 --- a/docs/products/category-page.md +++ b/docs/products/category-page.md @@ -25,6 +25,8 @@ sort: title ## Customising the collection +**Added in v1.0.4** + To use a different collection than `products`, set the collection name in the category page's front matter. The below example uses a collection called `books`. diff --git a/docs/products/product-pages.md b/docs/products/product-pages.md index db3d850f3..89a237b58 100644 --- a/docs/products/product-pages.md +++ b/docs/products/product-pages.md @@ -13,6 +13,8 @@ The default collection name for products is `products`, so create a `_products` ## Custom Collection Directory +**Added in v1.0.4** + You can override the default and create a folder with your own collection name. For example, using a collection of `books` would require you to create a folder called `_books`. ## Product Pages