|
2 | 2 | layout: default |
3 | 3 | --- |
4 | 4 |
|
5 | | -<article class="page"> |
6 | | - |
7 | | - <h1>[Reverie](https://github.com/amitmerchant1990/reverie) is a Jekyll theme which is simple and opinionated. It's actually a fork of [jekyll-now](https://github.com/barryclark/jekyll-now) with some additional features and personal touches which I've implemented to suit my needs for [my blog](https://www.amitmerchant.com).</h1> |
8 | | - |
9 | | - <div class="entry"> |
10 | | - This is a plug-and-play Jekyll theme which you can use on GitHub Pages without even setting up a local environment. |
11 | | - |
12 | | - ## Features |
13 | | - |
14 | | - - Command-line free fork-first workflow, using GitHub.com to create, customize and post to your blog |
15 | | - - Fully responsive and mobile optimized base theme |
16 | | - - Sass/Coffeescript support using Jekyll 2.0 |
17 | | - - Free hosting on your GitHub Pages user site |
18 | | - - All the SEO goodies comes in-built |
19 | | - - Markdown blogging |
20 | | - - Syntax highlighting using Pygments |
21 | | - - [Dracula syntax theme](https://draculatheme.com/) included |
22 | | - - Disqus commenting |
23 | | - - Google Analytics integration |
24 | | - - Fuzzy search across blog posts |
25 | | - - Pagination of posts works out-of-the-box. |
26 | | - - Categorize posts out-of-the box |
27 | | - - RSS Feed |
28 | | - - In-built sitemap |
29 | | - |
30 | | - Learn more about it [here](https://github.com/amitmerchant1990/reverie) on how to get started. |
31 | | - |
| 5 | +<div class="posts"> |
| 6 | + {% for post in paginator.posts %} |
| 7 | + <article class="post"> |
| 8 | + <a href="{{ site.baseurl }}{{ post.url }}"> |
| 9 | + <h1>{{ post.title }}</h1> |
| 10 | + |
| 11 | + <div> |
| 12 | + <p class="post_date">{{ post.date | date: "%B %e, %Y" }}</p> |
| 13 | + </div> |
| 14 | + </a> |
| 15 | + <div class="entry"> |
| 16 | + {{ post.excerpt }} |
| 17 | + </div> |
| 18 | + |
| 19 | + <a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a> |
| 20 | + </article> |
| 21 | + {% endfor %} |
| 22 | + |
| 23 | + <!-- pagination --> |
| 24 | + {% if paginator.total_pages > 1 %} |
| 25 | + <div class="pagination"> |
| 26 | + {% if paginator.previous_page %} |
| 27 | + <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">« Prev</a> |
| 28 | + {% else %} |
| 29 | + <span>« Prev</span> |
| 30 | + {% endif %} |
| 31 | + |
| 32 | + {% for page in (1..paginator.total_pages) %} |
| 33 | + {% if page == paginator.page %} |
| 34 | + <span class="webjeda">{{ page }}</span> |
| 35 | + {% elsif page == 1 %} |
| 36 | + <a href="{{ '/' | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a> |
| 37 | + {% else %} |
| 38 | + <a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a> |
| 39 | + {% endif %} |
| 40 | + {% endfor %} |
| 41 | + |
| 42 | + {% if paginator.next_page %} |
| 43 | + <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next »</a> |
| 44 | + {% else %} |
| 45 | + <span>Next »</span> |
| 46 | + {% endif %} |
32 | 47 | </div> |
33 | | -</article> |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
| 48 | + {% endif %} |
| 49 | +</div> |
0 commit comments