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.
63 lines
1.6 KiB
HTML
63 lines
1.6 KiB
HTML
3 years ago
|
{{template "base" .}}
|
||
|
|
||
3 years ago
|
{{define "title"}}News • PHC{{end}}
|
||
3 years ago
|
|
||
|
{{define "body"}}
|
||
|
<section>
|
||
2 years ago
|
<h1>
|
||
3 years ago
|
<i class="far fa-newspaper"></i>
|
||
|
Notizie Importanti
|
||
2 years ago
|
</h1>
|
||
3 years ago
|
<div class="card-list">
|
||
3 years ago
|
{{ range .Articles }}
|
||
3 years ago
|
{{ if .HasTag "important" }}
|
||
3 years ago
|
<div class="card">
|
||
|
<div class="title">
|
||
3 years ago
|
<a href="/news/{{ .Id }}">
|
||
|
{{ .Title }}
|
||
3 years ago
|
</a>
|
||
|
</div>
|
||
3 years ago
|
<div class="date">{{ .PublishDate.Format "2006/01/02" }}</div>
|
||
2 years ago
|
<div class="description">
|
||
|
<p>{{ .Description }}</p>
|
||
|
</div>
|
||
3 years ago
|
<div class="tags">
|
||
|
{{ range .Tags }}
|
||
|
<span class="tag">{{ . }}</span>
|
||
|
{{ end }}
|
||
|
</div>
|
||
3 years ago
|
</div>
|
||
3 years ago
|
{{ end }}
|
||
|
{{ end }}
|
||
3 years ago
|
</div>
|
||
|
</section>
|
||
|
|
||
|
<section>
|
||
3 years ago
|
<h2>
|
||
|
<i class="fas fa-history"></i>
|
||
|
Archivio notizie
|
||
|
</h2>
|
||
3 years ago
|
<div class="card-list">
|
||
3 years ago
|
{{ range .Articles }}
|
||
3 years ago
|
{{ if not (.HasTag "important") }}
|
||
3 years ago
|
<div class="card">
|
||
|
<div class="title">
|
||
3 years ago
|
<a href="/news/{{ .Id }}">
|
||
|
{{ .Title }}
|
||
|
</a>
|
||
3 years ago
|
</div>
|
||
3 years ago
|
<div class="date">{{ .PublishDate.Format "2006/01/02" }}</div>
|
||
2 years ago
|
<div class="description">
|
||
|
<p>{{ .Description }}</p>
|
||
|
</div>
|
||
3 years ago
|
<div class="tags">
|
||
|
{{ range .Tags }}
|
||
|
<span class="tag">{{ . }}</span>
|
||
|
{{ end }}
|
||
|
</div>
|
||
3 years ago
|
</div>
|
||
3 years ago
|
{{ end }}
|
||
|
{{ end }}
|
||
3 years ago
|
</div>
|
||
|
</section>
|
||
|
{{end}}
|