diff options
| -rw-r--r-- | .DS_Store | bin | 6148 -> 0 bytes | |||
| -rw-r--r-- | layout/index.ejs | 20 | 
2 files changed, 19 insertions, 1 deletions
| diff --git a/.DS_Store b/.DS_StoreBinary files differ deleted file mode 100644 index 73f67c2..0000000 --- a/.DS_Store +++ /dev/null diff --git a/layout/index.ejs b/layout/index.ejs index 5e1c309..9d0d7bd 100644 --- a/layout/index.ejs +++ b/layout/index.ejs @@ -1 +1,19 @@ -Hello World
\ No newline at end of file +<section class="posts"> +    <% page.posts.each(function (post) { %> +        <article class="post"> +            <% if (post.thumbnail) { %>  +                <% if (theme.lazyload) { %> +                    <div class="post-thumbnail lazy" data-bg="<%= post.thumbnail %>"></div> +                <% } else { %> +                    <div class="post-thumbnail" style="background-image: url('<%= post.thumbnail %>');"></div> +                <% } %> +            <% } %> +            <h1 class="post-title"><%= post.title %></h1> +            <% if (post.excerpt) { %> +                <div class="post-excerpt"><%- post.excerpt %></div> +            <% } else { %> +                <div class="post-content"><%- post.content %></div> +            <% } %> +        </article> +    <% }) %> +</section>
\ No newline at end of file | 
