summaryrefslogtreecommitdiffstats
path: root/templates/layouts/page.html
blob: b93f45fce9dbe30b1bb1d5723e972674fc8d6193 (plain) (blame)
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
<main
    class="c-main l-container l-container--pad-x l-container--pad-y l-container--narrow-125"
    itemprop="hasPart"
    itemscope
    itemtype="https://schema.org/$schema_type$"
    itemid="$url.full$"
>
    <article class="h-entry">
        $if(date)$
            <time datetime="$date.yyyy_mm_dd$" class="o-badge u-mb-125 dt-updated" itemprop="dateCreated">
                $date.long$
            </time>
        $endif$

        $if(draft)$
            <span class="o-badge u-mb-125">
                Draft
            </span>
        $endif$

        <h1 class="o-heading o-heading--xxl u-mt-0 p-name" itemprop="name headline">
            <span class="s-headings__primary">$title$</span>
        </h1>

        <div class="s-colored-links s-headings s-blockquotes s-code s-lists s-tables s-alerts e-content" itemprop="articleBody">
            <div class="l-container l-container--narrow u-ml-0">
$body$
            </div>
        </div>

        $if(references)$
            <footer class="s-colored-links s-lists">
                <hr />
                
                <h1>References</h1>
                <ul>
                    $for(references)$
                        <li><a href="$it.url$">$it.label$</a></li>
                    $endfor$
                </ul>
            </footer>
        $endif$
    </article>

    <div class="o-backdrop js-lightbox u-d-none t-dark">
        <div class="o-lightbox">
            <header class="o-lightbox__header">
                <button class="o-lightbox__close-btn o-action-button o-action-button--quiet o-action-button--round">
                    <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true">
                        <use href="$assets.icons_svg$#x"></use>
                    </svg>
                </button>
            </header>
        
            <img class="o-lightbox__img" />
        
            <button class="o-lightbox__nav-btn o-lightbox__nav-btn--prev o-action-button o-action-button--quiet o-action-button--round">
                <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true">
                    <use href="$assets.icons_svg$#chevron-left"></use>
                </svg>
            </button>
        
            <button class="o-lightbox__nav-btn o-lightbox__nav-btn--next o-action-button o-action-button--quiet o-action-button--round">
                <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true">
                    <use href="$assets.icons_svg$#chevron-right"></use>
                </svg>
            </button>
        
            <div class="o-lightbox__thumbnails"></div>
        </div>        
    </div>
</main>

<script src="$assets.lightbox_js$"></script>