base.html 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!DOCTYPE html>
  2. <html lang="{{ DEFAULT_LANG }}">
  3. <head>
  4. {% block head %}
  5. <title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
  6. <meta charset="utf-8" />
  7. {% if FEED_ALL_ATOM %}
  8. <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full 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 }} Full RSS Feed" />
  12. {% endif %}
  13. {% if FEED_ATOM %}
  14. <link href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
  15. {% endif %}
  16. {% if FEED_RSS %}
  17. <link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
  18. {% endif %}
  19. {% if CATEGORY_FEED_ATOM and category %}
  20. <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM|format(category.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Categories Atom Feed" />
  21. {% endif %}
  22. {% if CATEGORY_FEED_RSS and category %}
  23. <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS|format(category.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Categories RSS Feed" />
  24. {% endif %}
  25. {% if TAG_FEED_ATOM and tag %}
  26. <link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM|format(tag.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Tags Atom Feed" />
  27. {% endif %}
  28. {% if TAG_FEED_RSS and tag %}
  29. <link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_RSS|format(tag.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed" />
  30. {% endif %}
  31. {% endblock head %}
  32. </head>
  33. <body id="index" class="home">
  34. <header id="banner" class="body">
  35. <h1><a href="{{ SITEURL }}">{{ SITENAME }} <strong>{{ SITESUBTITLE }}</strong></a></h1>
  36. </header><!-- /#banner -->
  37. <nav id="menu"><ul>
  38. {% for title, link in MENUITEMS %}
  39. <li><a href="{{ link }}">{{ title }}</a></li>
  40. {% endfor %}
  41. {% if DISPLAY_PAGES_ON_MENU %}
  42. {% for p in PAGES %}
  43. <li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
  44. {% endfor %}
  45. {% else %}
  46. {% if DISPLAY_CATEGORIES_ON_MENU %}
  47. {% for cat, null in categories %}
  48. <li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
  49. {% endfor %}
  50. {% endif %}
  51. {% endif %}
  52. </ul></nav><!-- /#menu -->
  53. {% block content %}
  54. {% endblock %}
  55. <footer id="contentinfo" class="body">
  56. <address id="about" class="vcard body">
  57. Proudly powered by <a href="http://getpelican.com/">Pelican</a>,
  58. which takes great advantage of <a href="http://python.org">Python</a>.
  59. </address><!-- /#about -->
  60. </footer><!-- /#contentinfo -->
  61. </body>
  62. </html>