mirror of
https://github.com/tomfran/typo.git
synced 2025-04-25 13:09:54 +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 }}"/>
|
||||
{{- end }}
|
||||
|
||||
{{ if .Param "fediverse" }}
|
||||
<meta name="fediverse:creator" content="{{ .Params.Fediverse }}">
|
||||
{{ end }}
|
||||
|
||||
<title>
|
||||
{{ if .IsHome }}
|
||||
{{ site.Title }}
|
||||
|
|
|
@ -87,3 +87,12 @@ You can decide the date format to apply to single posts by setting the following
|
|||
[params]
|
||||
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"]
|
||||
showTags: false
|
||||
hideBackToTop: false
|
||||
fediverse: "@username@instance.url"
|
||||
---
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue