2023-04-02 20:06:15 +00:00
|
|
|
<!-- _layout.html -->
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>TCP.WIKI</title>
|
|
|
|
<link rel="stylesheet" href="/assets/main.css">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
|
|
|
<h1>TCP.WIKI</h1>
|
|
|
|
<nav>
|
|
|
|
<ul>
|
|
|
|
<li><a href="/">Home</a></li>
|
2023-04-02 20:17:56 +00:00
|
|
|
<!-- Add more links to your menubar here -->
|
|
|
|
<li><a href="/what">What</a></li>
|
|
|
|
<li><a href="/who">Who</a></li>
|
2023-04-02 20:06:15 +00:00
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</header>
|
2023-04-02 20:17:56 +00:00
|
|
|
<main>
|
2023-04-12 09:48:12 +00:00
|
|
|
<div class="content">
|
|
|
|
{{ .Content }}
|
|
|
|
</div>
|
|
|
|
<hr>
|
2024-02-15 23:28:01 +00:00
|
|
|
{{ if .UseGit }}
|
2023-04-15 23:16:27 +00:00
|
|
|
<div class="page-info">
|
2023-04-13 01:35:10 +00:00
|
|
|
{{- if eq .Author .LastModifier -}}
|
|
|
|
Authored: {{ .Author }} @ {{ .AuthoredDate.Format "2006/01/02" }}
|
|
|
|
{{- else -}}
|
|
|
|
Authored: {{ .Author }} @ {{ .AuthoredDate.Format "2006/01/02" }} - Modified: {{ .LastModifier }} @ {{ .LastModifiedDate.Format "2006/01/02" }}
|
|
|
|
{{- end -}}
|
2024-02-15 23:28:01 +00:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
2023-04-12 09:48:12 +00:00
|
|
|
<div class="comments">
|
|
|
|
<h2>Comments</h2>
|
|
|
|
{{ range .Comments }}
|
|
|
|
<div class="comment">
|
2023-04-12 12:29:36 +00:00
|
|
|
<p>{{ .Content }}</p>
|
|
|
|
<p><small>{{ .Author }} at {{ .Date }}</small></p>
|
2023-04-12 09:48:12 +00:00
|
|
|
</div>
|
|
|
|
{{ end }}
|
2024-02-10 02:27:04 +00:00
|
|
|
</div>
|
|
|
|
|
2023-04-02 20:17:56 +00:00
|
|
|
</main>
|
2023-04-12 09:48:12 +00:00
|
|
|
<form method="POST" action="/submit_comment">
|
2023-04-12 12:29:36 +00:00
|
|
|
<input type="hidden" name="path" value="{{ .Path }}">
|
2023-04-12 09:48:12 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="author">Name:</label>
|
|
|
|
<input type="text" id="author" name="author">
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="body">Comment:</label>
|
2023-04-12 12:29:36 +00:00
|
|
|
<textarea id="content" name="content"></textarea>
|
2023-04-12 09:48:12 +00:00
|
|
|
</div>
|
|
|
|
<button type="submit">Submit</button>
|
|
|
|
</form>
|
2024-02-10 02:27:04 +00:00
|
|
|
<div class="sidebar">
|
|
|
|
<h2>Pages</h2>
|
|
|
|
<ul>
|
|
|
|
{{ range .Pages }}
|
|
|
|
<li><a href="/{{ . }}">{{ . }}</a></li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2023-04-02 20:06:15 +00:00
|
|
|
</body>
|
|
|
|
</html>
|