templates test

This commit is contained in:
张超
2023-12-20 16:50:05 +08:00
parent 4129bf5d3f
commit 9b9adb5d0b
7 changed files with 112 additions and 0 deletions

15
templates/index.tmpl Normal file
View File

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<title>My Blog</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>Welcome to my blog!</h1>
<p>This is a simple blog written using Go and Gin framework.</p>
<a href="/page/1">Go语言入门</a><br>
<a href="/page/2">Gin框架入门</a><br>
<a href="/page/3">Web开发基础</a><br>
</body>
</html>