Merge pull request #1197 from nunocoracao/dev

🔖 v2.53.0
This commit is contained in:
Nuno Coração 2024-01-28 17:10:16 +00:00 committed by GitHub
commit 863354a960
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 10 additions and 4 deletions

View file

@ -7,7 +7,8 @@ function _getDefaultPackeryOptions() {
}
(function init() {
window.addEventListener("DOMContentLoaded", (event) => {
$(window).on("load", function () {
console.groupCollapsed('[DEBUG] Gallery feature enable');
let packeries = [];
let nodeGalleries = document.querySelectorAll('.gallery');

View file

@ -50,6 +50,7 @@ disableTextInHeader = false
showDate = true
showViews = false
showLikes = false
showDateOnlyInArticle = false
showDateUpdated = false
showAuthor = true
showHero = false

View file

@ -50,6 +50,7 @@ smartTOCHideUnfocusedChildren = false
showDate = false
showViews = true
showLikes = true
showDateOnlyInArticle = false
showDateUpdated = false
showAuthor = true
showHero = true

View file

@ -215,6 +215,7 @@ Many of the article defaults here can be overridden on a per article basis by sp
| `article.showDate` | `true` | Whether or not article dates are displayed. |
| `article.showViews` | `false` | Whether or not article views are displayed. This requires firebase integrations to be enabled, look below. |
| `article.showLikes` | `false` | Whether or not article likes are displayed. This requires firebase integrations to be enabled, look below. |
| `article.showDateOnlyInArticle` | `false` | Show date within article even if not displayed in article listings/cards. |
| `article.showDateUpdated` | `false` | Whether or not the dates articles were updated are displayed. |
| `article.showAuthor` | `true` | Whether or not the author box is displayed in the article footer. |
| `article.showHero` | `false` | Whether the thumbnail image will be shown as a hero image within each article page. |

View file

@ -14,6 +14,8 @@
{{/* Gather partials for this context */}}
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
{{ $meta.Add "partials" (slice (partial "meta/date.html" .Date)) }}
{{else if and (eq $scope "single") (.Params.showDateOnlyInArticle | default (.Site.Params.article.showDateOnlyInArticle | default false)) }}
{{ $meta.Add "partials" (slice (partial "meta/date.html" .Date)) }}
{{ end }}
{{ if and (.Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false)) (ne (partial

View file

@ -1,6 +1,6 @@
{
"name": "hugo-blowfish-theme",
"version": "2.52.0",
"version": "2.53.0",
"description": "Blowfish theme for Hugo",
"scripts": {
"postinstall": "vendor-copy",