Generic attributes (#120)

* fix #117: use a generic attribute parser, still support fixed attrs
This commit is contained in:
T.v.Dein
2025-02-10 18:20:54 +01:00
committed by GitHub
parent 09948a6b39
commit 46be48af38
8 changed files with 118 additions and 45 deletions

View File

@@ -283,6 +283,8 @@ var adsrc = []AdConfig{
Text: "Thing to sale",
Slug: "second-ad",
Condition: "Gut",
Color: "Lila",
Type: "Schoki",
Created: "Yesterday",
Images: []string{"t/1.jpg", "t/2.jpg"},
},
@@ -294,6 +296,8 @@ var adsrc = []AdConfig{
Text: "Thing to sale",
Slug: "third-ad",
Condition: "In Ordnung",
Color: "Blau",
Type: "Auto",
Created: "Yesterday",
Images: []string{"t/1.jpg", "t/2.jpg"},
},
@@ -305,6 +309,8 @@ var adsrc = []AdConfig{
Text: "Thing to sale",
Slug: "fourth-ad",
Condition: "Neu",
Color: "Rot",
Type: "Spielzeut",
Created: "Yesterday",
Images: []string{"t/1.jpg", "t/2.jpg"},
},
@@ -316,6 +322,8 @@ var adsrc = []AdConfig{
Text: "Thing to sale",
Slug: "fifth-ad",
Condition: "Sehr Gut",
Color: "Braun",
Type: "Parteibuch",
Created: "Yesterday",
Images: []string{"t/1.jpg", "t/2.jpg"},
},
@@ -327,6 +335,8 @@ var adsrc = []AdConfig{
Text: "Thing to sale",
Slug: "sixth-ad",
Condition: "Sehr Gut",
Color: "Silber",
Type: "Ring",
Created: "Yesterday",
Images: []string{"t/1.jpg", "t/2.jpg"},
},
@@ -338,6 +348,8 @@ var adsrc = []AdConfig{
Text: "Thing to sale",
Slug: "seventh-ad",
Condition: "Sehr Gut",
Color: "Gelpb",
Type: "Schmuck",
Created: "Yesterday",
Images: []string{"t/1.png", "t/1.gif", "t/1.webp", "t/1.jpg"},
},