html模板完结
This commit is contained in:
20
templates/pages/test.html
Normal file
20
templates/pages/test.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{{/* 定义index页面模板 */}}
|
||||
{{define "pages/test"}}
|
||||
<!doctype html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{.title}}</title>
|
||||
|
||||
<!-- 组件特定样式块 -->
|
||||
<link rel="stylesheet" href="/static/navbar.css">
|
||||
<link rel="stylesheet" href="/static/footer.css">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h1>1111</h1>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user