Mikael's blog

A developers sixth time trying to maintain a blog

Source Code - Root / views / blogpost.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
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{{>header}}
    <script>
    if (typeof(BlogPageMetaData) == 'undefined') {
        var BlogPageMetaData = {};
    }
    BlogPageMetaData.init = ['comments'];
    </script>
    <section class="blogposts">
  
        <article class="blogpost">
            <aside class="blogpost-sidebar">
                   
            </aside>
            <div class="blogpost-content">
                <header>
                    <time datetime="{{dateTime}}" pubdate>{{readableDateTime}}</time>
                    <h3>{{{title}}}</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>
    </section>
    <div class="google-ads">
        <script type="text/javascript"><!--
        google_ad_client = "ca-pub-7461308155260284";
        /* blog ad banner */
        google_ad_slot = "4746672730";
        google_ad_width = 468;
        google_ad_height = 60;
        //-->
        </script>
        <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
    </div>
    {{#renderComments}}
        <section class="comments" id="comments">
            <header>
                Comments
            </header>
            {{#comments}}
            <article class="comment">
                <header>
                {{#website}}
                    by <a href="{{website}}" target="_blank">{{name}}</a> on <time datetime="{{dateTime}}" pubdate>{{readableDateTime}}</time>
                {{/website}}
                {{^website}}
                    by <span class="commentname">{{name}}</span> on <time datetime="{{dateTime}}" pubdate>{{readableDateTime}}</time>
                {{/website}}
                </header>
                <div>
                    {{comment}}
                </div>
            </article>
            {{/comments}}
            {{^comments}}
            <section class="nocomments">
                There are no comments for this post yet.
            </section>
            {{/comments}}
            <footer>
                <p>
                    Name:<br/>
                    <input type="text" name="name" id="name"/>
                </p>
                <p>
                    Home page:<br/>
                    <input type="url" name="website" id="website"/>
                </p>
                <p>
                    Comment:<br/>
                    <textarea name="comment" id="comment"></textarea>
                </p>
                <p>
                    <input type="hidden" name="postKey" value="{{readableKey}}" />
                    <input type="submit" value="Submit comment" />
                </p>
            </footer>
        </section>
    {{/renderComments}}
{{>footer}}