From bd67b3f82e7bfb4aa2d8f7717273b06d1b62e412 Mon Sep 17 00:00:00 2001 From: codecalm Date: Sat, 17 May 2025 14:16:02 +0200 Subject: [PATCH] feat: Add social media links and GitHub edit link in documentation layout --- shared/data/site.json | 5 +++-- shared/e11ty/filters.mjs | 2 ++ shared/includes/cards/sponsor.html | 2 +- shared/includes/docs/navbar.html | 2 +- shared/layouts/docs/default.html | 24 ++++++++++++++++++++++++ 5 files changed, 31 insertions(+), 4 deletions(-) diff --git a/shared/data/site.json b/shared/data/site.json index 4f58bb0c9..7743586df 100644 --- a/shared/data/site.json +++ b/shared/data/site.json @@ -7,10 +7,11 @@ "homepage": "https://tabler.io", "githubUrl": "https://github.com/tabler/tabler", "githubSponsorsUrl": "https://github.com/sponsors/codecalm", + "xUrl": "https://x.com/tabler_io", + "linkedinUrl": "https://www.linkedin.com/company/tabler-io", "changelogUrl": "https://github.com/tabler/tabler/releases", - "sponsorUrl": "https://github.com/sponsors/codecalm", "previewUrl": "https://preview.tabler.io", - "docsUrl": "https://tabler.io/docs", + "docsUrl": "https://docs.tabler.io", "mapboxKey": "pk.eyJ1IjoidGFibGVyIiwiYSI6ImNscHh3dnhndjB2M3QycW85bGd0NXRmZ3YifQ.9LfHPsNoEXQH-xzz-81Ffw", "googleMapsKey": "AIzaSyAr5mRB4U1KRkVznIrDWEvZjroYcD202DI", "googleMapsDevKey": "AIzaSyCL-BY8-sq12m0S9H-S_yMqDmcun3A9znw", diff --git a/shared/e11ty/filters.mjs b/shared/e11ty/filters.mjs index d9a74806b..6f9c71545 100644 --- a/shared/e11ty/filters.mjs +++ b/shared/e11ty/filters.mjs @@ -269,4 +269,6 @@ export function appFilters(eleventyConfig) { return ''; }) + + eleventyConfig.addShortcode("year", () => `${new Date().getFullYear()}`); } diff --git a/shared/includes/cards/sponsor.html b/shared/includes/cards/sponsor.html index 299e3aa1a..0a2f4e979 100644 --- a/shared/includes/cards/sponsor.html +++ b/shared/includes/cards/sponsor.html @@ -1,4 +1,4 @@ - + diff --git a/shared/includes/docs/navbar.html b/shared/includes/docs/navbar.html index 2dbf9f150..a690bba84 100644 --- a/shared/includes/docs/navbar.html +++ b/shared/includes/docs/navbar.html @@ -7,7 +7,7 @@ {% include "docs/logo.html" %}
- v{{ package.version }} + v{{ package.version }}
diff --git a/shared/layouts/docs/default.html b/shared/layouts/docs/default.html index 240648c7f..20efb8a47 100644 --- a/shared/layouts/docs/default.html +++ b/shared/layouts/docs/default.html @@ -153,6 +153,30 @@ {% endif %} + +
+ {% include "ui/icon.html" icon="edit" class="icon-inline" %} Edit this page on GitHub +
+ +
+ +