update
This commit is contained in:
+18
-19
@@ -1,21 +1,20 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<!-- <link rel="shortcut icon" href="/favicon.ico"/> -->
|
||||
<title>{{ .title }}</title>
|
||||
<!-- <link rel="stylesheet" href="/css/style.css"> -->
|
||||
|
||||
{{define "article.html"}}
|
||||
{{template "base.html" .}}
|
||||
{{end}}
|
||||
|
||||
{{define "ext_css"}}
|
||||
<link rel="stylesheet" href="/statics/css/github-markdown-light.css">
|
||||
<body>
|
||||
<div>
|
||||
<a href="/"><-首页-></a>
|
||||
</div>
|
||||
<div class="markdown-body">
|
||||
{{ .content }}
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
{{define "body"}}
|
||||
<div>
|
||||
<a href="/"><-首页-></a>
|
||||
</div>
|
||||
<div class="markdown-body">
|
||||
{{ .content }}
|
||||
</div>
|
||||
{{end}}
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
+13
-20
@@ -1,21 +1,14 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<!-- <link rel="shortcut icon" href="/favicon.ico"/> -->
|
||||
<title>Home</title>
|
||||
<!-- <link rel="stylesheet" href="/css/style.css"> -->
|
||||
<body>
|
||||
<div>总数: {{ .total }}</div>
|
||||
<ul>
|
||||
{{range .list}}
|
||||
<li>
|
||||
<a href=" /article/{{.Id }}"> {{.Conf.Title}}</a>
|
||||
</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
{{define "index.html"}}
|
||||
{{template "base.html" .}}
|
||||
{{end}}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
{{define "body"}}
|
||||
<div>总数: {{ .total }}</div>
|
||||
<ul>
|
||||
{{range .list}}
|
||||
<li>
|
||||
<a href=" /article/{{.Id }}"> {{.Conf.Title}}</a>
|
||||
</li>
|
||||
{{end}}
|
||||
</ul>
|
||||
{{end}}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<!-- <link rel="shortcut icon" href="/favicon.ico"/> -->
|
||||
<title>{{.title}}</title>
|
||||
{{block "ext_css" .}}{{end}}
|
||||
<!-- <link rel="stylesheet" href="/css/style.css"> -->
|
||||
<body>
|
||||
{{block "body" .}} {{end}}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user