Compare commits

..

7 Commits

Author SHA1 Message Date
Nuno Coração 863354a960 Merge pull request #1197 from nunocoracao/dev
🔖 v2.53.0
2024-01-28 17:10:16 +00:00
Nuno Coração 8c4fb4d64c fix small default 2024-01-28 17:09:49 +00:00
Nuno Coração f85443d3d5 Merge pull request #1200 from nunocoracao/1190-display-date-solely-in-article-details-not-in-cards
 add showDateOnlyInArticle parameter
2024-01-28 17:07:23 +00:00
Nuno Coração 392e89722d fix gallery js code 2024-01-28 17:06:04 +00:00
Nuno Coração f481e64411 Merge pull request #1199 from nunocoracao/1198-gallery-shortcode-not-loading-correctly
🐛 fix gallery js code
2024-01-28 16:31:17 +00:00
Nuno Coração c97a2b0d04 fix gallery js code 2024-01-28 16:30:35 +00:00
Nuno Coração e06f703799 bump version 2024-01-27 21:10:30 +00:00
6 changed files with 10 additions and 4 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ function _getDefaultPackeryOptions() {
} }
(function init() { (function init() {
window.addEventListener("DOMContentLoaded", (event) => {
$(window).on("load", function () {
console.groupCollapsed('[DEBUG] Gallery feature enable'); console.groupCollapsed('[DEBUG] Gallery feature enable');
let packeries = []; let packeries = [];
let nodeGalleries = document.querySelectorAll('.gallery'); let nodeGalleries = document.querySelectorAll('.gallery');
+1
View File
@@ -50,6 +50,7 @@ disableTextInHeader = false
showDate = true showDate = true
showViews = false showViews = false
showLikes = false showLikes = false
showDateOnlyInArticle = false
showDateUpdated = false showDateUpdated = false
showAuthor = true showAuthor = true
showHero = false showHero = false
+1
View File
@@ -50,6 +50,7 @@ smartTOCHideUnfocusedChildren = false
showDate = false showDate = false
showViews = true showViews = true
showLikes = true showLikes = true
showDateOnlyInArticle = false
showDateUpdated = false showDateUpdated = false
showAuthor = true showAuthor = true
showHero = true showHero = true
@@ -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.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.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.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.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.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. | | `article.showHero` | `false` | Whether the thumbnail image will be shown as a hero image within each article page. |
+2
View File
@@ -14,6 +14,8 @@
{{/* Gather partials for this context */}} {{/* Gather partials for this context */}}
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }} {{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
{{ $meta.Add "partials" (slice (partial "meta/date.html" .Date)) }} {{ $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 }} {{ end }}
{{ if and (.Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false)) (ne (partial {{ if and (.Params.showDateUpdated | default (.Site.Params.article.showDateUpdated | default false)) (ne (partial
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "hugo-blowfish-theme", "name": "hugo-blowfish-theme",
"version": "2.52.0", "version": "2.53.0",
"description": "Blowfish theme for Hugo", "description": "Blowfish theme for Hugo",
"scripts": { "scripts": {
"postinstall": "vendor-copy", "postinstall": "vendor-copy",