~/website

website/example/template.html.hbs -rw-r--r-- 1.19 kB
28e515a9 — Arthur Melton edit templates 2 years ago
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

<!doctype html>
<html lang="en">
    <head>
        <meta charset='utf-8'>
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <title>AMTitan :: {{title}}</title>

        <link rel="stylesheet" href="/main.css" />
    </head>
    <body >
<header class="text-center">
    <h1 class="text-2xl font-bold">{{title}}</h1>
    <hr />
    <div>
        <a href="/">Home</a> |
        <a href="/blogs-0">Blogs</a>
    </div>
    <hr />
</header>

<main>
    {{#if blogs}}
        <a href="/blogs.rss">Rss Feed</a> |
        <a href="/blogs.json">JSONFeed</a>
        <br><br>
        {{#each blogs}}
            <p>{{this.config.date}}</p>
            <a href="/blogs/{{this.path}}">{{this.config.title}}</a>
        {{/each}}
        {{#if before}}
            {{#if after}}
                <hr>
            {{/if}}
        {{/if}}
        {{#if before}}
            <a href="/blogs-{{before}}">Page {{before}}</a>
            {{#if after}}
                |
            {{/if}}
        {{/if}}
        {{#if after}}
            <a href="/blogs-{{after}}">Page {{after}}</a>
        {{/if}}

    {{else}}
        {{{content}}}
    {{/if}}
</main>

</body>
</html>