add sorting; implement sort criteria in default repo ; adding html header
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
{{ define "content" }}
|
||||
|
||||
{{ range . }}
|
||||
<div class="card" style="">
|
||||
<div class="card p-2 m-4" style="">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">{{ .Title }}</h5>
|
||||
<h6 class="card-subtitle mb-2 text-body-secondary">{{ .Author }}</h6>
|
||||
<h6 class="card-subtitle mb-2 text-body-secondary">{{ .PublishDate }}</h6>
|
||||
<p class="card-text">{{ .Content }}</p>
|
||||
<a href="{{ .SourceUrl }}" class="card-link">Link</a>
|
||||
</div>
|
||||
|
||||
@@ -4,6 +4,16 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
||||
<body>
|
||||
|
||||
<nav class="navbar sticky-top bg-dark">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand">crowsnest</a>
|
||||
<form class="d-flex" role="search">
|
||||
<input class="form-control me-2" type="search" placeholder="Suche" aria-label="Suche">
|
||||
<button class="btn btn-outline-success" type="submit">Suchen</button>
|
||||
</form>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{{ template "content" . }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user