mirror of https://github.com/jlelse/GoBlog
Allow adding custom rel=me links
This commit is contained in:
parent
e434103fc1
commit
5b080e36a2
|
@ -137,6 +137,7 @@ type configUser struct {
|
|||
Emoji string `mapstructure:"emoji"`
|
||||
Email string `mapstructure:"email"`
|
||||
Link string `mapstructure:"link"`
|
||||
Identities []string `mapstructure:"identities"`
|
||||
}
|
||||
|
||||
type configHooks struct {
|
||||
|
|
|
@ -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" . }}
|
||||
|
|
Loading…
Reference in New Issue