From a865dcbb69b0541ccdab941eede8c3005dfed9c7 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 8 May 2026 17:39:07 +0200 Subject: feat: add contribution graph widget Sidebar (/is pages, cellSize=8) and footer (sitewide, cellSize=6). Fetches /contributions.json, split-cell linear-gradient rendering (gitolite=green/accent2, github=purple/accent), opacity intensity levels, month labels, tooltip, i18n IT/EN. WCAG 2.1 AA compliant. Co-Authored-By: Claude Sonnet 4.6 --- layouts/partials/contribution-graph.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 layouts/partials/contribution-graph.html (limited to 'layouts/partials/contribution-graph.html') diff --git a/layouts/partials/contribution-graph.html b/layouts/partials/contribution-graph.html new file mode 100644 index 0000000..5dde2b4 --- /dev/null +++ b/layouts/partials/contribution-graph.html @@ -0,0 +1,19 @@ +{{- $cellSize := .cellSize | default 8 -}} +{{- $lang := .page.Lang | default "en" -}} +{{- $label := i18n "contrib_widget_label" -}} +{{- $heading := i18n "contrib_heading" -}} + + + +{{- $js := resources.Get "js/contribution-graph.js" | minify -}} + -- cgit v1.2.3