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>

12
templates/page1.tmpl Normal file
View File

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<title>Page 1</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>Page 1</h1>
<p>This is the content of page 1.</p>
</body>
</html>

12
templates/page2 copy.tmpl Normal file
View File

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<title>Page 2copy</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>Page 2</h1>
<p>This is the content of page 2.这个是page2的copy版本</p>
</body>
</html>

12
templates/page2.tmpl Normal file
View File

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<title>Page 2</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>Page 2</h1>
<p>This is the content of page 2.再加几个汉字</p>
</body>
</html>

12
templates/page3.tmpl Normal file
View File

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<title>Page 3</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<h1>Page 3</h1>
<p>This is the content of page 3.</p>
</body>
</html>