aboutsummaryrefslogtreecommitdiffstats
path: root/notebook/templates/base.html
diff options
context:
space:
mode:
authorquack1 <alexandre.deloup@gmail.com>2013-04-20 01:04:16 +0200
committerquack1 <alexandre.deloup@gmail.com>2013-04-20 01:04:16 +0200
commit18dd0bb33c9f2570bd83ef2c31f89be0cdbb71ba (patch)
tree5729d8d1d5c33ed31e3330d553f360862831296d /notebook/templates/base.html
parent53d6c4254aa2b4781b850419d63a40527c307d71 (diff)
downloadpelican-themes-18dd0bb33c9f2570bd83ef2c31f89be0cdbb71ba.tar.gz
Add theme 'notebook'. The original repository is https://github.com/quack1/notebook. There are some issues/enhancement to do, so if you work on it, please make pull requests to my own repo, so I can validate them and then add to this global repo. Thanks\!
Diffstat (limited to 'notebook/templates/base.html')
-rw-r--r--notebook/templates/base.html99
1 files changed, 99 insertions, 0 deletions
diff --git a/notebook/templates/base.html b/notebook/templates/base.html
new file mode 100644
index 0000000..6e9c24d
--- /dev/null
+++ b/notebook/templates/base.html
@@ -0,0 +1,99 @@
+<!doctype html>
+<html lang="{{ DEFAULT_LANG }}">
+<head>
+ {% block head %}
+ <meta charset="utf-8">
+ <title>{% block title %}{{ SITENAME }}{% endblock %}</title>
+ <meta name="description" content="">
+ <meta name="author" content="{{ AUTHOR }}">
+
+ <link rel="stylesheet" href="{{ SITEURL }}/theme/css/notebook.css" type="text/css" />
+ <link rel="shortcut icon" href="{{ SITEURL }}/{{ AVATAR}}">
+
+ <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 %}
+
+ <meta name="twitter:card" content="summary">
+ <meta name="twitter:site" content="{{ SITENAME }}">
+ <meta name="twitter:image" content="{{ SITEURL }}/{{ AVATAR }}">
+ {% endblock %}
+</head>
+
+<body>
+ <!-- Sidebar -->
+ <aside>
+ <p><a href="{{ SITEURL }}"><img id="avatar" src="{{ SITEURL }}/{{ AVATAR }}"></a></p>
+ <h1>{{ SITENAME }}</h1>
+ <p>{{ SIDEBAR_DIGEST }}</p>
+ <hr>
+ <h2>Social</h2>
+ <ul class="social">
+ {% for name, link in SOCIAL %}
+ <li style="list-style-image : url({{ SITEURL }}/theme/images/icons/{{ name|lower }}.png);"><a href="{{ link }}">{{ name }}</a></li>
+ {% endfor %}
+ <li style="list-style-image : url({{ SITEURL }}/theme/images/icons/rss.png);"><a href="{{ SITEURL }}/{{ FEED_ATOM }}" rel="alternate"><i class="icon-bookmark icon-large"></i>Atom feed</a></li>
+ {% if FEED_RSS %}
+ <li style="list-style-image : url({{ SITEURL }}/theme/images/icons/rss.png);"><a href="{{ SITEURL }}/{{ FEED_RSS }}" rel="alternate">RSS feed</a></li>
+ {% endif %}
+ </ul>
+ {% for title, link in MENUITEMS %}
+ <li><a href="{{ link }}">{{ title }}</a></li>
+ {% endfor %}
+ {% if DISPLAY_PAGES_ON_MENU and PAGES %}
+ <h2>Pages</h2>
+ <ul class="navbar">
+ {% for p in PAGES %}
+ <li><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ {% if categories %}
+ <h2>Categories</h2>
+ <ul class="navbar">
+ {% for cat, null in categories %}
+ <li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ </aside>
+
+ <!-- Content -->
+ <article>
+ {% block content %}
+ {% endblock %}
+ </article>
+
+ <!-- Footer -->
+ <footer>
+ <address id="about" class="vcard body">
+ {% if FIREFOX_BANNERS %}
+ <div align="center">
+ {% for id, img, alt in FIREFOX_BANNERS %}
+ <a href="http://affiliates.mozilla.org/link/banner/{{ id }}" target="_blank"><img src="{{ img }}" alt="{{ alt }}"/></a>
+ {% endfor %}
+ </div>
+ {% endif %}
+ Blog powered by <a href="http://getpelican.com/">Pelican</a>,
+ which takes great advantage of <a href="http://python.org">Python</a>.
+ Theme <a href="https://github.com/quack1/notebook/">Notebook</a> by <a href="https://twitter.com/_Quack1">@Quack1</a>.
+ </address>
+ </footer>
+
+ {% if GOOGLE_ANALYTICS %}
+ <!-- Analytics -->
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', '{{ GOOGLE_ANALYTICS }}']);
+ _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>
+ {% endif %}
+
+</body>
+</html> \ No newline at end of file