From 471e869d259ba5dec387e96dadd708e77f0aec18 Mon Sep 17 00:00:00 2001 From: Philipp Flenker Date: Fri, 2 Aug 2019 14:35:46 +0200 Subject: [PATCH 01/22] Chore: Theme Cleanup --- _config.yml | 2 +- _includes/meta.html | 4 ++-- _layouts/default.html | 9 ++------- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/_config.yml b/_config.yml index 24ad324..fe7f8fc 100644 --- a/_config.yml +++ b/_config.yml @@ -12,7 +12,7 @@ author: Amit Merchant description: An elegant Jekyll theme # URL of your avatar or profile pic (you could use your GitHub profile pic) -avatar: /reverie/images/reverie.png +avatar: /images/reverie.png # # Flags below are optional diff --git a/_includes/meta.html b/_includes/meta.html index fcc0d14..ce9f841 100644 --- a/_includes/meta.html +++ b/_includes/meta.html @@ -24,7 +24,7 @@ {% else %} - - + + {% endif %} diff --git a/_layouts/default.html b/_layouts/default.html index 4a99b89..177647e 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -10,12 +10,7 @@ - - + @@ -24,7 +19,7 @@
- +

{{ site.name }}

From 2be76aa5fedf9d266daa152539b1f211d1943831 Mon Sep 17 00:00:00 2001 From: Philipp Flenker Date: Thu, 8 Aug 2019 08:51:01 +0200 Subject: [PATCH 02/22] feat: Allow empty titles in posts --- _layouts/default.html | 2 +- _pages/categories.md | 2 +- _posts/2019-08-08-no-title-posts.md | 6 ++++++ index.html | 12 ++++++------ search.json | 2 +- 5 files changed, 15 insertions(+), 9 deletions(-) create mode 100644 _posts/2019-08-08-no-title-posts.md diff --git a/_layouts/default.html b/_layouts/default.html index 177647e..c5fa17f 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -1,7 +1,7 @@ - {% if page.title %}{{ page.title }} – {% endif %}{{ site.name }} – {{ site.description }} + {% if page.title and page.title != "" %}{{ page.title }} – {% endif %}{{ site.name }} – {{ site.description }} {% seo %} {% include meta.html %} diff --git a/_pages/categories.md b/_pages/categories.md index 8ce6bf2..eccf362 100644 --- a/_pages/categories.md +++ b/_pages/categories.md @@ -16,7 +16,7 @@ title: Categories {% for post in site.categories[category_name] %} {% endfor %}
diff --git a/_posts/2019-08-08-no-title-posts.md b/_posts/2019-08-08-no-title-posts.md new file mode 100644 index 0000000..d14509e --- /dev/null +++ b/_posts/2019-08-08-no-title-posts.md @@ -0,0 +1,6 @@ +--- +layout: post +title: "" +categories: Miscellaneous +--- +Sometimes, your post just stands for itself and doesn't need a title. And that's fine, too! \ No newline at end of file diff --git a/index.html b/index.html index 7623f72..7db56e9 100644 --- a/index.html +++ b/index.html @@ -5,13 +5,13 @@ layout: default
{% for post in paginator.posts %}
+ +

{{ post.title }}

-

{{ post.title }}

- -
- -
- +
+ +
+
{{ post.excerpt }}
diff --git a/search.json b/search.json index e129f5b..f0693ee 100644 --- a/search.json +++ b/search.json @@ -4,7 +4,7 @@ {% for post in site.posts %} { - "title" : "{{ post.title | escape }}", + "title" : "{% if post.title != "" %}{{ post.title | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}", "url" : "{{ site.baseurl }}{{ post.url }}", "category" : "{{ post.categories | join: ', '}}", "date" : "{{ post.date | date: "%B %e, %Y" }}" From 363e3dbc426667ab79d2371cd6db19e634566d74 Mon Sep 17 00:00:00 2001 From: Amit Merchant Date: Mon, 12 Aug 2019 17:10:45 +0530 Subject: [PATCH 03/22] Create 2019-8-12-code-snippets.md --- _posts/2019-8-12-code-snippets.md | 42 +++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 _posts/2019-8-12-code-snippets.md diff --git a/_posts/2019-8-12-code-snippets.md b/_posts/2019-8-12-code-snippets.md new file mode 100644 index 0000000..7ad4cb5 --- /dev/null +++ b/_posts/2019-8-12-code-snippets.md @@ -0,0 +1,42 @@ +--- +layout: post +title: Code snippets in a blog post +categories: [HTML,Code] +--- + +This post demonstrate the use of code snippets in the theme. + +This is a raw snippet: + +``` +hello world +123 +This is a text snippet +``` + +This is a PHP snippet: + +```js + +``` + +This is a JavaScript snippet: + +```js +const add = (a, b) => a + b +const minus = (a, b) => a - b + +console.log(add(100,200)) // 300 +console.log(minus(100,200)) // -100 +``` + +This is a Python snippet: + +```python +def say_hello(): + print("hello world!") + +say_hello() // "hello world!" +``` From 0bbd67657c320c6943aef103aa785443cbc27253 Mon Sep 17 00:00:00 2001 From: Amit Merchant Date: Mon, 12 Aug 2019 17:16:05 +0530 Subject: [PATCH 04/22] Update 2019-8-12-code-snippets.md --- _posts/2019-8-12-code-snippets.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_posts/2019-8-12-code-snippets.md b/_posts/2019-8-12-code-snippets.md index 7ad4cb5..6605910 100644 --- a/_posts/2019-8-12-code-snippets.md +++ b/_posts/2019-8-12-code-snippets.md @@ -4,7 +4,7 @@ title: Code snippets in a blog post categories: [HTML,Code] --- -This post demonstrate the use of code snippets in the theme. +This post demonstrate the use of code snippets in the theme. The code snippets are powered by [Pygments](http://pygments.org/) and the code theme that is been used in Reverie is called [Draula](https://draculatheme.com/). This is a raw snippet: @@ -16,9 +16,9 @@ This is a text snippet This is a PHP snippet: -```js +```php ``` From eb23323bd603ecb1685d9d857d116cc3e8a3e7ea Mon Sep 17 00:00:00 2001 From: Amit Merchant Date: Tue, 13 Aug 2019 15:47:36 +0530 Subject: [PATCH 05/22] Updated analytics code. --- _config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index fe7f8fc..1a7bbf1 100644 --- a/_config.yml +++ b/_config.yml @@ -41,7 +41,7 @@ footer-links: disqus: # Enter your Google Analytics web tracking code (e.g. UA-2110908-2) to activate tracking -google_analytics: UA-43339302-4 +google_analytics: UA-43339302-11 # Your website URL (e.g. http://amitmerchant1990.github.io or http://www.amitmerchant.com) # Used for Sitemap.xml and your RSS feed From 4c19f683551bdaa5f91e20c5481ee10f6acd183e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Bure=C5=A1?= Date: Thu, 15 Aug 2019 08:45:08 +0200 Subject: [PATCH 06/22] Fix first page link in pagination --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 7db56e9..80dd4a8 100644 --- a/index.html +++ b/index.html @@ -33,7 +33,7 @@ layout: default {% if page == paginator.page %} {{ page }} {% elsif page == 1 %} - {{ page }} + {{ page }} {% else %} {{ page }} {% endif %} From b0e59e560c3b798767744fe27ab6c1235e761359 Mon Sep 17 00:00:00 2001 From: Amit Merchant Date: Fri, 16 Aug 2019 17:51:37 +0530 Subject: [PATCH 07/22] Update 2019-02-13-introducing-reverie-jekyll-theme.md --- _posts/2019-02-13-introducing-reverie-jekyll-theme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2019-02-13-introducing-reverie-jekyll-theme.md b/_posts/2019-02-13-introducing-reverie-jekyll-theme.md index a66318c..7313f4f 100644 --- a/_posts/2019-02-13-introducing-reverie-jekyll-theme.md +++ b/_posts/2019-02-13-introducing-reverie-jekyll-theme.md @@ -29,7 +29,7 @@ This is a plug-and-play Jekyll theme which you can use on GitHub Pages without e - In-built sitemap
- +
## Using Reverie on GitHub Pages From fd1fea1cb71ac9283da2457cafdcb7155ac723eb Mon Sep 17 00:00:00 2001 From: Amit Merchant Date: Sat, 31 Aug 2019 14:03:30 +0530 Subject: [PATCH 08/22] Added Ko-fi button --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dddf508..18780dd 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,10 @@


- Reverie + Reverie
+

Ko-fi +

Reverie is a [Jekyll](https://jekyllrb.com/)-powered 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). From 26337dba66bb79a8596e113714755d4265a0d253 Mon Sep 17 00:00:00 2001 From: Amit Merchant Date: Sat, 31 Aug 2019 18:03:41 +0530 Subject: [PATCH 09/22] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 18780dd..9464274 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@

-Reverie is a [Jekyll](https://jekyllrb.com/)-powered 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). +Reverie is a [Jekyll](https://jekyllrb.com/)-powered 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. > [Theme demo](https://www.amitmerchant.com/reverie/introducing-reverie-jekyll-theme/) @@ -90,11 +90,11 @@ paginate: 6 ## RSS -The generated [RSS feed](https://en.wikipedia.org/wiki/RSS) of your blog can be found at . You can see the example RSS feed over [here](https://www.amitmerchant.com/feed). +The generated [RSS feed](https://en.wikipedia.org/wiki/RSS) of your blog can be found at . You can see the example RSS feed over [here](https://www.amitmerchant.com/reverie/feed.xml). ## Sitemap -The generated sitemap of your blog can be found at . You can see the example sitemap feed over [here](https://www.amitmerchant.com/sitemap). +The generated sitemap of your blog can be found at . You can see the example sitemap feed over [here](https://www.amitmerchant.com/reverie/sitemap). ## The name? From d85b68b5a549b40c910efdaf6d62745777c98a18 Mon Sep 17 00:00:00 2001 From: Amit Merchant Date: Sat, 31 Aug 2019 18:05:16 +0530 Subject: [PATCH 10/22] Update 2019-02-13-introducing-reverie-jekyll-theme.md --- _posts/2019-02-13-introducing-reverie-jekyll-theme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_posts/2019-02-13-introducing-reverie-jekyll-theme.md b/_posts/2019-02-13-introducing-reverie-jekyll-theme.md index 7313f4f..8b1075d 100644 --- a/_posts/2019-02-13-introducing-reverie-jekyll-theme.md +++ b/_posts/2019-02-13-introducing-reverie-jekyll-theme.md @@ -4,7 +4,7 @@ title: Introducing Reverie - A ridiculously elegant Jekyll theme categories: [Miscellaneous, Jekyll] --- -[Reverie](https://github.com/amitmerchant1990/reverie) is a [Jekyll](https://jekyllrb.com/)-powered 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). +[Reverie](https://github.com/amitmerchant1990/reverie) is a [Jekyll](https://jekyllrb.com/)-powered 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. This is a plug-and-play Jekyll theme which you can use on GitHub Pages without even setting up a local environment. @@ -74,11 +74,11 @@ The contegorized content can be shown over this URL: . You can see the example RSS feed over [here](https://www.amitmerchant.com/feed). +The generated [RSS feed](https://en.wikipedia.org/wiki/RSS) of your blog can be found at . You can see the example RSS feed over [here](https://www.amitmerchant.com/reverie/feed). ## Sitemap -The generated sitemap of your blog can be found at . You can see the example sitemap feed over [here](https://www.amitmerchant.com/sitemap). +The generated sitemap of your blog can be found at . You can see the example sitemap feed over [here](https://www.amitmerchant.com/reverie/sitemap). ## License From b88003c7130e3fd44c305f84d06eb0267757bb73 Mon Sep 17 00:00:00 2001 From: Amit Merchant Date: Sat, 31 Aug 2019 18:08:30 +0530 Subject: [PATCH 11/22] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9464274..2658ff7 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Reverie

Ko-fi + Ko-fi

From 68ed8bc45df99159d2ea976a7a13ef4e311382f8 Mon Sep 17 00:00:00 2001 From: Amit Merchant Date: Sat, 31 Aug 2019 18:09:53 +0530 Subject: [PATCH 12/22] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2658ff7..5f5731e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@
Reverie
-

Ko-fi

From 1b64d40ec973ca4819acb9b63b42cdaf6219d5f1 Mon Sep 17 00:00:00 2001 From: amitmerchant1990 Date: Sun, 15 Sep 2019 16:17:03 +0530 Subject: [PATCH 13/22] Tweaked the folder structure to look more sophisticated. --- .gitignore | 3 +++ _layouts/default.html | 2 +- _pages/search.md | 2 +- {js => assets}/simple-jekyll-search.min.js | 0 style.scss => assets/style.scss | 0 5 files changed, 5 insertions(+), 2 deletions(-) rename {js => assets}/simple-jekyll-search.min.js (100%) rename style.scss => assets/style.scss (100%) diff --git a/.gitignore b/.gitignore index 62bf725..29ccef1 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,6 @@ Gemfile Gemfile.lock node_modules package.json +*.gem +*.gemspec +.jekyll-cache diff --git a/_layouts/default.html b/_layouts/default.html index c5fa17f..441fdd0 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -5,7 +5,7 @@ {% seo %} {% include meta.html %} - + diff --git a/_pages/search.md b/_pages/search.md index 8526997..b89ec6a 100644 --- a/_pages/search.md +++ b/_pages/search.md @@ -9,7 +9,7 @@ permalink: /search/
    - +