From 2f95961b9e01ad8011cb18fc5f126f4d05c22202 Mon Sep 17 00:00:00 2001 From: Jonah Aragon Date: Fri, 12 Sep 2025 17:34:32 -0500 Subject: [PATCH] feat: Add sitewide announcements bar (#3121) Signed-off-by: Niek de Wilde Signed-off-by: redoomed1 --- .devcontainer/devcontainer.json | 2 +- mkdocs.blog.yml | 4 +++- mkdocs.yml | 4 +++- theme/assets/stylesheets/extra.css | 2 ++ theme/main.html | 32 +++++++++++++++++++----------- 5 files changed, 29 insertions(+), 15 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index b6fab67e..7d298ce0 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -51,7 +51,7 @@ { "label": "Main", "type": "shell", - "command": "./run.sh --cmd=mkdocs --insiders --production", + "command": "./run.sh --cmd=mkdocs --insiders", "group": "test", "runOptions": { "runOn": "folderOpen" diff --git a/mkdocs.blog.yml b/mkdocs.blog.yml index 524840eb..e94acaa4 100644 --- a/mkdocs.blog.yml +++ b/mkdocs.blog.yml @@ -29,8 +29,10 @@ edit_uri_template: blob/main/blog/{path}?plain=1 extra: scope: / ghost: - data_host: https://www.privacyguides.org/.ghost/analytics/api/v1/page_hit + base_url: https://www.privacyguides.org + admin_url: https://ghost.privacyguides.org/ghost tb_site_uuid: 5f3bdb03-a1af-4844-85ca-cbc82c89eb9a + content_api_key: da9d77deb3e85ee73925167f3a privacy_guides: footer: intro: diff --git a/mkdocs.yml b/mkdocs.yml index 4fdf837b..50224a01 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -39,8 +39,10 @@ extra: offline: !ENV [BUILD_OFFLINE, false] deploy: !ENV DEPLOY_ID ghost: - data_host: https://www.privacyguides.org/.ghost/analytics/api/v1/page_hit + base_url: https://www.privacyguides.org + admin_url: https://ghost.privacyguides.org/ghost tb_site_uuid: 5f3bdb03-a1af-4844-85ca-cbc82c89eb9a + content_api_key: da9d77deb3e85ee73925167f3a privacy_guides: footer: intro: diff --git a/theme/assets/stylesheets/extra.css b/theme/assets/stylesheets/extra.css index c13a2d5e..56235bc8 100644 --- a/theme/assets/stylesheets/extra.css +++ b/theme/assets/stylesheets/extra.css @@ -46,6 +46,7 @@ --pg-green: #2e7e31; --pg-blue-gray: #546d78; --pg-viridian: #40826d; + --ghost-accent-color: #4f46e5; } :root, [data-md-color-scheme="slate"] { --md-default-bg-color: rgb(26, 26, 27); @@ -67,6 +68,7 @@ --pg-blue-gray: #9ab2bc; --pg-viridian: #40826d; --md-footer-bg-color--dark: var(--md-default-bg-color); + --ghost-accent-color: #4f46e5; } /* Better contrast link colors */ diff --git a/theme/main.html b/theme/main.html index 84b9353b..3e04be72 100644 --- a/theme/main.html +++ b/theme/main.html @@ -87,17 +87,34 @@ {% endif %} + {% if not config.extra.offline %} + + + {% endif %} + {% if config.extra.context == "production" %} - + {% if config.theme.language == "en" %} - {% endblock %}