Skip to content

Commit 2b6fc61

Browse files
committed
Fix anchor handling of cover image
1 parent b7fb5be commit 2b6fc61

File tree

4 files changed

+19
-191
lines changed

4 files changed

+19
-191
lines changed

hugo_stats.json

+3-187
Original file line numberDiff line numberDiff line change
@@ -1,191 +1,7 @@
11
{
22
"htmlElements": {
3-
"tags": [
4-
"a",
5-
"body",
6-
"button",
7-
"div",
8-
"footer",
9-
"form",
10-
"head",
11-
"html",
12-
"img",
13-
"input",
14-
"label",
15-
"li",
16-
"link",
17-
"meta",
18-
"nav",
19-
"ol",
20-
"p",
21-
"path",
22-
"script",
23-
"small",
24-
"span",
25-
"strong",
26-
"svg",
27-
"symbol",
28-
"title",
29-
"ul",
30-
"use"
31-
],
32-
"classes": [
33-
"active",
34-
"align-items-center",
35-
"align-self-center",
36-
"align-self-end",
37-
"ball",
38-
"bg-body",
39-
"bg-opacity-10",
40-
"bg-primary",
41-
"bottom-0",
42-
"bottom-bar",
43-
"breadcrumb",
44-
"breadcrumb-item",
45-
"btn",
46-
"btn-close",
47-
"btn-primary",
48-
"checkbox",
49-
"col",
50-
"col-12",
51-
"col-6",
52-
"col-md-2",
53-
"col-md-3",
54-
"col-md-4",
55-
"col-md-8",
56-
"col-md-9",
57-
"col-sm-12",
58-
"collapse",
59-
"collapsed",
60-
"container-fluid",
61-
"container-xxl",
62-
"d-flex",
63-
"d-inline",
64-
"d-md-block",
65-
"d-none",
66-
"display-1",
67-
"display-4",
68-
"emphasis",
69-
"end-0",
70-
"fa",
71-
"fa-10x",
72-
"fa-2x",
73-
"fa-book-open",
74-
"fa-ellipsis",
75-
"fa-face-frown",
76-
"fa-fw",
77-
"fa-github",
78-
"fa-linkedin",
79-
"fa-medium",
80-
"fa-moon",
81-
"fa-sun",
82-
"fab",
83-
"fas",
84-
"fixed-top",
85-
"flex-column",
86-
"flex-fill",
87-
"footer",
88-
"form-control",
89-
"fs-3",
90-
"fs-5",
91-
"fw-30",
92-
"fw-bold",
93-
"hstack",
94-
"img-fluid",
95-
"img-wrap",
96-
"invisible",
97-
"is-search",
98-
"justify-content-center",
99-
"justify-content-end",
100-
"justify-content-start",
101-
"label",
102-
"link-bg-footer",
103-
"link-secondary",
104-
"main-content",
105-
"main-nav-toggler",
106-
"me-auto",
107-
"middle-bar",
108-
"min-vh-100",
109-
"mode-switch",
110-
"ms-auto",
111-
"ms-md-3",
112-
"mt-3",
113-
"mt-4",
114-
"mt-5",
115-
"mt-md-0",
116-
"mx-auto",
117-
"mx-md-0",
118-
"my-auto",
119-
"my-md-auto",
120-
"nav-item",
121-
"nav-link",
122-
"navbar",
123-
"navbar-brand",
124-
"navbar-collapse",
125-
"navbar-container",
126-
"navbar-expand-md",
127-
"navbar-fixed-top",
128-
"navbar-mode-selector",
129-
"navbar-nav",
130-
"navbar-toggler",
131-
"no-js",
132-
"order-0",
133-
"order-1",
134-
"order-md-0",
135-
"order-md-1",
136-
"p-0",
137-
"p-2",
138-
"p-3",
139-
"p-4",
140-
"pb-4",
141-
"pb-md-0",
142-
"position-fixed",
143-
"position-relative",
144-
"ps-1",
145-
"pt-4",
146-
"pt-5",
147-
"pt-md-3",
148-
"px-4",
149-
"px-xxl-0",
150-
"py-3",
151-
"rounded",
152-
"row",
153-
"row-cols-1",
154-
"row-cols-2",
155-
"row-cols-md-2",
156-
"row-cols-sm-3",
157-
"search",
158-
"search-input",
159-
"search-suggestions",
160-
"shadow",
161-
"svg-inline--fa",
162-
"text-center",
163-
"text-decoration-none",
164-
"text-muted",
165-
"text-secondary",
166-
"text-sm-start",
167-
"text-start",
168-
"toast",
169-
"toast-body",
170-
"toast-container",
171-
"toast-header",
172-
"toggler-icon",
173-
"top-bar"
174-
],
175-
"ids": [
176-
"fa-face-frown",
177-
"fab-github",
178-
"fab-linkedin",
179-
"fab-medium",
180-
"fas-book-open",
181-
"fas-ellipsis",
182-
"fas-moon",
183-
"fas-sun",
184-
"navbar-0-collapse",
185-
"navbar-mode",
186-
"navbar-mode-checkbox",
187-
"toast-container",
188-
"toast-copied-code-message"
189-
]
3+
"tags": null,
4+
"classes": null,
5+
"ids": null
1906
}
1917
}

layouts/partials/single/thumbnail.html

+13-1
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
{{ with .class }}{{ $class = . }}{{ end }}
66
{{- $ratio := .ratio | default "21x9" -}}
77
{{- $thumbnail := "" -}}
8+
{{- $anchor := "" -}}
89
{{- $credits := "" -}}
910
{{ $figclass := .figclass }}
1011

1112
{{- if reflect.IsMap $page.Params.Thumbnail -}}
1213
{{- $thumbnail = $page.Params.Thumbnail.url -}}
14+
{{- $anchor = $page.Params.Thumbnail.anchor }}
1315
{{- $author := "" -}}
1416
{{- if and $page.Params.Thumbnail.authorURL "text" $page.Params.Thumbnail.author }}
1517
{{- $author = partial "assets/link.html" (dict "destination" $page.Params.Thumbnail.authorURL "text" $page.Params.Thumbnail.author "page" $page) -}}
@@ -38,5 +40,15 @@
3840
{{- end -}}
3941

4042
{{ if $thumbnail -}}
41-
{{- partial "assets/image.html" (dict "url" $thumbnail "ratio" $ratio "wrapper" $wrapper "class" $class "title" $page.Params.title "caption" $credits "figclass" $figclass "priority" "high") -}}
43+
{{- partial "assets/image.html" (dict
44+
"url" $thumbnail
45+
"anchor" $anchor
46+
"ratio" $ratio
47+
"wrapper" $wrapper
48+
"class" $class
49+
"title" $page.Params.title
50+
"caption" $credits
51+
"figclass" $figclass
52+
"priority" "high"
53+
) -}}
4254
{{ end -}}

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gethinode/hinode",
3-
"version": "0.27.9",
3+
"version": "0.27.10",
44
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
55
"keywords": [
66
"hugo",

0 commit comments

Comments
 (0)