Allow adding custom rel=me links

This commit is contained in:
Jan-Lukas Else 2021-02-14 17:54:28 +01:00
parent e434103fc1
commit 5b080e36a2
2 changed files with 13 additions and 7 deletions

View File

@ -130,13 +130,14 @@ type comments struct {
}
type configUser struct {
Nick string `mapstructure:"nick"`
Name string `mapstructure:"name"`
Password string `mapstructure:"password"`
Picture string `mapstructure:"picture"`
Emoji string `mapstructure:"emoji"`
Email string `mapstructure:"email"`
Link string `mapstructure:"link"`
Nick string `mapstructure:"nick"`
Name string `mapstructure:"name"`
Password string `mapstructure:"password"`
Picture string `mapstructure:"picture"`
Emoji string `mapstructure:"emoji"`
Email string `mapstructure:"email"`
Link string `mapstructure:"link"`
Identities []string `mapstructure:"identities"`
}
type configHooks struct {

View File

@ -13,6 +13,11 @@
<link rel="micropub" href="/micropub" />
<link rel="authorization_endpoint" href="/indieauth" />
<link rel="token_endpoint" href="/indieauth/token" />
{{ with user }}
{{ range .Identities }}
<link rel="me" href="{{ . }}" />
{{ end }}
{{ end }}
{{ include "header" . }}
{{ template "main" . }}
{{ include "footer" . }}