mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-04-21 05:31:53 +02:00
commit
863354a960
6 changed files with 10 additions and 4 deletions
|
@ -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');
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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. |
|
||||||
|
|
|
@ -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,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",
|
||||||
|
|
Loading…
Add table
Reference in a new issue