feat: support emojis on pages

Define an emoji in the markdown files and get them published as page
emoji icons.
This commit is contained in:
Joris Conijn
2025-02-14 17:10:45 +01:00
committed by Manuel Rüger
parent f0b4d460a9
commit 1a0e452910
4 changed files with 37 additions and 16 deletions

View File

@@ -537,7 +537,7 @@ func processFile(
)
versionPattern := `\[v([a-f0-9]{40})]$`
re := regexp.MustCompile(versionPattern)
re := regexp.MustCompile(versionPattern)
matches := re.FindStringSubmatch(target.Version.Message)
@@ -563,9 +563,8 @@ func processFile(
finalVersionMessage = cCtx.String("version-message")
}
if shouldUpdatePage {
err = api.UpdatePage(target, html, cCtx.Bool("minor-edit"), finalVersionMessage, meta.Labels, meta.ContentAppearance)
err = api.UpdatePage(target, html, cCtx.Bool("minor-edit"), finalVersionMessage, meta.Labels, meta.ContentAppearance, meta.Emoji)
if err != nil {
log.Fatal(err)
}