You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
118 lines
4.9 KiB
118 lines
4.9 KiB
<!DOCTYPE html> |
|
<html lang="en"> |
|
<head> |
|
<title>{% block title %}{{ SITENAME }}{%endblock%}</title> |
|
<meta charset="utf-8" /> |
|
{% if GOOGLE_PLUSONE %} |
|
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> |
|
{% endif %} |
|
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" type="text/css" /> |
|
<link href="{{ SITEURL }}/{{ FEED }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} ATOM Feed" /> |
|
{% if FEED_RSS %} |
|
<link href="{{ SITEURL }}/{{ FEED_RSS }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" /> |
|
{% endif %} |
|
|
|
{% if (article and article.photo_gallery) or (articles_page and articles_page.object_list[0].photo_gallery) %} |
|
<link rel="stylesheet" href="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/css/magnific-popup.css"> |
|
{% endif %} |
|
|
|
<!--[if IE]> |
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]--> |
|
|
|
<!--[if lte IE 7]> |
|
<link rel="stylesheet" type="text/css" media="all" href="{{ SITEURL }}/css/ie.css"/> |
|
<script src="{{ SITEURL }}/js/IE8.js" type="text/javascript"></script><![endif]--> |
|
|
|
<!--[if lt IE 7]> |
|
<link rel="stylesheet" type="text/css" media="all" href="{{ SITEURL }}/css/ie6.css"/><![endif]--> |
|
|
|
</head> |
|
|
|
<body id="index" class="home"> |
|
{% include 'github.html' %} |
|
<header id="banner" class="body"> |
|
<h1><a href="{{ SITEURL }}">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></h1> |
|
<nav><ul> |
|
{% for cat, null in categories %} |
|
<li {% if cat == category and not article %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li> |
|
{% endfor %} |
|
{% if DISPLAY_PAGES_ON_MENU %} |
|
{% for current_page in pages %} |
|
<li {% if page %}{% if page == current_page%}class="active"{% endif %}{% endif %}> |
|
<a href="{{ SITEURL }}/{{ current_page.url }}">{{ current_page.title }}</a> |
|
</li> |
|
{% endfor %} |
|
{% endif %} |
|
{% for title, link in MENUITEMS %} |
|
<li><a href="{{ SITEURL }}/{{ link }}">{{ title }}</a></li> |
|
{% endfor %} |
|
</ul></nav> |
|
</header><!-- /#banner --> |
|
{% block content %} |
|
{% endblock %} |
|
<section id="extras" class="body"> |
|
{% if LINKS %} |
|
<div class="blogroll"> |
|
<h2>blogroll</h2> |
|
<ul> |
|
{% for name, link in LINKS %} |
|
<li><a href="{{ link }}">{{ name }}</a></li> |
|
{% endfor %} |
|
</ul> |
|
</div><!-- /.blogroll --> |
|
{% endif %} |
|
{% if SOCIAL %} |
|
<div class="social"> |
|
<h2>social</h2> |
|
<ul> |
|
<li><a href="{{ SITEURL }}/{{ FEED }}" rel="alternate">atom feed</a></li> |
|
{% if FEED_RSS %} |
|
<li><a href="{{ SITEURL }}/{{ FEED_RSS }}" rel="alternate">rss feed</a></li> |
|
{% endif %} |
|
|
|
{% for name, link in SOCIAL %} |
|
<li><a href="{{ link }}">{{ name }}</a></li> |
|
{% endfor %} |
|
</ul> |
|
</div><!-- /.social --> |
|
{% endif %} |
|
</section><!-- /#extras --> |
|
|
|
<footer id="contentinfo" class="body"> |
|
<address id="about" class="vcard body"> |
|
Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>, which takes great advantages of <a href="http://python.org">python</a>. |
|
</address><!-- /#about --> |
|
</footer><!-- /#contentinfo --> |
|
|
|
{% include 'analytics.html' %} |
|
{% include 'disqus_script.html' %} |
|
|
|
{% if (article and article.photo_gallery) or (articles_page and articles_page.object_list[0].photo_gallery) %} |
|
<!-- jQuery 1.7.2+ or Zepto.js 1.0+ --> |
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> |
|
|
|
<!-- Magnific Popup core JS file --> |
|
<script src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/js/jquery.magnific-popup.min.js"></script> |
|
<script> |
|
$('.gallery').magnificPopup({ |
|
delegate: 'a', |
|
type: 'image', |
|
gallery: { |
|
enabled: true, |
|
navigateByImgClick: true, |
|
preload: [1,2] |
|
}, |
|
image: { |
|
titleSrc: function(item) { |
|
if (item.el.attr('caption') && item.el.attr('exif')) { |
|
return (item.el.attr('caption').replace(/\\n/g, '<br />') + |
|
'<small>' + item.el.attr('title') + ' - ' + item.el.attr('exif') + '</small>'); |
|
} |
|
return item.el.attr('title') + '<small>' + item.el.attr('exif') + '</small>'; |
|
} } |
|
}); |
|
</script> |
|
{% endif %} |
|
|
|
</body> |
|
</html>
|
|
|