diff --git a/formatter.go b/formatter.go index ee33160..648ab06 100644 --- a/formatter.go +++ b/formatter.go @@ -10,7 +10,11 @@ import ( func (fileContent *FileContent) FormatContent() string { content := fileContent.Content badChars := make(map[string]string) - badChars["'"] = "'" + badChars["ā"] = "ā" + badChars["ē"] = "ē" + badChars["ī"] = "ī" + badChars["ō"] = "ō" + badChars["ū"] = "ū" for k, v := range badChars { content = strings.ReplaceAll(content, k, v) } diff --git a/templates/page.gmi b/templates/page.gmi index 7eb04f9..b861124 100644 --- a/templates/page.gmi +++ b/templates/page.gmi @@ -1,7 +1,7 @@ {% import "macros.tpl" category_url, tag_url, text_url, logo %} # {{ logo() }} Arna alkierios :: {{ file.File.Description }} -{{ file.FormatContent() }} +{{ file.FormatContent()|safe }} 🌙 {{ file.File.Created}} {{ file.File.Copyright }}