moonwalk 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '090356e88da17ad90e7f88cd8104eb23401d4d92412f93f82c476f51b482d628'
4
- data.tar.gz: ebc009042c02bf50123f36040bd8d251eb98b6c72d2c5f78779a7c4cc6815228
3
+ metadata.gz: 2967d34ac4d69b0a22ed559b8332cccebe5c2cdd371ce09fa4566bdb384caac1
4
+ data.tar.gz: 63d7e752098c997ee32d0c25e6c2eb3103c19a689edade42b524a462d86030fc
5
5
  SHA512:
6
- metadata.gz: 6bd9a469b9c503784167fc53872f81dd94ea5bdc51963f67842ffeb856d3402010a2e98f814ce6a4fb007f31e917fa0df35e975673bb8a5d5f408cac904ac942
7
- data.tar.gz: 146f84a88f20840c4bb45c1322732b2e4f64ffc8ee1a5f23a8f06cc1b381bf34b44925c5f16b65bdc0c5e837afc16335ebe448caf0c2b10711243fe86b78ca4d
6
+ metadata.gz: 75da973db880f5071dd744bd4da7490c5ce319428e31bc38b9375f037dcf636e9bc2a326128df29f7ba0bfe1045c42cd31445a5a563548e69360a4b26cf63e40
7
+ data.tar.gz: 408605ab11b60c50086241c69c291d7d66e55d08ef524a7cfce49473df0406c468e2ee31ac494d29abbb045edc8840dbbe40c8042783e05f419a19cfbc526113
data/README.md CHANGED
@@ -17,8 +17,8 @@
17
17
  * RSS feed (uses [Jekyll Feed](https://github.com/jekyll/jekyll-feed))
18
18
  * Easy to extend
19
19
  * Fully compatible with [GitHub Pages](https://pages.github.com/) (see [GitHub Pages installation](#github-pages-installation))
20
- * Auto-generated social media share images (using Soopr)
21
- * Share & like buttons (using Soopr)
20
+ * Auto-generated share images for social media (using [Soopr](https://www.soopr.co))
21
+ * Share & like buttons (using [Soopr](https://www.soopr.co))
22
22
 
23
23
 
24
24
  #### Lighthouse
@@ -31,6 +31,8 @@
31
31
  3. `bin/bootstrap`
32
32
  4. [Optional] Sign up on Soopr, and add your `publish_token` in `_config.yml` file.
33
33
 
34
+ If you are installing Moonwalk on Windows, please note that you might have to use Ruby 3.0.x instead of Ruby 3.1.x - you can see Windows specific installation instructions [here](https://github.com/abhinavs/moonwalk/blob/master/moonwalk_on_windows.md)
35
+
34
36
  ## Starting Server
35
37
  `bin/start` - development server will start at http://127.0.0.1:4000
36
38
 
@@ -109,7 +111,7 @@ html {
109
111
  };
110
112
  }
111
113
  ```
112
- 3. Add [Soopr](https://www.soopr.co) `publish_token` in `_config.yml` file to auto generate social share images. You also additionally get Like button and URL shortener, you can control them using Soopr dashboard.
114
+ 3. Sign up for free on [Soopr](https://www.soopr.co) and add your `publish_token` in `_config.yml` file - with this, each page gets short URL, like button and auto generated share image for social media.
113
115
 
114
116
  <img src="https://raw.githubusercontent.com/abhinavs/moonwalk/master/_screenshots/twitter_card.png" />
115
117
 
data/_config.yml CHANGED
@@ -4,7 +4,7 @@ url: https://www.abhinavsaxena.com/moonwalk # root address of the site
4
4
  description: > # description of the site (multiple lines allowed)
5
5
  Moonwalk is a fast and elegant Jekyll theme with a clean dark mode. It comes with horizontal list (for navbar and footer), card list (for portfolio), and a generic vertical list. It is very easy to modify in case you want to build over it - please see _layouts/home.html to do that.
6
6
 
7
- permalink: /:slug.html
7
+ permalink: /:slug
8
8
 
9
9
  favicon: "./logo.png" # relative path to site's favicon
10
10
 
@@ -29,6 +29,7 @@ theme_config:
29
29
  show_blog: true # show blog posts added in _posts
30
30
  show_old_projects: true # show old projects as cards, add in _data/home.yml
31
31
  show_misc_list: false # show generic vertical list for misc details, add _data/home.yml
32
+ show_reading_time: true # show number of words and reading time in the blog posts
32
33
  # options for "home" page
33
34
  home:
34
35
  title_projects: Portfolio
@@ -1,4 +1,7 @@
1
1
  <p class="post-date text-bold text-upcase">
2
+ {% if page.author %}
3
+ <span class="text-bold">{{ page.author }}</span> /
4
+ {% endif %}
2
5
  {% if page.date %}
3
6
  <span>{{ page.date | date: "%B %Y"}}</span>
4
7
  {% endif %}
@@ -8,3 +11,15 @@
8
11
  data-twitter="SooprCo"
9
12
  >
10
13
  </div>
14
+
15
+ {% if site.theme_config.show_reading_time == true %}
16
+ <p class="post-date text-bold">
17
+ {% capture words %}
18
+ {{ content | number_of_words | minus: 180 }}
19
+ {% endcapture %}
20
+ {% unless words contains '-' %}
21
+ {{ words | append: ' Words, ' }}
22
+ {{ words | plus: 180 | divided_by: 180 | append: ' Minutes' }}
23
+ {% endunless %}
24
+ </p>
25
+ {% endif %}
data/_sass/moonwalk.scss CHANGED
@@ -170,6 +170,7 @@ mark {
170
170
  }
171
171
  .text-upcase {
172
172
  text-transform: uppercase;
173
+ letter-spacing: 1px;
173
174
  }
174
175
  p code, li code {
175
176
  background-color: var(--bg-secondary);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moonwalk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abhinav Saxena
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-11 00:00:00.000000000 Z
11
+ date: 2022-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 3.23.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: webrick
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.7'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.7'
69
83
  description:
70
84
  email:
71
85
  - abhinav061@gmail.com