First version of web UI

This commit is contained in:
Senad Uka
2022-02-13 05:12:49 +01:00
parent a040320827
commit f6e90deebd
9 changed files with 274 additions and 34 deletions

16
web/data/articles.html Normal file
View File

@@ -0,0 +1,16 @@
{{define "articlesHTML"}}
<ol reversed>
{{range .articles}}
<li>
<div class="article_content">
<a href="/{{.ID}}/{{.Slug}}">
{{.Title}}</a></div>
<div class="timestamp">{{.SourceName}} - {{ .FormatedCreatedAt }}</div>
</li>
<br><br>
{{else}}
Nema članaka za izabrani datum.
{{end}}
</ol>
{{end}}