base.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <!doctype html>
  2. <html lang="{{ HTML_LANG }}">
  3. <head>
  4. <meta charset="utf-8"/>
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>{% block title %}{{ SITENAME }}{%endblock%}</title>
  7. <meta name="author" content="{{ AUTHOR }}">
  8. {%- block extra_meta %}
  9. {% endblock %}
  10. {% include 'header_common.html' %}
  11. <link rel="top" href="#" />
  12. <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,300italic,400italic,600italic|Source+Code+Pro' rel='stylesheet' type='text/css'></link>
  13. {%- block scripts %}
  14. {% endblock %}
  15. {% if FEED_ALL_ATOM %}
  16. <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
  17. {% endif %}
  18. {% if FEED_ALL_RSS %}
  19. <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
  20. {% endif %}
  21. </head>
  22. <body class="hack dark main container">
  23. <header>
  24. <nav class="pages">
  25. <a href="{{ SITEURL }}/" class="title">{{ SITENAME }}</a>
  26. {% if DISPLAY_PAGES_ON_MENU %}
  27. {% for p in pages %}
  28. <a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a>
  29. {% if not loop.last %}-{% endif %}
  30. {% endfor %}
  31. {% endif %}
  32. <a href="https://beanzilla.net">Beanzilla</a>
  33. <a href="{{ SITEURL }}/tags.html">Tags</a>
  34. <!-- <a href="{{ SITEURL }}/categories.html">Categories</a> -->
  35. <a href="{{ SITEURL }}/archives.html">Archives</a>
  36. {{ FEED_ATOM }}
  37. {% if FEED_ALL_ATOM %}
  38. <a href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" rel="alternate"><img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/feed-32px.png" alt="atom feed"/></a>
  39. {% endif %}
  40. {% if FEED_ALL_RSS %}
  41. <a href="{{ SITEURL }}/{{ FEED_ALL_RSS }}" rel="alternate"><img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/feed-32px.png" alt="rss feed"/></a>
  42. {% endif %}
  43. </nav>
  44. </header>
  45. <main>
  46. {% block content %}{% endblock %}
  47. </main>
  48. <footer>
  49. © 2018 {{ AUTHOR }} - Proudly powered by <a href="https://blog.getpelican.com">pelican</a>. Theme <a href="#">after-dark</a>.
  50. </footer>
  51. {% if GOOGLE_ANALYTICS %}
  52. <script>
  53. var _gaq=[['_setAccount','{{ GOOGLE_ANALYTICS }}'],['_trackPageview']];
  54. (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
  55. g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
  56. s.parentNode.insertBefore(g,s)}(document,'script'));
  57. </script>
  58. {% endif %}
  59. </body>
  60. </html>