index.hbs 700 Bytes
Newer Older
Kamal Nasser's avatar
Kamal Nasser committed
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
<main>
    <div class="new-post-cta">
        <a href="/posts/new">+ Write a new post</a>
    </div>
    {{#each posts}}
    <div>
        <div class="posts-list">
            <div class="post-item-container">
                <header>
                    <h2>{{ title }}</h2>
                </header>
                <div class="post-preview">
                    <p>{{ excerpt body size=120 }}</p>
                    <div class="cf">
                        <a href="/posts/{{ _id }}">View Post&rarr;</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    {{else}}
    <p>
        This blog doesn't have any posts yet.
    </p>
    {{/each}}
</main>