Polish the list template
This commit is contained in:
parent
551dcf5905
commit
e4f7ff6218
2 changed files with 9 additions and 7 deletions
|
|
@ -10,10 +10,10 @@ base = "base.tmpl.html"
|
|||
[static]
|
||||
dir = "/var/www/gonotes/static"
|
||||
|
||||
# These are not for changing!
|
||||
root = "/static/"
|
||||
assets = [
|
||||
{ path = "css/bootstrap.min.css", url = "https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" },
|
||||
{ path = "css/tiny-mde.min.css", url = "https://unpkg.com/tiny-markdown-editor/dist/tiny-mde.min.css" },
|
||||
{ path = "js/tiny-mde.min.js", url = "https://unpkg.com/tiny-markdown-editor/dist/tiny-mde.min.js" },
|
||||
{ path = "icons/pencil-square.svg", url = "https://raw.githubusercontent.com/twbs/icons/refs/heads/main/icons/pencil-square.svg" },
|
||||
]
|
||||
# These are not for changing!
|
||||
|
|
|
|||
|
|
@ -1,10 +1,12 @@
|
|||
{{define "title"}}All Notes{{end}}
|
||||
{{define "main"}}
|
||||
<ul>
|
||||
<div class="list-group list-group-flush">
|
||||
{{range $title := .titles}}
|
||||
<li>
|
||||
<a href="{{$title}}/">{{$title}}</a>
|
||||
</li>
|
||||
<a class="list-group-item list-group-item-action d-flex justify-content-between"
|
||||
href="{{$title}}/">
|
||||
<span>{{$title}}</span>
|
||||
<img src="/static/icons/pencil-square.svg" alt="Edit">
|
||||
</a>
|
||||
{{end}}
|
||||
</ul>
|
||||
</div>
|
||||
{{end}}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue