You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.7 KiB
HTML
68 lines
1.7 KiB
HTML
{{template "base" .}}
|
|
|
|
{{define "title"}}News • PHC{{end}}
|
|
|
|
{{define "body"}}
|
|
<section>
|
|
<h2>
|
|
Feed RSS
|
|
<a href="/news/rss"> <i class="fa-solid fa-rss"></i></a>
|
|
</h2>
|
|
<h1>
|
|
<i class="far fa-newspaper"></i>
|
|
Notizie Importanti
|
|
</h1>
|
|
<div class="card-list">
|
|
{{ range .Articles }}
|
|
{{ if .HasTag "important" }}
|
|
<div class="card">
|
|
<div class="title">
|
|
<a href="/news/{{ .Id }}">
|
|
{{ .Title }}
|
|
</a>
|
|
</div>
|
|
<div class="date">{{ .PublishDate.Format "2006/01/02" }}</div>
|
|
<div class="description">
|
|
<p>{{ .Description }}</p>
|
|
</div>
|
|
<div class="tags">
|
|
{{ range .Tags }}
|
|
<span class="tag">{{ . }}</span>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
</section>
|
|
|
|
<section>
|
|
<h2>
|
|
<i class="fas fa-history"></i>
|
|
Archivio notizie
|
|
</h2>
|
|
<div class="card-list">
|
|
{{ range .Articles }}
|
|
{{ if not (.HasTag "important") }}
|
|
<div class="card">
|
|
<div class="title">
|
|
<a href="/news/{{ .Id }}">
|
|
{{ .Title }}
|
|
</a>
|
|
</div>
|
|
<div class="date">{{ .PublishDate.Format "2006/01/02" }}</div>
|
|
<div class="description">
|
|
<p>{{ .Description }}</p>
|
|
</div>
|
|
<div class="tags">
|
|
{{ range .Tags }}
|
|
<span class="tag">{{ . }}</span>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
</section>
|
|
{{end}}
|