2016-02-07 16:45:42 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<title>{{ .Title }}</title>
|
2016-02-07 19:05:38 +03:00
|
|
|
|
|
|
|
{{ template "header" }}
|
|
|
|
|
2016-02-07 16:45:42 +03:00
|
|
|
<link rel="stylesheet" type="text/css" href="/static/css/view.css">
|
2016-02-07 21:21:24 +03:00
|
|
|
<link rel="stylesheet" type="text/css" href="/static/css/katex.min.css">
|
|
|
|
<script src="/static/js/katex.min.js"></script>
|
2016-02-07 16:45:42 +03:00
|
|
|
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2016-02-07 19:05:38 +03:00
|
|
|
<!-- 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>
|
|
|
|
|
2016-02-07 16:45:42 +03:00
|
|
|
<div class="yue">
|
|
|
|
{{ .Body }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2016-02-07 21:21:24 +03:00
|
|
|
<script>
|
|
|
|
$( document ).ready(function() {
|
2016-02-07 21:38:39 +03:00
|
|
|
var texi = document.getElementsByClassName("texi");
|
|
|
|
Array.prototype.forEach.call(texi, function(el) {
|
2016-02-07 21:49:46 +03:00
|
|
|
katex.render(el.getAttribute("data-expr"), el, { displayMode: false });
|
2016-02-07 21:38:39 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
var texp = document.getElementsByClassName("texp");
|
|
|
|
Array.prototype.forEach.call(texp, function(el) {
|
2016-02-07 21:49:46 +03:00
|
|
|
katex.render(el.getAttribute("data-expr"), el, { displayMode: true });
|
2016-02-07 21:21:24 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
2016-02-07 16:45:42 +03:00
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|