Skip to content

Commit b1211cb

Browse files
committed
Merge branch 'develop'
2 parents c0c0aa7 + ca2187b commit b1211cb

File tree

22 files changed

+63
-148
lines changed

22 files changed

+63
-148
lines changed

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup Hugo
1616
uses: peaceiris/actions-hugo@v3
1717
with:
18-
hugo-version: '0.133.0'
18+
hugo-version: '0.147.8'
1919
- uses: actions/setup-node@v4
2020
with:
2121
node-version: 22

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "themes/hugo-admonitions"]
2+
path = themes/hugo-admonitions
3+
url = https://github.com/KKKZOZ/hugo-admonitions.git

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ Using WebP (for smaller images) or AVIF (for >80 kiB due to larger overhead) may
2727
* Example (lossless): `avifenc -l input.png output.avif`
2828
* Example (lossy): `avifenc --qcolor 70 --qalpha 100 --depth 8 input.png output.avif`
2929
* `brew install libwebm`
30-
* Example (lossless): `cwebp -preset drawing -lossless -z 6 input.png -o output.webp`
31-
* Example (lossy): `cwebp -preset drawing -q 90 -alpha_q 100 input.png -o output.webp`
30+
* Example (lossless): `cwebp -preset drawing -lossless -z 6 -metadata all input.png -o output.webp`
31+
* Example (lossy): `cwebp -preset drawing -q 90 -alpha_q 100 -metadata all input.png -o output.webp`
3232
* `brew install optipng`
3333
* Example: `optipng -o3 image.png`
3434

assets/css/custom.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ textarea:read-only {
200200
[id]::before {
201201
content: '';
202202
display: block;
203-
height: 138px;
204-
margin-top: -138px;
203+
height: 96px;
204+
margin-top: -96px;
205205
visibility: hidden;
206206
}

assets/js/mathjax-config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
MathJax = {
2+
tex: {
3+
displayMath: [['\\[', '\\]'], ['$$', '$$']], // block
4+
inlineMath: [['\\(', '\\)']] // inline
5+
},
6+
chtml: {
7+
fontURL: '/webfonts/mathjax',
8+
}
9+
};

content/downloads/android.de.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ <h3 class="font-h3 text-lg">Google Play</h3>
2222
<a href="https://play.google.com/store/apps/details?id=org.cryptomator&hl=de" role="button" data-umami-event="downloads-android-googleplay">
2323
<img class="h-10 mx-auto lazyload" data-src="/de/img/downloads/googleplay-badge.png">
2424
</a>
25-
<p class="text-sm md:text-base leading-relaxed text-gray-700 rounded bg-primary-l2 p-2 mt-4">☀️ Der Einmalpreis ist um 25 %* reduziert!</p>
2625
</div>
2726
</div>
28-
<p class="prose prose-sm max-w-none">*Hinweis: Die Höhe des Rabatts kann je nach Region variieren.</p>
2927

3028
<div class="white-box my-4">
3129
<div class="px-4 py-2 border-b border-primary">

content/downloads/android.en.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ <h3 class="font-h3 text-lg">Google Play</h3>
2424
<a href="https://play.google.com/store/apps/details?id=org.cryptomator&hl=en" role="button" data-umami-event="downloads-android-googleplay">
2525
<img class="h-10 mx-auto lazyload" data-src="/img/downloads/googleplay-badge.png">
2626
</a>
27-
<p class="text-sm md:text-base leading-relaxed text-gray-700 rounded bg-primary-l2 p-2 mt-4">☀️ One-time price is 25%* off!</p>
2827
</div>
2928
</div>
30-
<p class="prose prose-sm max-w-none">*Note: The discount amount may vary by region.</p>
3129

3230
<div class="white-box my-4">
3331
<div class="px-4 py-2 border-b border-primary">

content/downloads/ios.de.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ <h3 class="font-h3 text-lg">App Store</h3>
2323
<img class="h-10 mx-auto mb-4 lazyload" data-src="/de/img/downloads/appstore-badge.svg">
2424
</a>
2525
<p class="font-p text-sm">Eine Vollversion ohne In-App-Käufe für Apple School/Business Manager ist <a class="text-link" href="https://apps.apple.com/de/app/cryptomator-full-version/id1665616242">im App Store</a> erhältlich.</p>
26-
<p class="text-sm md:text-base leading-relaxed text-gray-700 rounded bg-primary-l2 p-2 mt-4">☀️ Die lebenslange Lizenz ist um 25 %* reduziert!</p>
2726
</div>
2827
</div>
29-
<p class="prose prose-sm max-w-none">*Hinweis: Die Höhe des Rabatts kann je nach Region variieren.</p>
3028
</div>

content/downloads/ios.en.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ <h3 class="font-h3 text-lg">App Store</h3>
2323
<img class="h-10 mx-auto mb-4 lazyload" data-src="/img/downloads/appstore-badge.svg">
2424
</a>
2525
<p class="font-p text-sm">A full version without in-app purchases for Apple School/Business Manager is available <a class="text-link" href="https://apps.apple.com/us/app/cryptomator-full-version/id1665616242">on the App Store</a>.</p>
26-
<p class="text-sm md:text-base leading-relaxed text-gray-700 rounded bg-primary-l2 p-2 mt-4">☀️ Lifetime license is 25%* off!</p>
2726
</div>
2827
</div>
29-
<p class="prose prose-sm max-w-none">*Note: The discount amount may vary by region.</p>
3028
</div>

hugo.toml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ baseURL = "https://cryptomator.org/"
22
title = "Cryptomator"
33
defaultContentLanguage = "en"
44
enableemoji = true
5+
theme = ["hugo-admonitions"]
56

67
[languages]
78
[languages.en]
@@ -60,13 +61,29 @@ enableemoji = true
6061
source = "node_modules/altcha/dist_external"
6162
target = "assets/js/altcha"
6263

63-
[markup.goldmark.renderer]
64-
unsafe = true
64+
[[module.mounts]]
65+
source = "node_modules/mathjax/es5"
66+
target = "assets/js/mathjax"
6567

66-
[markup.goldmark.parser.attribute]
67-
block = true
68+
[[module.mounts]]
69+
source = "node_modules/mathjax/es5/output/chtml/fonts/woff-v2"
70+
target = "static/webfonts/mathjax"
71+
72+
[markup]
73+
[markup.goldmark]
74+
[markup.goldmark.extensions]
75+
[markup.goldmark.extensions.passthrough]
76+
enable = true
77+
[markup.goldmark.extensions.passthrough.delimiters]
78+
block = [['\[', '\]'], ['$$', '$$']]
79+
inline = [['\(', '\)']]
80+
[markup.goldmark.renderer]
81+
unsafe = true
82+
[markup.goldmark.parser.attribute]
83+
block = true
6884

6985
[params]
86+
math = false # set to true in frontmatter if required
7087
[params.releases]
7188
[params.releases.exe]
7289
version = "1.17.0"

0 commit comments

Comments
 (0)