mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
0ed6df503e
Former-commit-id: 512f2d3da4804173fe57742e0a50105b6daa9b6a [formerly cb018be7957dea25f4e5636a6c86f6344bb21223] [formerly 8e9ef6e466dc6ea6c300583a944a2223721c08cc [formerly 4bb4f501e75a83dab88c9520bec89b8d0b61bc37 [formerly63982d402d
]]] Former-commit-id: 1491644778252a8edc2a7056d9cfb997d412cd8d [formerly 808628c9d571e2960fce0e5064d237c23336d9df] Former-commit-id: d54ab5932876063015895ed2a57f9e598ac7d27b Former-commit-id:3cf2ef8b12
60 lines
1.5 KiB
Cheetah
60 lines
1.5 KiB
Cheetah
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<title>{{ .Title }}</title>
|
|
|
|
{{ template "header" }}
|
|
|
|
<link rel="stylesheet" type="text/css" href="/static/css/view.css">
|
|
<link rel="stylesheet" type="text/css" href="/static/css/katex.min.css">
|
|
<script src="/static/js/katex.min.js"></script>
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
<!-- Fixed navbar -->
|
|
<nav class="navbar navbar-default navbar-fixed-bottom">
|
|
<div class="container">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="/">Cowyo</a>
|
|
</div>
|
|
<div id="navbar" class="collapse navbar-collapse">
|
|
<ul class="nav navbar-nav">
|
|
<li><a href="/{{ .Title }}">Edit</a></li>
|
|
<li class="active"><a href="/{{ .Title }}/view">View</a></li>
|
|
<li><a href="/{{ .Title }}/list">List</a></li>
|
|
<li><a href="/about/view">About</a></li>
|
|
</ul>
|
|
</div>
|
|
<!--/.nav-collapse -->
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="yue">
|
|
{{ .Body }}
|
|
</div>
|
|
|
|
|
|
<script>
|
|
$( document ).ready(function() {
|
|
var tex = document.getElementsByClassName("tex");
|
|
Array.prototype.forEach.call(tex, function(el) {
|
|
katex.render(el.getAttribute("data-expr"), el);
|
|
});
|
|
|
|
});
|
|
|
|
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|