mirror of
https://github.com/schollz/cowyo.git
synced 2023-08-10 21:13:00 +03:00
9e655c497b
Former-commit-id: 68a23d84e8fe85c29b6acba7e54fda26b06c81a9 [formerly c437e34b2c74ca9295a1eefdbcd3b2856f9470b6] [formerly 70504642b2871a600d5150081c13b3fc8c14e578 [formerly 2fe84ff14842a8e8670560e7ec0d857a7a18997b [formerlyf6cb433106
]]] Former-commit-id: b23ed0e48e0e8db9786bf91a101cf28c6012fd82 [formerly f34f0ad3994ebe5b00cceb4d2052e4b1c55b7796] Former-commit-id: 2c5902a86996f9287c0890b32945987085428ef7 Former-commit-id:529e6c5918
75 lines
2.3 KiB
Cheetah
75 lines
2.3 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="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" class="active">View <span class="caret"></span></a>
|
|
<ul class="dropdown-menu">
|
|
<li class="dropdown-header">Previous versions</li>
|
|
<li><a href="/{{ .Title }}/view?version=0">First</a></li>
|
|
{{ range .Versions }}
|
|
<li><a href="/{{ $.Title }}/view?version={{ .VersionNum }}">{{ .VersionDate }}</a></li>
|
|
{{ end }}
|
|
<li><a href="/{{ .Title }}/view">Current</a></li>
|
|
</ul>
|
|
</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 texi = document.getElementsByClassName("texi");
|
|
Array.prototype.forEach.call(texi, function(el) {
|
|
katex.render(el.getAttribute("data-expr"), el, { displayMode: false });
|
|
});
|
|
|
|
var texp = document.getElementsByClassName("texp");
|
|
Array.prototype.forEach.call(texp, function(el) {
|
|
katex.render(el.getAttribute("data-expr"), el, { displayMode: true });
|
|
});
|
|
|
|
});
|
|
|
|
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|