summaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorPhyscik <mynameisgennadiy@vk.com>2025-12-26 20:08:28 +0500
committerPhyscik <mynameisgennadiy@vk.com>2025-12-26 20:08:28 +0500
commitfb2adbb65087252c0fd0392c8fa8f0218bffa22b (patch)
tree609f9b0604179d29613735e76d70df30357315d8 /templates/index.html
parent424c95749a12b57caeba7c3ecd5034daacf5a651 (diff)
Articles idnexing
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html16
1 files changed, 11 insertions, 5 deletions
diff --git a/templates/index.html b/templates/index.html
index 250f509..16377d2 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -4,26 +4,32 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Space+Grotesk:wght@300..700&display=swap" rel="stylesheet">
- <link href="static/common.css" rel="stylesheet" />
- <script src="static/common.js"></script>
+ <link href="/static/common.css" rel="stylesheet" />
+ <script src="/static/common.js"></script>
</head>
<body class="dark">
<div id="menu" class="dark">
<div class="control">
<a href="/">
- <img id="homeIcon" src="static/home.svg" height="40px" width="40px">
+ <img id="homeIcon" src="/static/home.svg" height="40px" width="40px">
</a>
<button class="toggleBtn" onclick="ToggleMode()">
- <img id="toggleIcon" src="static/toggle_dark.svg" height="48px" width="48px">
+ <img id="toggleIcon" src="/static/toggle_dark.svg" height="48px" width="48px">
</button>
</div>
<h2> Recent articles </h2>
<ul class="articleList dark">
{{ range .LastArticles}}
- <li> <a href={{ .Link }}> {{ .DisplayName }} </a> </li>
+ <li> <a href="/articles/{{ .URL }}"> {{ .DisplayName }} </a> </li>
{{ end }}
</ul>
<hr />
+ <h2> Related tags </h2>
+ <ul class="articleList dark">
+ {{ range .Tags}}
+ <li> <a> {{ .Name }} </a> </li>
+ {{ end }}
+ </ul>
</div>
<div id="content" class="dark">
{{.Content}}