kirsle.net/www/layout.html

213 řádky
8.5 KiB
HTML
Surový Normální zobrazení Historie

2014-04-09 21:56:29 +00:00
<!DOCTYPE html>
<html>
<head>
<title>{% block title %}{% endblock %} - Kirsle.net</title>
<link rel="stylesheet" type="text/css" media="screen" href="/solar/screen.css">
2014-04-24 18:49:57 +00:00
<link rel="stylesheet" type="text/css" href="/solar/monokai.css">
2014-04-09 21:56:29 +00:00
<link rel="stylesheet" type="text/css" media="print" href="/solar/print.css">
<link rel="stylesheet" type="text/css" media="all" href="/solar/vim-syntax.css">
<link rel="alternate" type="application/rss+xml" title="Kirsle's RSS Feed" href="/blog/rss">
2014-04-09 21:56:29 +00:00
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
2014-04-09 22:47:21 +00:00
{% from "google-ads.inc.html" import leaderboard, nav_ads %}
2014-04-09 21:56:29 +00:00
<div class="k-supernova"></div>
<div class="k-kirsle" onClick="self.location='/'"></div>
<div class="k-content-panel">
{% with messages = get_flashed_messages() %}
{% if messages %}
<h1>Notice!</h1>
<ul>
{% for message in messages %}
<li>{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
2014-04-09 22:47:21 +00:00
{% if uri not in ["/", "/blog/index"] and not "/blog/category" in uri %}
2014-04-09 22:52:07 +00:00
<br>
2014-04-09 22:47:21 +00:00
{{ leaderboard() }}
{% endif %}
2014-04-09 21:56:29 +00:00
<div class="k-copyright">
2014-06-24 19:17:46 +00:00
Copyright &copy; 2014 Noah Petherbridge &mdash; All rights reserved<br>
Powered by <a href="http://rophako.kirsle.net/" target="_blank">{{ app["name"] }}</a> v{{ app["version"] }} -
Hosted by <a href="https://www.digitalocean.com/?refcode=ea01734d3fc7">DigitalOcean</a><br>
2014-04-09 21:56:29 +00:00
Page generated in %time_elapsed%s.
</div>
</div>
<div class="k-navpanel">
<div class="k-section">Kirsle</div>
<div class="k-navi">
&#0187; <a href="/">Homepage</a> (<a href="{{ url_for('blog.rss') }}">RSS</a>)<br>
&#0187; <a href="/about">About Me</a><br>
&#0187; <a href="/photos/albums">Photo Albums</a><br>
&#0187; <a href="/guestbook">Guestbook</a><br>
&#0187; <a href="/contact">Contact Me</a>
</div>
<div class="k-section">Channels</div>
<div class="k-navi">
{{ include_page("blog.partial_tags")|safe }}
</div>
<div class="k-section">Creativity</div>
<div class="k-navi">
&#0187; <a href="/rendering">3D Renderings</a><br>
&#0187; <a href="/flash">Flash Animation</a><br>
&#0187; <a href="/javascript">JavaScript</a><br>
&#0187; <a href="/fonts">Fonts</a><br>
&#0187; <a href="/metacity">Metacity</a><br>
&#0187; <a href="/doc/">Tutorials</a>
</div>
<div class="k-section">Software</div>
<div class="k-navi">
&#0187; <a href="/rivescript">RiveScript</a><br>
&#0187; <a href="/errorgen">Error Generator</a><br>
&#0187; <a href="/tkcalc">Tk Calculator</a><br>
&#0187; <a href="http://sh.kirsle.net/" target="_blank">Terminal Apps</a><br>
&#0187; <a href="/pccc">CyanChat Client</a>
</div>
<div class="k-section">Web Tools</div>
<div class="k-navi">
&#0187; <a href="/wizards/ttf2eot.cgi">TTF to EOT</a><br>
2014-04-30 06:42:12 +00:00
&#0187; <a href="/wizards/ps1.html">Bash $PS1 Prompt</a><br>
2014-04-09 21:56:29 +00:00
&#0187; <a href="/wizards/fader.cgi">Text Fader</a><br>
&#0187; <a href="/wizards/favicon.cgi">Favicons</a><br>
&#0187; <a href="/wizards/distance.cgi">Distance Calc</a><br>
&#0187; <a href="/wizards/translator.html">Azulian Encoder</a><br>
2014-04-30 06:42:12 +00:00
&#0187; <a href="/wizards/xbmask.cgi">XBM Masks</a><br>
&#0187; <a href="/wizards/flask-session.py">Flask Session</a>
2014-04-09 21:56:29 +00:00
</div>
<div class="k-section">Subdomains</div>
<div class="k-navi">
2014-04-10 05:47:05 +00:00
&#0187; <a href="http://sh.kirsle.net/" target="_blank">Shell Scripts</a><br>
&#0187; <a href="http://rpm.kirsle.net/" target="_blank">Linux RPMs</a><br>
&#0187; <a href="http://rophako.kirsle.net/" target="_blank">Rophako CMS</a><br>
&#0187; <a href="http://nano.kirsle.net/" target="_blank">Kirsle::Nano</a><br>
&#0187; <a href="http://minecraft.kirsle.net/" target="_blank">Minecraft Server</a>
2014-04-09 21:56:29 +00:00
</div>
<div class="k-section">Miscellany</div>
<div class="k-navi">
&#0164; <a href="/firered">Pokemon Fuchsia City</a><br>
&#0164; <a href="/msdos">DOS and Windows</a><br>
&#0164; <a href="/raspberrypi">Raspberry Pi</a>
</div>
<div class="k-section">Links</div>
<div class="k-navi">
&#0164; <a href="https://www.google.com/+NoahPetherbridge">Google+</a><br>
&#0164; <a href="https://www.facebook.com/npetherbridge">Facebook</a><br>
&#0164; <a href="https://twitter.com/kirsle">Twitter</a><br>
&#0164; <a href="https://myspace.com/kirsle">MySpace</a><br>
&#0164; <a href="https://github.com/kirsle">Github</a><br>
&#0164; <a href="http://search.cpan.org/~kirsle">CPAN</a>
</div>
2014-04-09 22:47:21 +00:00
{{ nav_ads() }}
2014-04-09 21:56:29 +00:00
<div class="k-section">Fan Club</div>
<div class="k-navi">
{% if session["login"] %}
&#0164; Hi, <big>{{ session["name"] }}</big><br>
{% if session["role"] == "admin" %}
&#0187; <a href="{{ url_for('admin.index') }}">Admin Center</a><br>
{% endif %}
&#0187; <a href="{{ url_for('blog.update') }}">Update Blog</a><br>
{% if "impersonator" in session %}
&#0187; <a href="{{ url_for('admin.unimpersonate') }}">Unimpersonate</a><br>
{% endif %}
&#0187; <a href="{{ url_for('account.logout') }}">Log Out</a>
{% else %}
2014-04-30 06:42:12 +00:00
<div id="login-link">&#0187; <a href="{{ url_for('account.login') }}" class="login-link">Log In</a></div>
<div id="login-inline" style="display: none">
<form action="{{ url_for('account.login') }}" method="POST">
<input type="hidden" name="token" value="{{ csrf_token() }}">
<input type="hidden" name="url" value="{{ request.path }}">
2014-04-30 06:42:12 +00:00
<input type="text" size="4" name="username" style="width: 45%">
<input type="password" size="4" name="password" style="width: 45%"><br>
<button type="submit" style="width: 100%">Log In</button>
</form>
</div>
2014-04-09 21:56:29 +00:00
{% endif %}
</div><p>
<div class="k-navi">
<div class="center">
2014-06-24 19:17:46 +00:00
<a href="https://www.python.org/" target="_blank">
<img src="/static/images/python.png" width="80" height="15" alt="Python powered">
</a><br>
2014-04-09 21:56:29 +00:00
<a href="http://validator.w3.org/check?uri=referer">
2014-06-24 19:17:46 +00:00
<img src="/static/images/html5.png" width="80" height="15" alt="W3C Valid HTML5">
2014-04-09 21:56:29 +00:00
</a><br>
<a href="http://jigsaw.w3.org/css-validator/validator?uri=http://www.kirsle.com/solar/screen.css">
2014-06-24 19:17:46 +00:00
<img src="/static/images/css3.png" width="80" height="15" alt="W3C Valid CSS3">
</a><p>
<a href="https://www.digitalocean.com/?refcode=ea01734d3fc7" target="_blank">
<img src="/static/images/digital-ocean.png" width="140" height="39" alt="Proudly hosted by DigitalOcean">
2014-04-09 21:56:29 +00:00
</a>
</div>
</div>
</div>
<script type="text/javascript" src="/js/jquery-2.1.0.min.js"></script>
2014-04-19 06:46:33 +00:00
<script type="text/javascript" src="/js/offsite.js"></script>
2014-04-30 06:42:12 +00:00
<script type="text/javascript">
$(document).ready(function() {
$(".login-link").click(function() {
$("#login-link").hide();
$("#login-inline").show(500);
return false;
});
});
</script>
2014-04-09 21:56:29 +00:00
{% block scripts %}{% endblock %}
2014-04-30 20:25:02 +00:00
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-27498092-1', 'kirsle.net');
ga('require', 'displayfeatures');
ga('send', 'pageview');
</script>
2014-04-09 21:56:29 +00:00
2014-04-30 20:25:02 +00:00
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
2014-04-09 21:56:29 +00:00
(function() {
2014-04-30 20:25:02 +00:00
var u=(("https:" == document.location.protocol) ? "https" : "http") + "://www.kirsle.net/piwik/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 1]);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript';
g.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
2014-04-09 21:56:29 +00:00
})();
</script>
2014-04-30 20:25:02 +00:00
<noscript><p><img src="http://www.kirsle.net/piwik/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
<!-- End Piwik Code -->
2014-04-09 21:56:29 +00:00
</body>
2014-04-09 22:52:07 +00:00
</html>