From 93f32085300444b6dacec18f7871670bf6b696af Mon Sep 17 00:00:00 2001 From: mrgarris0n Date: Wed, 12 Jun 2024 16:34:13 +0200 Subject: [PATCH] Contribution widget Signed-off-by: mrgarris0n --- Gemfile | 1 + _config.yml | 3 ++ _includes/page__contribution.html | 23 +++++++++++++++ _includes/sidebar.html | 2 ++ .../minimal-mistakes/_sidebar.scss | 29 +++++++++++++++++++ 5 files changed, 58 insertions(+) create mode 100644 _includes/page__contribution.html diff --git a/Gemfile b/Gemfile index f52931f1..755b5883 100644 --- a/Gemfile +++ b/Gemfile @@ -108,5 +108,6 @@ group :jekyll_plugins do # https://github.com/HofiOne/minimal-mistakes # gem "jekyll-include-cache" + gem "jekyll-github-metadata" # gem "github-pages" end diff --git a/_config.yml b/_config.yml index f94916f5..085054ec 100644 --- a/_config.yml +++ b/_config.yml @@ -24,6 +24,7 @@ plugins: - jekyll-sitemap # Jekyll plugin to silently generate a sitemaps.org compliant sitemap for your Jekyll site. - jekyll-gist # Liquid tag for displaying GitHub Gists in Jekyll sites. - jekyll-include-cache # Liquid tag that caches Liquid includes. + - jekyll-github-metadata # Whitelist plugins under safe mode. whitelist: @@ -256,3 +257,5 @@ footer: product: name: 'syslog-ng Open Source Edition' short_name: 'syslog-ng OSE' + +repository: syslog-ng/syslog-ng.github.io diff --git a/_includes/page__contribution.html b/_includes/page__contribution.html new file mode 100644 index 00000000..fd8b1735 --- /dev/null +++ b/_includes/page__contribution.html @@ -0,0 +1,23 @@ +{% if site.github.repository_url %} + +{% endif %} diff --git a/_includes/sidebar.html b/_includes/sidebar.html index dbdd9950..10cf131d 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -4,6 +4,8 @@ {% assign sidebarItemCount = page.sidebar.nav | size %} {% endif %} + {% include page__contribution.html %} +