From a5046ec816f2f9ba924b59b026f79b25e6efe61f Mon Sep 17 00:00:00 2001 From: Joseph Hale Date: Thu, 23 Nov 2023 09:55:06 -0700 Subject: [PATCH] feat: Add toggle for chirpy attribution visibility --- _config.yml | 3 +++ _includes/footer.html | 2 ++ 2 files changed, 5 insertions(+) diff --git a/_config.yml b/_config.yml index 4ab1726..b35fe7e 100644 --- a/_config.yml +++ b/_config.yml @@ -118,6 +118,9 @@ paginate: 10 # The base URL of your site baseurl: "" +footer: + show_chirpy_attribution: true # The attribution in the site footer. + # ------------ The following options are not recommended to be modified ------------------ kramdown: diff --git a/_includes/footer.html b/_includes/footer.html index a992355..44de67c 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -22,6 +22,7 @@ {% endif %}

+ {% if site.footer.show_chirpy_attribution %}

{%- capture _platform -%} Jekyll @@ -33,4 +34,5 @@ {{ site.data.locales[include.lang].meta | replace: ':PLATFORM', _platform | replace: ':THEME', _theme }}

+ {% endif %} -- 2.51.2