starting to build out how to view articles
This commit is contained in:
parent
0183bd43e5
commit
8d83d6f545
@ -8,8 +8,20 @@ import (
|
||||
templ List(model models.ListArticlesViewModel) {
|
||||
@layout.WithTemplate() {
|
||||
for _, item := range model.Items {
|
||||
{ item.Title }
|
||||
}
|
||||
<div>hi </div>
|
||||
<div class="card">
|
||||
<div class="card-image">
|
||||
<figure class="is-4by3">
|
||||
<img src={ item.Thumbnail }/>
|
||||
</figure>
|
||||
</div>
|
||||
<div class="card-content">
|
||||
<div class="media">
|
||||
<div class="media-content">
|
||||
<a href={ templ.SafeURL(item.Url) }>{ item.Title }</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user