Skip to content

Commit 0f6ee45

Browse files
committed
feat: Add a newsletter subscription button (#3116)
1 parent 0f10d3b commit 0f6ee45

File tree

8 files changed

+254
-226
lines changed

8 files changed

+254
-226
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// For format details, see https://aka.ms/devcontainer.json.
22
{
33
"name": "Privacy Guides",
4-
"image": "ghcr.io/privacyguides/privacyguides.org:sha-55c050b",
4+
"image": "ghcr.io/privacyguides/privacyguides.org:sha-5648a3f",
55
// "build": {
66
// "dockerfile": "../Dockerfile",
77
// "context": ".."

.github/workflows/build.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -160,19 +160,6 @@ jobs:
160160
social-cache-${{ inputs.repo }}-${{ inputs.lang }}-
161161
social-cache-privacyguides/privacyguides.org-${{ inputs.lang }}-
162162
163-
- name: Restore Optimize Plugin Cache
164-
uses: actions/cache/restore@v4
165-
id: optimize_cache_restore
166-
if: inputs.cache
167-
with:
168-
key: optimize-cache-${{ inputs.repo }}-${{ hashfiles('.cache/plugin/optimize/manifest.json') }}
169-
path: |
170-
.cache/plugin/optimize
171-
restore-keys: |
172-
optimize-cache-${{ inputs.repo }}-
173-
optimize-cache-privacyguides/privacyguides.org-
174-
optimize-cache-
175-
176163
- name: Install Python Dependencies
177164
if: inputs.privileged
178165
run: |
@@ -242,16 +229,6 @@ jobs:
242229
.cache/plugin/social/manifest.json
243230
.cache/plugin/social/assets
244231
245-
- name: Find Optimize Plugin Cache
246-
uses: actions/cache/restore@v4
247-
if: steps.optimize_cache_restore.outputs.cache-hit != 'true' && inputs.cache
248-
id: optimize_cache_test
249-
with:
250-
key: optimize-cache-privacyguides/privacyguides.org-${{ hashfiles('.cache/plugin/optimize/manifest.json') }}
251-
lookup-only: true
252-
path: |
253-
.cache/plugin/optimize
254-
255232
- name: Save Privacy Plugin Cache
256233
uses: actions/cache/save@v4
257234
if: steps.privacy_cache_test.outputs.cache-hit != 'true' && inputs.cache
@@ -268,13 +245,6 @@ jobs:
268245
.cache/plugin/social/manifest.json
269246
.cache/plugin/social/assets
270247
271-
- name: Save Optimize Plugin Cache
272-
uses: actions/cache/save@v4
273-
if: steps.optimize_cache_test.outputs.cache-hit != 'true' && inputs.cache
274-
with:
275-
key: optimize-cache-${{ inputs.repo }}-${{ hashfiles('.cache/plugin/optimize/manifest.json') }}
276-
path: .cache/plugin/optimize
277-
278248
- name: Upload Site
279249
uses: actions/upload-artifact@v4
280250
with:

Pipfile.lock

Lines changed: 239 additions & 190 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mkdocs.blog.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,6 @@ plugins:
164164
plugins:
165165
macros: {}
166166
meta: {}
167-
optimize:
168-
enabled: !ENV [OPTIMIZE, PRODUCTION, NETLIFY, false]
169167
typeset: {}
170168
social:
171169
cards: !ENV [CARDS, true]

mkdocs.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,6 @@ plugins:
317317
- index.md
318318
fallback_to_build_date: true
319319
enable_creation_date: true
320-
optimize:
321-
enabled: !ENV [OPTIMIZE, PRODUCTION, NETLIFY, false]
322320
typeset: {}
323321
social:
324322
cards: !ENV [CARDS, true]

modules/mkdocs-material

theme/assets/stylesheets/extra.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,3 +604,7 @@ path[d="M20.71 7.04c.39-.39.39-1.04 0-1.41l-2.34-2.34c-.37-.39-1.02-.39-1.41 0l-
604604
opacity: 1;
605605
color: var(--md-default-fg-color--light);
606606
}
607+
608+
#ghost-portal-root, #ghost-comments-root {
609+
color-scheme: light;
610+
}

theme/main.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,13 @@
9696
{{ page.meta.schema|tojson }}
9797
</script>
9898
{% endif %}
99+
<script defer src="https://cdn.jsdelivr.net/ghost/[email protected]/umd/portal.min.js"
100+
data-i18n="true"
101+
data-ghost="https://www.privacyguides.org/"
102+
data-key="da9d77deb3e85ee73925167f3a"
103+
data-api="https://ghost.privacyguides.org/ghost/api/content/"
104+
data-locale="{{ config.theme.language }}"
105+
data-members-signin-otc="false"
106+
crossorigin="anonymous">
107+
</script>
99108
{% endblock %}

0 commit comments

Comments
 (0)