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 }}" />
|
||||
|
||||
<div class="store-cards">
|
||||
<a target="_blank" href="#" class="card">
|
||||
<img class="card-image" src="assets/girl_juice.png"/>
|
||||
<b>name</b>
|
||||
{{range $Store := .Stores }}
|
||||
<a target="_blank" href="{{ $Store.Url }}" class="card">
|
||||
<h3>{{ $Store.Name }}</h3>
|
||||
<p>{{ $Store.Description }}</p>
|
||||
</a>
|
||||
{{- end }}
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
@ -1,6 +1,8 @@
|
||||
package rendering
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"gitea.elara.ws/Hazel/transfem-startpage/internal/diyhrt"
|
||||
)
|
||||
|
||||
@ -42,6 +44,7 @@ func (rc *RenderingConfig) LoadDiyHrt(listings []diyhrt.Listing) {
|
||||
stores := make([]diyhrt.Store, 0)
|
||||
|
||||
for _, listing := range listings {
|
||||
fmt.Println(listing)
|
||||
if _, ok := existingStores[listing.Store.Id]; ok {
|
||||
continue
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user