File: article-header.html

package info (click to toggle)
hisat2 2.2.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 19,448 kB
  • sloc: cpp: 97,109; python: 11,075; perl: 7,279; sh: 2,328; ansic: 1,458; makefile: 532; javascript: 273; java: 116
file content (64 lines) | stat: -rw-r--r-- 1,959 bytes parent folder | download | duplicates (3)
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
{% assign page = include.page %}

<header>
    <div class="panel">
        <h1>
            {% if include.link %}
            <a class="post-link" href="{{ page.url | prepend: site.baseurl }}">{{ page.title }}</a>
            {% else %}
            {{ page.title }}
            {% endif %}
        </h1>

        <ul class="tags">
            {% assign tags_num = (page.tags | size) %}
            {% if tags_num > 0 %}
            <li><i class="fa fa-tags"></i></li>
            {% endif %}
            {% for tag in page.tags %}
            <li>
                <a class="tag" href="{{ '/search/?t=' | append: tag | prepend: site.baseurl }}">#{{ tag }}</a>
            </li>
            {% endfor %}
        </ul>

        <div class="clearfix">
            <ul class="meta">
                {% if page.date %}
                <li>
                    <i class="fa fa-calendar"></i>
                    {{ page.date | date: "%Y-%m-%d" }}
                </li>
                {% endif %}

                {% if page.author %}
                <li>
                    <a href="{{ '/search/?a=' | append: page.author | prepend: site.baseurl }}">
                        <i class="fa fa-user"></i>
                        {{ page.author }}
                    </a>
                </li>
                {% if page.icons %}
                <li>
                    <ul class="icons">
                        {% include icons.html icons=page.icons %}
                    </ul>
                </li>
                {% endif %}
                {% endif %}
            </ul>
        </div>
    </div>

    {% if site.share_buttons and include.share != false %}
    <div style="margin-top: 1em;">
        {% include share-buttons.html page=page %}
    </div>
    {% endif %}

    {% if include.eye_catch != false and page.eye_catch %}
    <p style="text-align: center">
        <img class="eye-catch" src="{{ page.eye_catch }}"/>
    </p>
    {% endif %}
</header>