通用模板
This commit is contained in:
19
web/templates/base/footer.html.tmpl
Normal file
19
web/templates/base/footer.html.tmpl
Normal file
@@ -0,0 +1,19 @@
|
||||
<!-- <!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel="stylesheet" href="/statics/css/bootstrap.min.css" />
|
||||
<title>HLS流媒体</title>
|
||||
{{block "css" .}}{{end}}
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper"> -->
|
||||
{{define "footer" }}
|
||||
</div>
|
||||
<script src="/statics/js/jquery.slim.min.js"></script>
|
||||
<script src="/statics/js/bootstrap.bundle.min.js"></script>
|
||||
{{block "js" .}}{{end}}
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
||||
32
web/templates/base/header.html.tmpl
Normal file
32
web/templates/base/header.html.tmpl
Normal file
@@ -0,0 +1,32 @@
|
||||
{{define "header" }}
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel="stylesheet" href="/statics/css/bootstrap.min.css" />
|
||||
<title>HLS流媒体</title>
|
||||
{{block "css" .}}{{end}}
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrapper">
|
||||
<nav class="navbar navbar-light bg-light">
|
||||
<a class="navbar-brand" href="/">
|
||||
<img src="/statics/img/logo.png" width="30" height="30" class="d-inline-block align-top" alt="HLS流媒体">
|
||||
HLS流媒体
|
||||
</a>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="/login">登录</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/register">注册</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
{{end}}
|
||||
<!-- </div>
|
||||
<script src="/statics/js/jquery.slim.min.js"></script>
|
||||
<script src="/statics/js/bootstrap.bundle.min.js"></script>
|
||||
</body>
|
||||
</html> -->
|
||||
Reference in New Issue
Block a user