fix formatting
This commit is contained in:
parent
c19094ca90
commit
c8128de547
2 changed files with 6 additions and 2 deletions
|
@ -10,7 +10,11 @@ import (
|
||||||
func (fileContent *FileContent) FormatContent() string {
|
func (fileContent *FileContent) FormatContent() string {
|
||||||
content := fileContent.Content
|
content := fileContent.Content
|
||||||
badChars := make(map[string]string)
|
badChars := make(map[string]string)
|
||||||
badChars["'"] = "'"
|
badChars["ā"] = "ā"
|
||||||
|
badChars["ē"] = "ē"
|
||||||
|
badChars["ī"] = "ī"
|
||||||
|
badChars["ō"] = "ō"
|
||||||
|
badChars["ū"] = "ū"
|
||||||
for k, v := range badChars {
|
for k, v := range badChars {
|
||||||
content = strings.ReplaceAll(content, k, v)
|
content = strings.ReplaceAll(content, k, v)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% import "macros.tpl" category_url, tag_url, text_url, logo %}
|
{% import "macros.tpl" category_url, tag_url, text_url, logo %}
|
||||||
# {{ logo() }} Arna alkierios :: {{ file.File.Description }}
|
# {{ logo() }} Arna alkierios :: {{ file.File.Description }}
|
||||||
|
|
||||||
{{ file.FormatContent() }}
|
{{ file.FormatContent()|safe }}
|
||||||
|
|
||||||
🌙 {{ file.File.Created}}
|
🌙 {{ file.File.Created}}
|
||||||
{{ file.File.Copyright }}
|
{{ file.File.Copyright }}
|
||||||
|
|
Loading…
Reference in a new issue