base.html 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>{% block title %}{{ SITENAME }}{%endblock%}</title>
  5. <meta charset="utf-8" />
  6. <link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" type="text/css" />
  7. {% if FEED_ALL_ATOM %}
  8. <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
  9. {% endif %}
  10. {% if FEED_ALL_RSS %}
  11. <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
  12. {% endif %}
  13. <!--[if IE]>
  14. <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
  15. <!--[if lte IE 7]>
  16. <link rel="stylesheet" type="text/css" media="all" href="{{ SITEURL }}/css/ie.css"/>
  17. <script src="{{ SITEURL }}/js/IE8.js" type="text/javascript"></script><![endif]-->
  18. <!--[if lt IE 7]>
  19. <link rel="stylesheet" type="text/css" media="all" href="{{ SITEURL }}/css/ie6.css"/><![endif]-->
  20. </head>
  21. <body id="index" class="home">
  22. {% include 'github.html' %}
  23. <header id="banner" class="body">
  24. <h1><a href="{{ SITEURL }}/">{{ SITENAME }} {% if SITESUBTITLE %} <strong>{{ SITESUBTITLE }}</strong>{% endif %}</a></h1>
  25. <nav><ul>
  26. {% for title, link in MENUITEMS %}
  27. <li><a href="{{ link }}">{{ title }}</a></li>
  28. {% endfor %}
  29. {% if DISPLAY_PAGES_ON_MENU -%}
  30. {% for page in PAGES %}
  31. <li><a href="{{ SITEURL }}/{{ page.url }}">{{ page.title }}</a></li>
  32. {% endfor %}
  33. {% endif %}
  34. {% if DISPLAY_CATEGORIES_ON_MENU -%}
  35. {% for cat, null in categories %}
  36. <li {% if cat == category %}class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
  37. {% endfor %}
  38. {% endif %}
  39. </ul></nav>
  40. </header><!-- /#banner -->
  41. {% block content %}
  42. {% endblock %}
  43. <section id="extras" class="body">
  44. {% if LINKS %}
  45. <div class="blogroll">
  46. <h2>blogroll</h2>
  47. <ul>
  48. {% for name, link in LINKS %}
  49. <li><a href="{{ link }}">{{ name }}</a></li>
  50. {% endfor %}
  51. </ul>
  52. </div><!-- /.blogroll -->
  53. {% endif %}
  54. {% if SOCIAL or FEED_ALL_ATOM or FEED_ALL_RSS %}
  55. <div class="social">
  56. <h2>social</h2>
  57. <ul>
  58. <li><a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate">atom feed</a></li>
  59. {% if FEED_ALL_RSS %}
  60. <li><a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate">rss feed</a></li>
  61. {% endif %}
  62. {% for name, link in SOCIAL %}
  63. <li><a href="{{ link }}">{{ name }}</a></li>
  64. {% endfor %}
  65. </ul>
  66. </div><!-- /.social -->
  67. {% endif %}
  68. </section><!-- /#extras -->
  69. <footer id="contentinfo" class="body">
  70. <address id="about" class="vcard body">
  71. Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
  72. </address><!-- /#about -->
  73. <p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
  74. </footer><!-- /#contentinfo -->
  75. {% include 'analytics.html' %}
  76. {% include 'piwik.html' %}
  77. {% include 'disqus_script.html' %}
  78. </body>
  79. </html>