File tree 3 files changed +16
-3
lines changed
3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
11
11
12
12
- Remove author display if both post author and site author are not set [ #354 ] ( https://github.com/g1eny0ung/hugo-theme-dream/pull/354 )
13
13
- Prioritize page descriptions over page summaries [ #356 ] ( https://github.com/g1eny0ung/hugo-theme-dream/pull/356 )
14
+ - Allow favicon to be specified in text format
14
15
15
16
## [ 3.10.0] - 2025-01-07
16
17
Original file line number Diff line number Diff line change @@ -199,7 +199,15 @@ site footer.
199
199
200
200
### favicon
201
201
202
- Custom the [ favicon] ( https://en.wikipedia.org/wiki/Favicon ) , place it in the ` static ` folder.
202
+ Custom the [ favicon] ( https://en.wikipedia.org/wiki/Favicon ) of your site, place it in the ` static ` folder.
203
+
204
+ <Callout type = " info" >
205
+ You can also specify the favicon in text format (starting with ` <link ` ), for example:
206
+
207
+ ``` html
208
+ <link rel =" icon" href =" data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%2210 0 100 100%22><text y=%22.90em%22 font-size=%2290%22>🌱</text></svg>" ></link >
209
+ ```
210
+ </Callout >
203
211
204
212
### customSyntaxHighlighting
205
213
Original file line number Diff line number Diff line change 1
- {{ if isset site.Params "favicon" }}
2
- < link href ="{{ site.Params.favicon | relURL }} " rel ="icon " type ="image/x-icon " />
1
+ {{ with site.Params.favicon }}
2
+ {{ if hasPrefix . "< link " }}
3
+ {{ . | safeHTML }}
4
+ {{ else }}
5
+ < link href ="{{ . | relURL }} " rel ="icon " type ="image/x-icon " />
6
+ {{ end }}
3
7
{{ end }}
4
8
5
9
< link rel ="canonical " href ="{{ .Permalink }} " />
You can’t perform that action at this time.
0 commit comments