summaryrefslogtreecommitdiffstats
path: root/templates/layouts/page.html
blob: 372151029d47b8d27f50c2a4226a62a7f9c5fd19 (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
<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$

        <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">
            <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="/icons.svg#x"></use>
                </svg>
            </button>
        
            <img class="o-lightbox__img" />
        
            <button class="o-lightbox__prev-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="/icons.svg#chevron-left"></use>
                </svg>
            </button>
        
            <button class="o-lightbox__next-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="/icons.svg#chevron-right"></use>
                </svg>
            </button>
        
            <footer class="o-lightbox__footer"></footer>
        </div>        
    </div>
</main>

<script src="/lightbox.js"></script>