all repos — nasg @ aea27405db3e00e208fae793f778be77fb22416a

templates/base.j2.html (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
<!DOCTYPE html>
<html{% block lang %}{% endblock %} prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article#">
<head>
    <!--[if lt IE 9]>
    <script src="{{ site.url}}/html5shiv-printshiv.js"></script>
    <![endif]-->
    <title>{% block title %}{% endblock %}</title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1" />
    <meta name="author" content="{{ site.author.name }} ({{ site.author.email }})" />
    <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="{{ site.name }}">
    <link rel="icon" href="{{ site.image }}" />
    <!-- <base href="{{ baseurl }}" /> -->
    {% for key, value in meta.items() %}
    <link rel="{{ key }}" href="{{ value }}" />
    {% endfor %}
    {% block meta %}{% endblock %}

    <style media="all">
        {% include('style.css') %}
    </style>
    <style id="css_alt" media="speech">
        {% include('style-alt.css') %}
    </style>
    <style id="css_surprise" media="speech">
        {% include('style-konami.css') %}
    </style>
    <style media="print">
        {% include('style-print.css') %}
    </style>

</head>

<body>

{% macro activemenu(name) %}
{% if (post is defined and post.name ==  name )
    or (post is defined and post.genre ==  name )
    or ( category is defined and category.name == name )%}class="active"{% endif %}
{% endmacro %}

<header id="header">
    <div>
        <nav>
            <ul>
            {% for key, data in menu.items() %}
                <li>
                    <a title="{{ data.text }}" href="{{ data.url|relurl(baseurl) }}" {{ activemenu(key) }} >
                        <svg width="16" height="16">
                            <use xlink:href="#icon-{{ key }}" />
                        </svg>
                        {{ data.text }}
                    </a>
                </li>
            {% endfor %}
            </ul>
        </nav>

        <div id="header-forms">
            {% for action in site.potentialAction %}
            {% if 'SearchAction' == action['@type'] %}
            <form id="search" role="search" method="get" action="{{ action.url|relurl(baseurl) }}">
                <label for="qsub">
                    <input type="submit" value="search" id="qsub" name="qsub" />
                    <svg width="16" height="16">
                        <use xlink:href="#icon-search"></use>
                    </svg>
                </label>
                <input type="search" placeholder="search..." value="" name="q" id="q" title="Search for:" />
            </form>
            {% endif %}
            {% endfor %}
        </div>
    </div>
</header>

{% block content %}
{% endblock %}

{% block pagination %}
{% endblock %}

<footer id="footer" class="p-author h-card vcard">
    <div>
        <p>
            <a href="https://creativecommons.org/">CC</a>,
            1999-2019,
            <img class="u-photo photo" src="{{ site.author.image|relurl(baseurl) }}" alt="Photo of {{ site.author.name }}" />
            <a class="p-name u-url fn url" href="{{ site.author.url }}" rel="me"> {{ site.author.name }}</a>
            <a class="u-email email" rel="me" href="mailto:{{ site.author.email }}">
                <svg width="16" height="16">
                    <use xlink:href="#icon-mail"></use>
                </svg>
                {{ site.author.email }}
            </a>
        </p>
        <ul>
            {% for action in site.potentialAction %}
            {% if 'FollowAction' == action['@type'] %}
            <li>
                <a href="{{ action.url }}">
                    <svg width="16" height="16"><use xlink:href="#icon-{{ action['@type'] }}" /></svg>
                    {{ action.name }}
                </a>
            </li>
            {% endif %}
            {% endfor %}
            <li>
                <a href="{{ site.author.follows }}">
                    <svg width="16" height="16"><use xlink:href="#icon-following" /></svg>
                    followings
                </a>
            </li>
            {% for url in site.author.sameAs %}
            {% if 'cv.html' in url %}
            <li>
                <a href="{{ url }}" class="u-url">
                    <svg width="16" height="16"><use xlink:href="#icon-resume" /></svg>
                    resume
                </a>
            </li>
            {% elif 'github' in url %}
            <li>
                <a rel="me" href="{{ url }}">
                    <svg width="16" height="16"><use xlink:href="#icon-github" /></svg>
                    github
                </a>
            </li>
            {% endif %}
            {% endfor %}
        </ul>
        <p>
            <a href="https://xn--sr8hvo.ws/%F0%9F%87%BB%F0%9F%87%AE%F0%9F%93%A2/previous">←</a>
                Member of <a href="https://xn--sr8hvo.ws">IndieWeb Webring</a>
            <a href="https://xn--sr8hvo.ws/%F0%9F%87%BB%F0%9F%87%AE%F0%9F%93%A2/next">→</a>
        </p>
        <div class="tip">
            <span>Leave me a tip! </span>
            <ul>
                {% for action in site.potentialAction %}
                {% if 'DonateAction' == action['@type'] %}
                <li>
                    <a href="{{ action.url }}">
                        <svg width="16" height="16"><use xlink:href="#icon-{{ action['name'] }}" /></svg>
                        {{ action.description }}
                    </a>
                </li>
                {% endif %}
                {% endfor %}
            </ul>
        </div>
    </div>
</footer>

<script>
{% include 'themeswitcher.js' %}

{% include 'konami.js' %}

</script>

{% include 'symbols.svg' %}

{% block prism %}
{% endblock %}

    </body>
</html>