A theme for pelican which mimics the look of LaTeX documents
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

85 linhas
4.0 KiB

  1. <!DOCTYPE html>
  2. <html lang="{% block html_lang %}{{ DEFAULT_LANG }}{% endblock html_lang %}">
  3. <head>
  4. {% block head %}
  5. <title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
  6. <meta charset="utf-8" />
  7. <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/css/site.css" />
  8. {% if FEED_ALL_ATOM %}
  9. <link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" />
  10. {% endif %}
  11. {% if FEED_ALL_RSS %}
  12. <link href="{{ FEED_DOMAIN }}/{% if FEED_ALL_RSS_URL %}{{ FEED_ALL_RSS_URL }}{% else %}{{ FEED_ALL_RSS }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Full RSS Feed" />
  13. {% endif %}
  14. {% if FEED_ATOM %}
  15. <link href="{{ FEED_DOMAIN }}/{%if FEED_ATOM_URL %}{{ FEED_ATOM_URL }}{% else %}{{ FEED_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
  16. {% endif %}
  17. {% if FEED_RSS %}
  18. <link href="{{ FEED_DOMAIN }}/{% if FEED_RSS_URL %}{{ FEED_RSS_URL }}{% else %}{{ FEED_RSS }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
  19. {% endif %}
  20. {% if CATEGORY_FEED_ATOM and category %}
  21. <link href="{{ FEED_DOMAIN }}/{% if CATEGORY_FEED_ATOM_URL %}{{ CATEGORY_FEED_ATOM_URL.format(slug=category.slug) }}{% else %}{{ CATEGORY_FEED_ATOM.format(slug=category.slug) }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Categories Atom Feed" />
  22. {% endif %}
  23. {% if CATEGORY_FEED_RSS and category %}
  24. <link href="{{ FEED_DOMAIN }}/{% if CATEGORY_FEED_RSS_URL %}{{ CATEGORY_FEED_RSS_URL.format(slug=category.slug) }}{% else %}{{ CATEGORY_FEED_RSS.format(slug=category.slug) }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Categories RSS Feed" />
  25. {% endif %}
  26. {% if TAG_FEED_ATOM and tag %}
  27. <link href="{{ FEED_DOMAIN }}/{% if TAG_FEED_ATOM_URL %}{{ TAG_FEED_ATOM_URL.format(slug=tag.slug) }}{% else %}{{ TAG_FEED_ATOM.format(slug=tag.slug) }}{% endif %}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Tags Atom Feed" />
  28. {% endif %}
  29. {% if TAG_FEED_RSS and tag %}
  30. <link href="{{ FEED_DOMAIN }}/{% if TAG_FEED_RSS_URL %}{{ TAG_FEED_RSS_URL.format(slug=tag.slug) }}{% else %}{{ TAG_FEED_RSS.format(slug=tag.slug) }}{% endif %}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed" />
  31. {% endif %}
  32. {% endblock head %}
  33. </head>
  34. <body id="index" class="home">
  35. <header id="banner" class="body">
  36. <h1><a href="{{ SITEURL }}/">{{ SITENAME }} <strong>{{ SITESUBTITLE }}</strong></a></h1>
  37. </header><!-- /#banner -->
  38. <div id="container">
  39. <nav id="menu">
  40. {% for title, link in MENUITEMS %}
  41. <ul class="menuitems">
  42. <li><a href="{{ link }}">{{ title }}</a></li>
  43. </ul>
  44. {% endfor %}
  45. {% if DISPLAY_PAGES_ON_MENU %}
  46. <ul id="pages" class="menuitems">
  47. {% for p in pages %}
  48. <li{% if p == page %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
  49. {% endfor %}
  50. </ul>
  51. {% endif %}
  52. {% if DISPLAY_CATEGORIES_ON_MENU %}
  53. <ul id="categories" class="menuitems">
  54. {% for cat, null in categories %}
  55. <li{% if cat == category %} class="active"{% endif %}><a href="{{ SITEURL }}/{{ cat.url }}">{{ cat }}</a></li>
  56. {% endfor %}
  57. </ul>
  58. {% endif %}
  59. </nav><!-- /#menu -->
  60. <main id="content">
  61. {% block content %}
  62. {% endblock %}
  63. </main><!-- /#content -->
  64. </div>
  65. <footer id="contentinfo" class="body">
  66. <address id="about" class="vcard body">
  67. Proudly powered by <a href="http://getpelican.com/">Pelican</a>, which takes great advantage of <a href="http://python.org">Python</a>.
  68. </address><!-- /#about -->
  69. </footer><!-- /#contentinfo -->
  70. </body>
  71. </html>
  72. <!-- vim:ts=2:sw=2:et:ft=html -->