Skip to content

Commit

Permalink
Merge pull request #1675 from nunocoracao/dev
Browse files Browse the repository at this point in the history
🔖 v2.76.0
  • Loading branch information
nunocoracao authored Aug 28, 2024
2 parents 580f36f + a517624 commit 52d6eb7
Show file tree
Hide file tree
Showing 46 changed files with 319 additions and 238 deletions.
7 changes: 5 additions & 2 deletions assets/css/compiled/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ body.zen-mode-enable {
}
}

/*! tailwindcss v3.4.7 | MIT License | https://tailwindcss.com */
/*! tailwindcss v3.4.10 | MIT License | https://tailwindcss.com */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
Expand Down Expand Up @@ -1121,7 +1121,6 @@ select {
.prose :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
width:100%;
table-layout:auto;
text-align:start;
margin-top:2em;
margin-bottom:2em;
font-size:0.875em;
Expand Down Expand Up @@ -1164,6 +1163,10 @@ select {
vertical-align:top
}

.prose :where(th, td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
text-align:start
}

.prose :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top:0;
margin-bottom:0
Expand Down
2 changes: 0 additions & 2 deletions assets/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ document.addEventListener("keydown", function (event) {
} else {
document.activeElement.click();
}
}else{
event.preventDefault();
}
}

Expand Down
15 changes: 14 additions & 1 deletion assets/lib/lite-youtube-embed/lite-yt-embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,23 @@ class LiteYTEmbed extends HTMLElement {

this.addNoscriptIframe();

playBtnEl.removeAttribute('href');
// for the PE pattern, change anchor's semantics to button
if(playBtnEl.nodeName === 'A'){
playBtnEl.removeAttribute('href');
playBtnEl.setAttribute('tabindex', '0');
playBtnEl.setAttribute('role', 'button');
// fake button needs keyboard help
playBtnEl.addEventListener('keydown', e => {
if( e.key === 'Enter' || e.key === ' ' ){
e.preventDefault();
this.activate();
}
});
}

// On hover (or tap), warm up the TCP connections we're (likely) about to use.
this.addEventListener('pointerover', LiteYTEmbed.warmConnections, {once: true});
this.addEventListener('focusin', LiteYTEmbed.warmConnections, {once: true});

// Once the user clicks, add the real iframe and drop our play button
// TODO: In the future we could be like amp-youtube and silently swap in the iframe during idle time
Expand Down
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
[module.hugoVersion]
extended = true
min = "0.87.0"
max = "0.131.0"
max = "0.133.1"
3 changes: 2 additions & 1 deletion config/_default/languages.en.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
disabled = false
languageCode = "en"
languageName = "English"
weight = 1
Expand All @@ -13,7 +14,7 @@ title = "Blowfish"
# description = "My awesome website"
# copyright = "Copy, _right?_ :thinking_face:"

# [author]
# [params.author]
# name = "Your name here"
# email = "[email protected]"
# image = "img/blowfish_logo.png"
Expand Down
4 changes: 2 additions & 2 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ forgejoDefaultServer = "https://v8.next.forgejo.org"
showRecent = false
showRecentItems = 5
showMoreLink = false
showMoreLinkDest = "/posts"
showMoreLinkDest = "/posts/"
cardView = false
cardViewScreenWidth = false
layoutBackgroundBlur = false # only used when layout equals background
Expand Down Expand Up @@ -80,7 +80,7 @@ forgejoDefaultServer = "https://v8.next.forgejo.org"
showTaxonomies = false
showAuthorsBadges = false
showWordCount = true
# sharingLinks = [ "linkedin", "twitter", "bluesky", "reddit", "pinterest", "facebook", "email", "whatsapp", "telegram"]
# sharingLinks = [ "linkedin", "twitter", "bluesky", "mastodon", "reddit", "pinterest", "facebook", "email", "whatsapp", "telegram"]
showZenMode = false

[list]
Expand Down
9 changes: 7 additions & 2 deletions data/sharing.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,10 @@
"icon": "bluesky",
"title": "sharing.bluesky",
"url": "https://bsky.app/intent/compose?text=%[2]s+%[1]s"
}
}
},
"mastodon": {
"icon": "mastodon",
"title": "sharing.mastodon",
"url": "https://s2f.kytta.dev/?text=%[2]s %[1]s"
}
}
2 changes: 1 addition & 1 deletion exampleSite/config/_default/languages.en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ title = "Blowfish"
logo = "img/blowfish_logo_transparent.png"
description = "A powerful, lightweight theme for Hugo."

[author]
[params.author]
name = "Blowfish"
email = "[email protected]"
image = "img/blowfish_logo.png"
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/config/_default/languages.it.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ title = "Blowfish"
logo = "img/blowfish_logo_transparent.png"
description = "Un potente, leggero tema per Hugo."

[author]
[params.author]
name = "Blowfish"
image = "img/blowfish_logo.png"
headline = "Un potente, leggero tema per Hugo."
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/config/_default/languages.ja.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ title = "Blowfish"
logo = "img/blowfish_logo_transparent.png"
description = "強力で、軽量な Hugo のテーマです。"

[author]
[params.author]
name = "Blowfish"
image = "img/blowfish_logo.png"
headline = "強力で、軽量な Hugo のテーマです。"
Expand Down
2 changes: 1 addition & 1 deletion exampleSite/config/_default/languages.zh-cn.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ title = "Blowfish"
logo = "img/blowfish_logo_transparent.png"
description = "一个强大、轻量级的 Hugo 主题。"

[author]
[params.author]
name = "Blowfish"
image = "img/blowfish_logo.png"
headline = "一个强大、轻量级的 Hugo 主题。"
Expand Down
Loading

0 comments on commit 52d6eb7

Please sign in to comment.