darlog 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: 24eb1378ef2ac2def8b317abebb58b4e38a34be205bd6ac67ca5eac09bf570d4
4
- data.tar.gz: 012bec576bb3af16062f40751b5bfbcf0161332743dbe5703d6614f1a855645d
3
+ metadata.gz: f1742304c36ae91e6ff6dab65be3607afe1de0c16f9bf9ccc7b6c4f6c8a2048f
4
+ data.tar.gz: 0e8a21cbc660fab55592f3c42a0f12ff93652b4d65a2a818484d02f420ffe5ee
5
5
  SHA512:
6
- metadata.gz: a2a491a33e2b11c44896c5b52ab1488e1123ec0c9f3150c9ff4bcacc1787ec7fb505589fc646a0438e732d56325a0f2ee1e46c9b29114822c3247d36cff975b1
7
- data.tar.gz: f22ab8ac5fe2db426a642cb21bc6ed8062a3dc30af5a1d7ff2af2e86c2795ca4b810eeabcb9a32fa8211485a58b132b689484f8d0d014b1bc9d29b513a605f69
6
+ metadata.gz: 1c327614722279744a3e028d45b8da39ed3c5345eb364c7f170e490206a4ffd708b43056410870e1dd402e3cd45ad6cc5a291c9ee0449671cc08cb90dbf54adc
7
+ data.tar.gz: d25f891906eb870d09f838e39000eb49565fb3168431507fe5887fc490a317d4f2ba55db33b2e4ffbe6a3b7a22e1bee6ba3c6580ee8d9ac58f18171f354e8d80
data/README.md CHANGED
@@ -1,53 +1,168 @@
1
1
  ---
2
2
  layout: page
3
3
  title: About
4
+ permalink: about
4
5
  ---
5
6
 
6
7
  # Darlog blog theme
7
8
 
8
- Darlog theme is minimalistic dark theme and is suitable for any kind of blogging. Theme is made not without the help of [Hacker-Blog](https://github.com/tocttou/hacker-blog) one, thus anything that is true for it
9
+ Darlog theme is a minimalistic dark theme for Jekyll and is suitable for any kind of blogging. Theme is made not without the help of [Hacker-Blog](https://github.com/tocttou/hacker-blog) one, thus anything that is true for it
9
10
  is also true for this one so I suggest you go there and checkout the desciption for more details.
10
11
 
11
- Demo: https://darlog-theme.netlify.com/
12
+ [Demo](https://darlog-theme.netlify.com/)
13
+
14
+
15
+ ## Presequence
16
+ [Ruby](https://jekyllrb.com/docs/)
17
+
18
+
19
+ jekyll new my-blog
20
+
21
+
22
+ and open your code editor in that folder which would be `my-blog` in this case.
12
23
 
13
24
  ## Installation
14
25
 
15
26
  Add this line to your Jekyll site's `Gemfile`:
16
27
 
17
28
  ```ruby
18
- gem "darlog"
29
+ gem "darlog", "~> 0.1.1"
19
30
  ```
20
31
 
21
32
  And add this line to your Jekyll site's `_config.yml`:
22
33
 
34
+ ```yaml
35
+ paginate: 4
36
+ ```
37
+
38
+ Change the theme `darlog` in the same `_config.yml`
23
39
  ```yaml
24
40
  theme: darlog
25
41
  ```
26
42
 
43
+ And add the theme plugins in the `Gemfile`, last 3 rows are the theme specific, the first one should be there by default.
44
+ ```yaml
45
+ group :jekyll_plugins do
46
+ gem "jekyll-feed", "~> 0.12"
47
+ gem 'jekyll-seo-tag', '~> 2.6', '>= 2.6.1'
48
+ gem 'jekyll-paginate', '~> 1.1'
49
+ gem 'jekyll-sitemap', '~> 1.3', '>= 1.3.1'
50
+ end
51
+ ```
52
+
27
53
  And then execute:
28
54
 
29
- $ bundle
55
+ bundle
56
+
57
+
58
+ Rename `index.markdown` file to `index.html` and replace the content in it with:
59
+
60
+ ```html
61
+ ---
62
+ layout: default
63
+ ---
64
+
65
+
30
66
 
31
- Or install it yourself as:
67
+ <ul class="posts-container">
68
+ {% for post in paginator.posts %}
69
+ <li class="post">
70
+ <div class="post-title">
71
+ <a href="{{ post.url | prepend: site.baseurl | replace: '//', '/' }}">{{ post.title }}</a>
72
+ </div>
73
+
74
+ <span class="post-author">{{ post.author}}</span>
75
+ <span class="post-delimiter">•</span>
76
+ <span class="post-date" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date_to_string }}</span>
77
+
78
+ <p class="post-preview">{{ post.content | strip_html | truncatewords:40 }}</p>
79
+ </li>
80
+ {% endfor %}
81
+ </ul>
82
+ ```
32
83
 
33
- $ gem install darlog
84
+ If you get this error `Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby'` use this two commands:
34
85
 
35
- Then add the gems theme needs:
86
+ gem uninstall eventmachine
87
+ gem install eventmachine --platform ruby
36
88
 
37
- gem install jekyll-seo-tag
38
- gem install jekyll-paginate
39
- gem install jekyll-sitemap
89
+
90
+ Make folder in your root directory with the name of `css` and in it make a file with the name `main.scss` in it paste this:
91
+
92
+ ```scss
93
+ ---
94
+ #
95
+ ---
96
+ @import "style";
97
+ ```
98
+
99
+ Make a file in your root directory with the name of `archive.md` and paste
100
+ in it:
101
+
102
+ ```html
103
+ ---
104
+ layout: page
105
+ title: Archive
106
+ ---
107
+
108
+ <section>
109
+ {% if site.posts[0] %}
110
+
111
+ {% capture currentyear %}{{ 'now' | date: "%Y" }}{% endcapture %}
112
+ {% capture firstpostyear %}{{ site.posts[0].date | date: '%Y' }}{% endcapture %}
113
+ {% if currentyear == firstpostyear %}
114
+ <h3>This year's posts</h3>
115
+ {% else %}
116
+ <h3>{{ firstpostyear }}</h3>
117
+ {% endif %}
118
+
119
+ {%for post in site.posts %}
120
+ {% unless post.next %}
121
+ <ul>
122
+ {% else %}
123
+ {% capture year %}{{ post.date | date: '%Y' }}{% endcapture %}
124
+ {% capture nyear %}{{ post.next.date | date: '%Y' }}{% endcapture %}
125
+ {% if year != nyear %}
126
+ </ul>
127
+ <h3>{{ post.date | date: '%Y' }}</h3>
128
+ <ul>
129
+ {% endif %}
130
+ {% endunless %}
131
+ <li><time>{{ post.date | date:"%d %b" }} - </time>
132
+ <a href="{{ post.url | prepend: site.baseurl | replace: '//', '/' }}">
133
+ {{ post.title }}
134
+ </a>
135
+ </li>
136
+ {% endfor %}
137
+ </ul>
138
+
139
+ {% endif %}
140
+ </section>
141
+ ```
40
142
 
41
143
  Finally run it with live reload and stat writing your awesome blog
42
144
 
43
145
  jekyll serve --livereload
44
146
 
45
- ## Usage
147
+ ## Additional
148
+
149
+ Include in your posts head a property for author so you can see the posts author.
150
+
151
+ ```yaml
152
+ ---
153
+ layout: post
154
+ title: "Welcome to Jekyll!"
155
+ date: 2019-10-27 18:50:32 +0200
156
+ categories: jekyll update
157
+ author: Maverick
158
+ ---
159
+ ```
160
+
161
+ Use this command to locate the theme's source files if you need them for any
162
+ purpose of editing the theme by your needs.
46
163
 
47
- Use bundle show minima to see where the theme is located and copy all files
48
- you need to edit for your needs.
164
+ bundle show darlog
49
165
 
50
- $ bundle show minima
51
166
 
52
167
 
53
168
  ## Contributing
@@ -75,7 +190,7 @@ owner: [Your name]
75
190
  year: [Current Year]
76
191
  ```
77
192
 
78
- *Note: All links in the site are prepended with `baseurl`. Default `baseurl` is `/`. Any other baseurl can be setup like `baseurl: /hacker-blog`, which makes the site available at `http://domain.name/hacker-blog`.*
193
+ *Note: All links in the site are prepended with `baseurl`. Default `baseurl` is `/`. Any other baseurl can be setup like `baseurl: /darlog`, which makes the site available at `http://domain.name/darlog`.*
79
194
 
80
195
  Additionally, you may choose to set the following optional variables:
81
196
 
@@ -86,4 +201,3 @@ google_analytics: [Your Google Analytics tracking ID]
86
201
  ## License
87
202
 
88
203
  The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
89
-
data/_layouts/post.html CHANGED
@@ -3,7 +3,7 @@ layout: default
3
3
  ---
4
4
 
5
5
  <article class="post-wrapper">
6
- <h2 class="">{{ page.title }}</h2>
6
+ <h2 class="post-title">{{ page.title }}</h2>
7
7
  <span class="post-author">{{ page.author}}</span>
8
8
  <span class="post-delimiter">•</span>
9
9
  <span class="post-date" datetime="{{ post.date | date_to_xmlschema }}">{{ page.date | date_to_string }}</span>
data/_sass/_posts.scss CHANGED
@@ -50,13 +50,13 @@
50
50
  }
51
51
 
52
52
  .post-wrapper {
53
- h2 {
54
- margin-bottom: -5px;
55
- }
56
-
57
53
  .post-content {
58
54
  padding-top: 1rem;
59
55
  }
56
+
57
+ .post-title {
58
+ margin-bottom: -5px;
59
+ }
60
60
  }
61
61
 
62
62
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: darlog
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
  - Maverick Cloud
@@ -99,5 +99,6 @@ requirements: []
99
99
  rubygems_version: 3.0.6
100
100
  signing_key:
101
101
  specification_version: 4
102
- summary: Dark themed personal blog that can be used for any purpose.
102
+ summary: Darlog theme is a minimalistic dark theme for Jekyll and is suitable for
103
+ any kind of blogging.
103
104
  test_files: []