mirror of
https://github.com/tomfran/typo.git
synced 2025-04-25 21:19:55 +03:00
Merge pull request #67 from edfloreshz-ext/fediverse
Add fediverse meta tag
This commit is contained in:
commit
96a8842cfc
3 changed files with 14 additions and 0 deletions
|
@ -19,6 +19,10 @@
|
||||||
<meta name="description" content="{{ .Params.Description }}"/>
|
<meta name="description" content="{{ .Params.Description }}"/>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{ if .Param "fediverse" }}
|
||||||
|
<meta name="fediverse:creator" content="{{ .Params.Fediverse }}">
|
||||||
|
{{ end }}
|
||||||
|
|
||||||
<title>
|
<title>
|
||||||
{{ if .IsHome }}
|
{{ if .IsHome }}
|
||||||
{{ site.Title }}
|
{{ site.Title }}
|
||||||
|
|
|
@ -87,3 +87,12 @@ You can decide the date format to apply to single posts by setting the following
|
||||||
[params]
|
[params]
|
||||||
singleDateFormat = '2 January 2006'
|
singleDateFormat = '2 January 2006'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Fediverse
|
||||||
|
|
||||||
|
You can include a [fediverse handle](https://blog.joinmastodon.org/2024/07/highlighting-journalism-on-mastodon/) in your posts.
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[params]
|
||||||
|
fediverse: "@username@instance.url"
|
||||||
|
```
|
|
@ -176,6 +176,7 @@ math: true
|
||||||
tags: ["database", "java"]
|
tags: ["database", "java"]
|
||||||
showTags: false
|
showTags: false
|
||||||
hideBackToTop: false
|
hideBackToTop: false
|
||||||
|
fediverse: "@username@instance.url"
|
||||||
---
|
---
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue