base.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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="{{ SITEURL }}/tags.html">Tags</a>
  33. <!-- <a href="{{ SITEURL }}/categories.html">Categories</a> -->
  34. <a href="{{ SITEURL }}/archives.html">Archives</a>
  35. {{ FEED_ATOM }}
  36. {% if FEED_ALL_ATOM %}
  37. <a href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" rel="alternate"><img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/feed-32px.png" alt="atom feed"/></a>
  38. {% endif %}
  39. {% if FEED_ALL_RSS %}
  40. <a href="{{ SITEURL }}/{{ FEED_ALL_RSS }}" rel="alternate"><img src="{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/icons/feed-32px.png" alt="rss feed"/></a>
  41. {% endif %}
  42. </nav>
  43. </header>
  44. <main>
  45. {% block content %}{% endblock %}
  46. </main>
  47. <footer>
  48. © 2018 {{ AUTHOR }} - Proudly powered by <a href="http://alexis.notmyidea.org/pelican/">pelican</a>. Theme <a href="#">after-dark</a>.
  49. </footer>
  50. {% if GOOGLE_ANALYTICS %}
  51. <script>
  52. var _gaq=[['_setAccount','{{ GOOGLE_ANALYTICS }}'],['_trackPageview']];
  53. (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
  54. g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
  55. s.parentNode.insertBefore(g,s)}(document,'script'));
  56. </script>
  57. {% endif %}
  58. </body>
  59. </html>