123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- {% macro ephemeral_nav_link(what, where, selected=False) -%}
- <li class="ephemeral{% if selected %} selected{% endif %}"><a href="{{ SITEURL }}/{{ where }}">{{what}}</a></li>
- {%- endmacro -%}
- <!DOCTYPE html>
- <html lang="{{ DEFAULT_LANG }}">
- <head>
- {% block head %}
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width,initial-scale=1">
- <title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
- {# favicon #}
- <link rel="shortcut icon" type="image/png" href="{{ SITEURL }}/favicon.png" sizes="16x16">
- <link rel="shortcut icon" type="image/x-icon" href="{{ SITEURL }}/favicon.ico" sizes="32x32 48x48">
- {% if FEED_ALL_ATOM %}
- <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Full Atom Feed" />
- {% endif %}
- {% if FEED_ALL_RSS %}
- <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Full RSS Feed" />
- {% endif %}
- {% if FEED_ATOM %}
- <link href="{{ FEED_DOMAIN }}/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
- {% endif %}
- {% if FEED_RSS %}
- <link href="{{ FEED_DOMAIN }}/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
- {% endif %}
- {% if TRANSLATION_FEED_ATOM %}
- {% for lang in LANGS %}
- {% set translation_feed = 'feeds/all-%s.atom.xml' % (lang) %}
- <link href="{{ FEED_DOMAIN }}/{{ translation_feed }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} {{ lang }} Translation Atom Feed" />
- {% endfor %}
- {% endif %}
- {% if CATEGORY_FEED_ATOM and category %}
- <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_ATOM|format(category.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Categories Atom Feed" />
- {% endif %}
- {% if CATEGORY_FEED_RSS and category %}
- <link href="{{ FEED_DOMAIN }}/{{ CATEGORY_FEED_RSS|format(category.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Categories RSS Feed" />
- {% endif %}
- {% if TAG_FEED_ATOM and tag %}
- <link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_ATOM|format(tag.slug) }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Tags Atom Feed" />
- {% endif %}
- {% if TAG_FEED_RSS and tag %}
- <link href="{{ FEED_DOMAIN }}/{{ TAG_FEED_RSS|format(tag.slug) }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} Tags RSS Feed" />
- {% endif %}
- <link rel="stylesheet" href="{{ SITEURL }}/theme/css/screen.css" type="text/css" />
- <link rel="stylesheet" href="{{ SITEURL }}/theme/css/pygments.css" type="text/css" />
- <link rel="stylesheet" href="{{ SITEURL }}/theme/css/print.css" type="text/css" media="print" />
- <meta name="generator" content="Pelican" />
- <meta name="description" content="{{ SITEDESCRIPTION }}">
- <meta name="author" content="{{ AUTHOR }}">
- {% endblock head %}
- </head>
- <body>
- {% if DISPLAY_HEADER or DISPLAY_HEADER is not defined %}
- <header>
- {% if DISPLAY_MENU or DISPLAY_MENU is not defined %}
- <nav>
- <ul>
- {% block ephemeral_nav %}{% endblock %}
- {% if DISPLAY_HOME or DISPLAY_HOME is not defined %}
- <li{% if output_file == "index.html" %} class="selected"{% endif %}><a href="{{ SITEURL }}/">Home</a></li>
- {% endif %}
- {% if DISPLAY_PAGES_ON_MENU %}
- {% for p in pages %}
- <li{% if p == page %} class="selected"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
- {% endfor %}
- {% endif %}
- {% for title, link in MENUITEMS %}
- <li><a href="{{ link }}">{{ title }}</a></li>
- {% endfor %}
- {% for name, link, file in MENU_INTERNAL_PAGES %}
- <li{% if output_file == file %} class="selected"{% endif %}><a href="{{ SITEURL }}/{{ link }}">{{ name }}</a></li>
- {% endfor %}
- </ul>
- </nav>
- {% endif %}
- <div class="header_box">
- <h1><a href="{{ SITEURL }}/">{{ SITENAME }}</a></h1>
- {% if SITESUBTITLE %}
- <h2>{{ SITESUBTITLE }}</h2>
- {% endif %}
- </div>
- </header>
- {% endif %}
- <div id="wrapper">
- <div id="content">
- {%- block content -%}{%- endblock %}
- {% if DISPLAY_FOOTER or DISPLAY_FOOTER is not defined %}
- <div class="clear"></div>
- <footer>
- <p>
- {% if FEED_ALL_ATOM %}
- ·
- <a href="{{ SITEURL }}/{{ FEED_ALL_ATOM }}" rel="alternate">Atom Feed</a>
- {% endif %}
- {% if FEED_ALL_RSS %}
- ·
- <a href="{{ SITEURL }}/{{ FEED_ALL_RSS }}" rel="alternate">Rss Feed</a>
- {% endif %}
- {% if TRANSLATION_FEED_ATOM %}
- {% for lang in LANGS %}
- {% set translation_feed = 'feeds/all-%s.atom.xml' % (lang) %}
- <a class="follow" href="{{ FEED_DOMAIN }}/{{ translation_feed }}" rel="alternate">Atom Feed ({{ lang }})</a>
- ·
- {% endfor %}
- {% endif %}
- {% if SOCIAL %}
- {% for name, link in SOCIAL %}
- <a class="follow" href="{{ link }}">{{ name }}</a>
- {% endfor %}
- {% endif %}
- <br>
- <a href="https://notabug.org/Ducker/ducker-website-theme">Ducker website theme</a>
- ·
- Powered by <a href="http://getpelican.com">Pelican</a>
- </footer>
- {% endif %}
- </div>
- <div class="clear"></div>
- </div>
- </body>
- </html>
|