mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-01-19 15:12:49 +00:00
Rename ExtraData to more appropriate BodyAttributes
This commit is contained in:
parent
f3437d93c8
commit
e0f2868d34
@ -15,7 +15,7 @@
|
|||||||
<script src="/static/shortcuts.js"></script>
|
<script src="/static/shortcuts.js"></script>
|
||||||
{{range .HeadElements}}{{.}}{{end}}
|
{{range .HeadElements}}{{.}}{{end}}
|
||||||
</head>
|
</head>
|
||||||
<body data-rrh-addr="{{if .Addr}}{{.Addr}}{{else}}{{.Meta.Addr}}{{end}}"{{range .ExtraData}} data-rrh-{{.}}=""{{end}}>
|
<body data-rrh-addr="{{if .Addr}}{{.Addr}}{{else}}{{.Meta.Addr}}{{end}}"{{range .BodyAttributes}} data-rrh-{{.}}=""{{end}}>
|
||||||
<header>
|
<header>
|
||||||
<nav class="main-width top-bar">
|
<nav class="main-width top-bar">
|
||||||
<ul class="top-bar__wrapper">
|
<ul class="top-bar__wrapper">
|
||||||
|
@ -98,7 +98,7 @@ type BaseData struct {
|
|||||||
Addr string
|
Addr string
|
||||||
Title string // TODO: remove
|
Title string // TODO: remove
|
||||||
Body string // TODO: remove
|
Body string // TODO: remove
|
||||||
ExtraData []string
|
BodyAttributes []string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (bd *BaseData) withBaseValues(meta Meta, headerLinks []HeaderLink, commonScripts []string) {
|
func (bd *BaseData) withBaseValues(meta Meta, headerLinks []HeaderLink, commonScripts []string) {
|
||||||
@ -120,7 +120,7 @@ func Base(meta Meta, title, body string, extraData []string, headElements ...str
|
|||||||
HeaderLinks: HeaderLinks,
|
HeaderLinks: HeaderLinks,
|
||||||
CommonScripts: cfg.CommonScripts,
|
CommonScripts: cfg.CommonScripts,
|
||||||
Body: body,
|
Body: body,
|
||||||
ExtraData: extraData,
|
BodyAttributes: extraData,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user