Move websitelayout to website.

This commit is contained in:
Aldo Cortesi 2015-05-23 12:36:52 +12:00
parent 3161a5be22
commit b91999507e
2 changed files with 1 additions and 58 deletions

View File

@ -1,56 +0,0 @@
<div class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button"
class="navbar-toggle collapsed"
data-toggle="collapse"
data-target="#bs-example-navbar-collapse-1"
>
<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="@!urlTo("/index.html")!@">mitmproxy</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li> <a href="@!top!@/index.html">home</a> </li>
<li class="active"><a href="@!top!@/doc/index.html">docs</a></li>
<li><a href="@!top!@/about.html">about</a></li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-3">
$!navbar!$
</div>
<div class="col-md-9">
<div class="page-header">
<h1>@!this.title!@</h1>
</div>
$!body!$
</div>
</div>
</div>
<div class="container">
<footer>
<hr>
<p>Copyright 2014 Aldo Cortesi</p>
</footer>
</div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-4150636-13']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

View File

@ -15,10 +15,9 @@ ns.VERSION = version.VERSION
if ns.options.website: if ns.options.website:
ns.idxpath = "doc/index.html" ns.idxpath = "doc/index.html"
this.layout = countershape.Layout("_websitelayout.html")
else: else:
ns.idxpath = "index.html" ns.idxpath = "index.html"
this.layout = countershape.Layout("_layout.html") this.layout = countershape.Layout("_layout.html")
ns.title = countershape.template.Template(None, "<h1>@!this.title!@</h1>") ns.title = countershape.template.Template(None, "<h1>@!this.title!@</h1>")
this.titlePrefix = "%s - " % version.NAMEVERSION this.titlePrefix = "%s - " % version.NAMEVERSION