mirror of https://github.com/jlelse/GoBlog
Allow adding custom rel=me links
This commit is contained in:
parent
e434103fc1
commit
5b080e36a2
15
config.go
15
config.go
|
@ -130,13 +130,14 @@ type comments struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type configUser struct {
|
type configUser struct {
|
||||||
Nick string `mapstructure:"nick"`
|
Nick string `mapstructure:"nick"`
|
||||||
Name string `mapstructure:"name"`
|
Name string `mapstructure:"name"`
|
||||||
Password string `mapstructure:"password"`
|
Password string `mapstructure:"password"`
|
||||||
Picture string `mapstructure:"picture"`
|
Picture string `mapstructure:"picture"`
|
||||||
Emoji string `mapstructure:"emoji"`
|
Emoji string `mapstructure:"emoji"`
|
||||||
Email string `mapstructure:"email"`
|
Email string `mapstructure:"email"`
|
||||||
Link string `mapstructure:"link"`
|
Link string `mapstructure:"link"`
|
||||||
|
Identities []string `mapstructure:"identities"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type configHooks struct {
|
type configHooks struct {
|
||||||
|
|
|
@ -13,6 +13,11 @@
|
||||||
<link rel="micropub" href="/micropub" />
|
<link rel="micropub" href="/micropub" />
|
||||||
<link rel="authorization_endpoint" href="/indieauth" />
|
<link rel="authorization_endpoint" href="/indieauth" />
|
||||||
<link rel="token_endpoint" href="/indieauth/token" />
|
<link rel="token_endpoint" href="/indieauth/token" />
|
||||||
|
{{ with user }}
|
||||||
|
{{ range .Identities }}
|
||||||
|
<link rel="me" href="{{ . }}" />
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
{{ include "header" . }}
|
{{ include "header" . }}
|
||||||
{{ template "main" . }}
|
{{ template "main" . }}
|
||||||
{{ include "footer" . }}
|
{{ include "footer" . }}
|
||||||
|
|
Loading…
Reference in New Issue