mirror of
https://github.com/gethinode/hinode.git
synced 2025-10-09 19:13:20 +00:00
Merge branch 'main' into hugo-mod-dependencies
This commit is contained in:
@@ -50,24 +50,26 @@
|
|||||||
<!-- Generate image definition -->
|
<!-- Generate image definition -->
|
||||||
{{- if $caption -}}
|
{{- if $caption -}}
|
||||||
<figure {{ with $wrapper }}class="{{ . }}"{{ end }}>
|
<figure {{ with $wrapper }}class="{{ . }}"{{ end }}>
|
||||||
|
{{ else }}
|
||||||
|
{{ with $wrapper }}<div class="{{ . }}">{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
{{- if not $anchor -}}
|
||||||
|
<img class="img-fluid {{ $class }}"
|
||||||
|
src="{{ $fallbackURL }}"
|
||||||
|
{{ if $lazy }}loading="lazy"{{ end }}
|
||||||
|
{{ with $priority }}fetchpriority="{{ . }}"{{ end }}
|
||||||
|
{{ with $imgset -}}srcset="{{ . }}" sizes="{{ $sizes }}"{{- end }}
|
||||||
|
{{ with $height }}height="{{ . }}"{{ end }}
|
||||||
|
{{ with $width }}width="{{ . }}"{{ end }}
|
||||||
|
{{ with (or $title $caption) }}alt="{{ . }}"{{ end }}>
|
||||||
|
{{- else }}
|
||||||
|
<svg class="{{ $class }}">
|
||||||
|
<use href="{{ $fallbackURL }}#{{ $anchor }}"></use>
|
||||||
|
</svg>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<div class="{{ if not $caption }}{{ $wrapper }}{{ end }}">
|
|
||||||
{{- if not $anchor -}}
|
|
||||||
<img class="img-fluid {{ $class }}"
|
|
||||||
src="{{ $fallbackURL }}"
|
|
||||||
{{ if $lazy }}loading="lazy"{{ end }}
|
|
||||||
{{ with $priority }}fetchpriority="{{ . }}"{{ end }}
|
|
||||||
{{ with $imgset -}}srcset="{{ . }}" sizes="{{ $sizes }}"{{- end }}
|
|
||||||
{{ with $height }}height="{{ . }}"{{ end }}
|
|
||||||
{{ with $width }}width="{{ . }}"{{ end }}
|
|
||||||
{{ with (or $title $caption) }}alt="{{ . }}"{{ end }}>
|
|
||||||
{{- else }}
|
|
||||||
<svg class="{{ $class }}">
|
|
||||||
<use href="{{ $fallbackURL }}#{{ $anchor }}"></use>
|
|
||||||
</svg>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
{{- if $caption -}}
|
{{- if $caption -}}
|
||||||
<figcaption class="figure-caption{{ with $figclass }} {{ . }}{{ end }}">{{ $caption | safeHTML }}</figcaption>
|
<figcaption class="figure-caption{{ with $figclass }} {{ . }}{{ end }}">{{ $caption | safeHTML }}</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
|
{{ else if $wrapper }}
|
||||||
|
</div>
|
||||||
{{- end -}}
|
{{- end -}}
|
@@ -50,7 +50,7 @@
|
|||||||
{{ else }}
|
{{ else }}
|
||||||
{{ $ref := partial "utilities/GetPage.html" (dict "url" $url.Path "page" $page) }}
|
{{ $ref := partial "utilities/GetPage.html" (dict "url" $url.Path "page" $page) }}
|
||||||
{{- if not $ref -}}
|
{{- if not $ref -}}
|
||||||
{{- warnf "partial [assets/navbar-item.html] - Cannot find page of menu item '%s': %s" $menu $url -}}
|
{{- warnf "partial [assets/navbar-item.html] - Cannot find page of menu item '%s': %s" $menu.Name $url -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.24.16",
|
"version": "0.24.17",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.24.16",
|
"version": "0.24.17",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fullhuman/postcss-purgecss": "^6.0.0",
|
"@fullhuman/postcss-purgecss": "^6.0.0",
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gethinode/hinode",
|
"name": "@gethinode/hinode",
|
||||||
"version": "0.24.16",
|
"version": "0.24.17",
|
||||||
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
|
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"hugo",
|
"hugo",
|
||||||
|
Reference in New Issue
Block a user