diy hrt
This commit is contained in:
parent
bcf97a88e0
commit
f23e48700b
@ -17,10 +17,12 @@
|
|||||||
<input name="{{ .SearchInputName }}" type="text" class="grid-item" class="search" placeholder="{{ .SearchPlaceholder }}" />
|
<input name="{{ .SearchInputName }}" type="text" class="grid-item" class="search" placeholder="{{ .SearchPlaceholder }}" />
|
||||||
|
|
||||||
<div class="store-cards">
|
<div class="store-cards">
|
||||||
<a target="_blank" href="#" class="card">
|
{{range $Store := .Stores }}
|
||||||
<img class="card-image" src="assets/girl_juice.png"/>
|
<a target="_blank" href="{{ $Store.Url }}" class="card">
|
||||||
<b>name</b>
|
<h3>{{ $Store.Name }}</h3>
|
||||||
|
<p>{{ $Store.Description }}</p>
|
||||||
</a>
|
</a>
|
||||||
|
{{- end }}
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
package rendering
|
package rendering
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
|
|
||||||
"gitea.elara.ws/Hazel/transfem-startpage/internal/diyhrt"
|
"gitea.elara.ws/Hazel/transfem-startpage/internal/diyhrt"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -42,6 +44,7 @@ func (rc *RenderingConfig) LoadDiyHrt(listings []diyhrt.Listing) {
|
|||||||
stores := make([]diyhrt.Store, 0)
|
stores := make([]diyhrt.Store, 0)
|
||||||
|
|
||||||
for _, listing := range listings {
|
for _, listing := range listings {
|
||||||
|
fmt.Println(listing)
|
||||||
if _, ok := existingStores[listing.Store.Id]; ok {
|
if _, ok := existingStores[listing.Store.Id]; ok {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
6
main.go
6
main.go
@ -41,7 +41,11 @@ func getIndex(c echo.Context) error {
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
fmt.Println("running transfem startpage")
|
fmt.Println("running transfem startpage")
|
||||||
FetchDiyHrt()
|
err := FetchDiyHrt()
|
||||||
|
if err != nil {
|
||||||
|
fmt.Println(err)
|
||||||
|
}
|
||||||
|
fmt.Println(CurrentRenderingConfig.Stores)
|
||||||
|
|
||||||
e := echo.New()
|
e := echo.New()
|
||||||
e.Static("/assets", "frontend/assets")
|
e.Static("/assets", "frontend/assets")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user