restructuring; setting up basic webserver and templating

This commit is contained in:
2024-12-30 15:45:40 +01:00
parent e3fcd62159
commit db91ebeece
8 changed files with 66 additions and 37 deletions

14
templates/article.html Normal file
View File

@@ -0,0 +1,14 @@
{{ define "content" }}
{{ range . }}
<div class="card" style="">
<div class="card-body">
<h5 class="card-title">{{ .Title }}</h5>
<h6 class="card-subtitle mb-2 text-body-secondary">{{ .Author }}</h6>
<p class="card-text">{{ .Content }}</p>
<a href="{{ .SourceUrl }}" class="card-link">Link</a>
</div>
</div>
{{ end }}
{{ end }}