-
Notifications
You must be signed in to change notification settings - Fork 1
/
post.gohtml
35 lines (35 loc) · 1.29 KB
/
post.gohtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com?plugins=typography"></script>
<title>{{.Title}} | Jon's Blog</title>
</head>
<body>
<nav class="flex items-center justify-between bg-gray-800 p-6 mb-4">
<div class="flex items-center flex-shrink-0 text-white mr-6">
<span class="font-semibold text-xl tracking-tight">Jon's Blog</span>
</div>
<div class="block">
<ul class="flex space-x-4">
<li><a href="#" class="text-gray-300 hover:bg-gray-700 px-3 py-2 rounded">Home</a></li>
<li><a href="#" class="text-gray-300 hover:bg-gray-700 px-3 py-2 rounded">About</a></li>
<li><a href="#" class="text-gray-300 hover:bg-gray-700 px-3 py-2 rounded">Blog</a></li>
<li><a href="#" class="text-gray-300 hover:bg-gray-700 px-3 py-2 rounded">Contact</a></li>
</ul>
</div>
</nav>
<div class="container mx-auto">
<h1 class="text-4xl font-bold text-center">{{.Title}}</h1>
{{with .Author}}
<div class="text-center mt-4">
<p class="text-gray-500">Author: <a href="mailto:{{.Email}}">{{.Name}}</a></p>
</div>
{{end}}
<div class="prose max-w-full">
{{.Content}}
</div>
</div>
</body>
</html>