mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-01-07 02:10:26 +00:00
Copyedit
This commit is contained in:
parent
a0cd3bd621
commit
fe7c1c482f
@ -72,10 +72,9 @@ func Init() {
|
|||||||
BaseRu = m(m(BaseEn.Clone()).Parse(ruText))
|
BaseRu = m(m(BaseEn.Clone()).Parse(ruText))
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: get rid of this
|
|
||||||
func localizedBaseWithWeirdBody(meta Meta) *template.Template {
|
func localizedBaseWithWeirdBody(meta Meta) *template.Template {
|
||||||
t := func() *template.Template {
|
t := func() *template.Template {
|
||||||
if meta.Locale() == "_ru" {
|
if meta.Locale() == "ru" {
|
||||||
return BaseRu
|
return BaseRu
|
||||||
}
|
}
|
||||||
return BaseEn
|
return BaseEn
|
||||||
@ -103,6 +102,7 @@ func (bd *BaseData) withBaseValues(meta Meta, headerLinks []cfg.HeaderLink, comm
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Base is a temporary wrapper around BaseEn and BaseRu, meant to facilitate the migration from qtpl.
|
// Base is a temporary wrapper around BaseEn and BaseRu, meant to facilitate the migration from qtpl.
|
||||||
|
// TODO: get rid of this
|
||||||
func Base(meta Meta, title, body string, headElements ...string) string {
|
func Base(meta Meta, title, body string, headElements ...string) string {
|
||||||
var w strings.Builder
|
var w strings.Builder
|
||||||
meta.W = &w
|
meta.W = &w
|
||||||
|
Loading…
Reference in New Issue
Block a user