Google-Bescheibungen aller Seiten

This commit is contained in:
Simon Martens
2025-03-02 14:19:00 +01:00
parent 5402dc5329
commit a5abdf50d3
27 changed files with 103 additions and 11 deletions

View File

@@ -8,6 +8,8 @@ import (
const START = `<p>Martin Sietzen und Dr. Jakob Br&uuml;ssermann<br>Theodor-Springmann-Stiftung<br>Hirschgasse 2 <br><br>69120 Heidelberg<br><a href="mailto:info@musenalm.de">info@musenalm.de</a></p>`
const BESCHREIBUNG = "Musenalm: Verzeichnis deutschsprachiger Almanache des 18. und 19. Jahrhunderts. Kontakt zur Redaktion."
func init() {
m.Register(func(app core.App) error {
collection, err := app.FindCollectionByNameOrId(
@@ -20,6 +22,7 @@ func init() {
record := pagemodels.NewTextPage(core.NewRecord(collection))
record.SetTitle("Kontakt")
record.SetText(START)
record.SetDescription(BESCHREIBUNG)
if err := app.Save(record); err != nil {
app.Logger().Error("Failed to save record", "error", err, "record", record)