Mikael's blog

A developers sixth time trying to maintain a blog

Source Code - Root / views / list.mu
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
{{>header}}
    <section class="blogposts">
        {{#posts}}
        {{#value}}
        <article class="blogpost">
            <aside class="blogpost-sidebar">
                 <a data-icon="" href="/post/{{readableKey}}#comments" class="commentcount"> {{commentCount}}</a>
            </aside>
            <div class="blogpost-content">
                <header>
                    <time datetime="{{dateTime}}">{{readableDateTime}}</time>
                    <h3><a href="/post/{{readableKey}}">{{{title}}}</a></h3>
                </header>
                {{#pictureURL}}
                <div class="fotoholder">
                    <img class="postpic" alt="{{pictureAltText}}" title="{{pictureAltText}}" src="/img/upload/{{pictureURL}}" />
                    {{{pictureSubText}}}
                </div>
                {{/pictureURL}}
                {{{htmlContent}}}
                <footer>
                    by {{author}}
                </footer>
            </div>
            <div class="clearfix"></div>
        </article>
        {{/value}}
        {{/posts}}
    </section>
    {{#renderPageNav}}
    <section class="pagenavigation">
        <div class="pagenavwrapper">
            {{#newerPosts}}
                <div class="pagenavprev">
                    <a class="first{{^olderPosts}} last{{/olderPosts}}" href="/page/{{prevPageKey}}">Newer posts</a>
                </div>
            {{/newerPosts}}
            {{#olderPosts}}
                <div class="pagenavnext">
                    <a class="last{{^newerPosts}} first{{/newerPosts}}" href="/page/{{nextPageKey}}">Older posts</a>
                </div>
            {{/olderPosts}}
        </div>
    </section>
    {{/renderPageNav}}
{{>footer}}