diff options
author | BakedSnake <gilferrandm@gmail.com> | 2021-03-17 12:58:53 +0100 |
---|---|---|
committer | BakedSnake <gilferrandm@gmail.com> | 2021-03-17 12:58:53 +0100 |
commit | 188527c6b55a2d64d5f76c5d3e094da45c69b0c9 (patch) | |
tree | 8c6c41a2ffe04af81483ec36f72d328c3c76780a /views/index.ejs |
Diffstat (limited to 'views/index.ejs')
-rw-r--r-- | views/index.ejs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/views/index.ejs b/views/index.ejs new file mode 100644 index 0000000..c0496ba --- /dev/null +++ b/views/index.ejs @@ -0,0 +1,34 @@ +<%- include('partials/header') %> + +<div class='content'> + <div class='leftie'> + <ul> + <% if(!currentUser) { %> + <li><a href='/search/all'>Search for blog posts</a></li> + <li><a href='/'><strong>About</strong></a></li> + <li><a href='/browsers'>Minimal browsers</a></li> + <% } else { %> + <li><a href='/blog/<%= currentUser.username %>'>My Blog</a></li> + <li><a href='/blog/<%= currentUser.username %>/new'>Create a blog post</a></li> + <li><a href='/search/all'>Search for blog posts</a></li> + <li><a href='/'><strong>About</strong></a></li> + <li><a href='/browsers'>Minimal browsers</a></li> + <% } %> + </ul> + </div> + <div class='rightie'> + <p>Tired of how bloated the web is, so I made this.</p> + <br> + <h3>News</h3> + <p>Find out <a href="#">more</a>.</p> + <h4>2020-02-08</h4> + <p>Sblog app is now live. Some updates will be added later.</p> + <p>ToDo's</p> + <ul> + <li>user warning and success cards</li> + <li>search by tag</li> + </ul> + </div> +</div> + +<%- include('partials/footer') %> |