type-on-strap 1.3.0 → 1.4.1

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: c99e7dccd2e2c2478de4df5f26f1acc043df4e7f02c6979c6efdf06b4a406074
4
- data.tar.gz: 5372838e020faf93ade4284f5e43c21b13529102d6afe6595a9aa5b85f9228f1
3
+ metadata.gz: 97ab072caae05eaaddc4d20a84cc79ed6b77512ae78ae56096675762b0dc2ed0
4
+ data.tar.gz: 17d5ca6e3903b4cb1f6f96c61374a87ec92572f09c95153a57a072d94191ddcb
5
5
  SHA512:
6
- metadata.gz: 8ef1dc0964271a0a50d2a106be4596a8d09f3b3cfa0288e89b746818a831afc0eb6109734a3f001594543ef76be26ed306d9e5cdbb781ec059df238ec06c7712
7
- data.tar.gz: adf56ba3a7c75267b4fb800cdacc3688fe020482017e4ab45cd671f0636f897aeb4938a5de7a4ccd6bee43c9e1851650c69f8054b5c537a7eb159997626476da
6
+ metadata.gz: 5e861d4acf3b60c4a6b29844b7ba8f8431c81e8448e153e3763167b6fc977e58ebbf81c6e2bbc9d909a228446ba365acbddd26897fef07d2a497b10ba9cd2bbe
7
+ data.tar.gz: 52dc4221b463bd40e61639ac00a6f5e68f9f01242089ce66e38c2c35bfdc51395ec021145469b4b4780053a3fc517f3a613c20e643b451c0f0e3c586a5f11e13
data/README.md CHANGED
@@ -11,6 +11,7 @@ A free and open-source [Jekyll](https://jekyllrb.com) theme. Based on Rohan Chan
11
11
  * Bootstrap : [Get Bootstrap](http://getbootstrap.com/)
12
12
  * Search feature : [Simple-Jekyll-Search](https://github.com/christian-fei/Simple-Jekyll-Search)
13
13
  * Math Rendering : [KateX](https://github.com/Khan/KaTeX)
14
+ * Nice fonts : [Font Awesome](https://fontawesome.com/), [Source Sans Pro](https://fonts.google.com/specimen/Source+Sans+Pro), [Pacifico](https://fonts.google.com/specimen/Pacifico?selection.family=Pacifico)
14
15
  * Seo Tags : [Jekyll-seo-tag](https://help.github.com/articles/search-engine-optimization-for-github-pages/)
15
16
  * Syntax Highlighting: Easily customisable [Base16](https://github.com/chriskempson/base16)
16
17
  * Free of rights images from [pexels](https://www.pexels.com/)
@@ -27,7 +28,8 @@ A free and open-source [Jekyll](https://jekyllrb.com) theme. Based on Rohan Chan
27
28
  4. [Layout](https://github.com/Sylhare/Type-on-Strap#layout)
28
29
  5. [Feature pages](https://github.com/Sylhare/Type-on-Strap#feature-pages)
29
30
  6. [Template as a Gem](https://github.com/Sylhare/Type-on-Strap#Template-as-a-Gem)
30
- 7. [License](https://github.com/Sylhare/Type-on-Strap#license)
31
+ 7. [Advanced](https://github.com/Sylhare/Type-on-Strap#advanced)
32
+ 8. [License](https://github.com/Sylhare/Type-on-Strap#license)
31
33
 
32
34
  ## Usage
33
35
 
@@ -53,7 +55,7 @@ jekyll-theme-basically-basic
53
55
  ├── assets
54
56
  | ├── js # theme javascript, Katex, jquery, bootstrap, jekyll search,
55
57
  | ├── css # isolated Bootstrap, font-awesome, katex and main css
56
- | ├── fonts # Font-Awesome, Glyphicon, and other fonts
58
+ | ├── fonts # Font-Awesome, and other fonts
57
59
  | └── img # Images used for the template
58
60
  ├── pages
59
61
  | ├── 404.md # To be displayed when url is wrong
@@ -94,15 +96,15 @@ Please configure this before using the theme.
94
96
 
95
97
  ### Meta and Branding
96
98
 
97
- Meta variables hold basic information about your Jekyll site which will be used throughout the site and as meta properties for search engines, browsers, and the site's RSS feed.
99
+ Meta variables hold basic information about your Jekyll site which will be used throughout the site
100
+ and as meta properties for search engines, browsers, and the site's RSS feed.
98
101
 
99
102
  Change these variables in `_config.yml`:
100
103
 
101
104
  ```yml
102
105
  theme_settings:
103
106
  title: My Jekyll Blog # Name of website
104
- avatar: assets/img/triangular.svg # Path of avatar image, to be displayed in the theme's header
105
- gravatar: f98....6bfc # MD5 hash of your email address
107
+ avatar: assets/img/triangle.png # Path of avatar image, to be displayed in the theme's header
106
108
  description: My blog posts # Short description, primarily used by search engines
107
109
  ```
108
110
 
@@ -115,7 +117,7 @@ Customize your site header/footer with these variables in `_config.yml`:
115
117
  ```yml
116
118
  theme_settings:
117
119
  header_text: Welcome to my Jekyll blog
118
- header_text_feature_image: assets/img/sample3.png
120
+ header_feature_image: assets/img/sample3.png
119
121
  footer_text: Copyright 2017
120
122
  ```
121
123
 
@@ -147,11 +149,14 @@ Jekyll works with [liquid](https://shopify.github.io/liquid/) tags usually repre
147
149
  {{ liquid.tag | filter }}
148
150
  ```
149
151
 
150
- These are useful to render your jekyll files. You can learn more about them on [shopify's doc](https://help.shopify.com/themes/liquid/basics)
152
+ These are useful to render your jekyll files.
153
+ You can learn more about them on [shopify's doc](https://help.shopify.com/themes/liquid/basics)
151
154
 
152
155
  ### Footer's icons
153
156
 
154
- Display the site's icon from [Font Awesome](https://fortawesome.github.io/Font-Awesome/) in the footer. All icon variables should be your username enclosed in quotes (e.g. "username") in `_config.yml`, except for the following variables:
157
+ Display the site's icon from [Font Awesome](https://fortawesome.github.io/Font-Awesome/) in the footer.
158
+ All icon variables should be your username enclosed in quotes (e.g. "username") in `_config.yml`,
159
+ except for the following variables:
155
160
 
156
161
  ```yml
157
162
  theme_settings:
@@ -166,7 +171,8 @@ Display the site's icon from [Font Awesome](https://fortawesome.github.io/Font-A
166
171
  Optionally, if you have a [Disqus](https://disqus.com/) account, you can show a
167
172
  comments section below each post.
168
173
 
169
- To enable Disqus comments, add your [Disqus shortname](https://help.disqus.com/customer/portal/articles/466208) to your project's `_config.yml` file:
174
+ To enable Disqus comments, add your [Disqus shortname](https://help.disqus.com/customer/portal/articles/466208)
175
+ to your project's `_config.yml` file:
170
176
 
171
177
  ```yml
172
178
  theme_settings:
@@ -192,7 +198,8 @@ When KateX is set in `_config.yml`:
192
198
  katex: true # to Enable it
193
199
  ```
194
200
 
195
- You can then wrap math expressions with `$$` signs in your posts and make sure you have set the `katex` variable in `_config.yml` to `true` for math typesetting.
201
+ You can then wrap math expressions with `$$` signs in your posts and make sure you have set the `katex` variable
202
+ in `_config.yml` to `true` for math typesetting.
196
203
 
197
204
  For inline math typesetting, type your math expression on the *same line* as your content. For example:
198
205
 
@@ -210,7 +217,9 @@ $$
210
217
 
211
218
  ### Post excerpt
212
219
 
213
- The [excerpt](https://jekyllrb.com/docs/posts/#post-excerpts) are the first lines of an article that is display on the blog page. The length of the excerpt has a default of around `250` characters and can be manually set in the post using:
220
+ The [excerpt](https://jekyllrb.com/docs/posts/#post-excerpts) are the first lines of an article that is display on the blog page.
221
+ The length of the excerpt has a default of around `250` characters and can be manually set in the post using:
222
+
214
223
  ```yml
215
224
  ---
216
225
  layout: post
@@ -226,7 +235,8 @@ some text in the excerpt
226
235
  The html is stripped out of the excerpt so it only display text.
227
236
 
228
237
  ## Layout
229
- Please refer to the [Jekyll docs for writing posts](https://jekyllrb.com/docs/posts/). Non-standard features are documented below.
238
+ Please refer to the [Jekyll docs for writing posts](https://jekyllrb.com/docs/posts/).
239
+ Non-standard features are documented below.
230
240
 
231
241
  ### Layout: Post
232
242
 
@@ -239,14 +249,20 @@ title: Hello World # Title of the page
239
249
  hide_title: true # Hide the title when displaying the post, but shown in lists of posts
240
250
  feature-img: "assets/img/sample.png" # Add a feature-image to the post
241
251
  thumbnail: "assets/img/thumbnail/sample-th.png" # Add a thumbnail image on blog view
252
+ color: rgb(80,140,22) # Add the specified color as feature image, and change link colors in post
242
253
  bootstrap: true # Add bootstrap to the page
243
254
  tags: [sample, markdown, html]
244
255
  ---
245
256
  ```
246
257
 
247
- With `thumbnail`, you can add a smaller image than the `feature-img`. If you don't want/have a thumbnail you can still use the same image as the feature one.
258
+ With `thumbnail`, you can add a smaller image than the `feature-img`.
259
+ If you don't want/have a thumbnail you can still use the same image as the feature one.
260
+
261
+ The background used when `color` is set comes from `lineart.png` from [xukimseven](https://github.com/xukimseven)
262
+ you can edit it in the config file (`theme_settings > color_image`). If you want another one, put it in `/assets/img` as well.
248
263
 
249
- So the **bootstrap** is not mandatory and is only usefull if you want to add bootstrapped content in your page. It will respect the page and theme layout, mind the padding on the sides.
264
+ The **bootstrap** is not mandatory and is only useful if you want to add bootstrapped content in your page.
265
+ It will respect the page and theme layout, mind the padding on the sides.
250
266
 
251
267
  ### Layout: Page
252
268
 
@@ -274,7 +290,8 @@ This layout includes the head, navigation bar and footer around your content.
274
290
 
275
291
  ## Feature pages
276
292
 
277
- All feature pages besides the "home" one are stored in the `page` folder, they will appear in the navigation bar unless you set `Hide: true` in the front matter.
293
+ All feature pages besides the "home" one are stored in the `page` folder,
294
+ they will appear in the navigation bar unless you set `Hide: true` in the front matter.
278
295
 
279
296
  Here are the documentation for the other feature pages that can be added through `_config.yml`.
280
297
 
@@ -283,7 +300,8 @@ Here are the documentation for the other feature pages that can be added through
283
300
  This page is the used as the home page of the template (in the `index.html`). It displays the list of article in `_posts`.
284
301
  You can use this layout in another page (adding a title to it will make it appear in the navigation bar).
285
302
 
286
- The recommended width and height for the home picture is width:`2484px;` and height:`1280px` which are the dimension of the actual picture for it to be rolling down as you scroll the page.
303
+ The recommended width and height for the home picture is width:`2484px;` and height:`1280px`
304
+ which are the dimension of the actual picture for it to be rolling down as you scroll the page.
287
305
 
288
306
  ### Portfolio
289
307
 
@@ -299,11 +317,30 @@ title : Portfolio
299
317
  {% include portfolio.html %}
300
318
  ```
301
319
 
302
- ### Gallery
320
+ #### Portofolio posts
303
321
 
304
- You can create a gallery using [Masonry JS](https://masonry.desandro.com/) which will placing the pictures in optimal position based on available vertical space. You need to specify the `gallery_path` which will be used to find the pictures to render. It will take all of the picture under that directory. Then use the `include` to add it in your page.
322
+ You can format the portfolio posts in the `_portfolio` folder using the `post layout`. Here are little explaination on some of the possible feature you can use and what they will do.
305
323
 
324
+ If you decide to use a date, please be sure to use one that can be parsed such as `yyyy-mm-dd`. You can see more format example on the demo posts that are available for the theme:
325
+
326
+ ```yml
327
+ ---
328
+ layout: post
329
+ title: Circus # Title of the portfolio post
330
+ feature-img: "assets/img/portfolio/cake.png" # Will display the image in the post
331
+ img: "assets/img/portfolio/cake.png" # Will display the image in the portfolio page
332
+ date: 2019-07-25 # Not mandatory, however needs to be in date format to display the date
333
+ ---
306
334
  ```
335
+
336
+ ### Gallery
337
+
338
+ You can create a gallery using [Masonry JS](https://masonry.desandro.com/) which will placing the pictures in optimal position
339
+ based on available vertical space.
340
+ You need to specify the `gallery_path` which will be used to find the pictures to render.
341
+ It will take all of the picture under that directory. Then use the `include` to add it in your page.
342
+
343
+ ```yml
307
344
  ---
308
345
  layout: page
309
346
  title: Gallery
@@ -365,6 +402,31 @@ So if you're using the template as a theme, Make sure you have:
365
402
 
366
403
  Now you can use any theme gem with github pages : [29/11/2017 Github Pages Broadcast](https://github.com/blog/2464-use-any-theme-with-github-pages)
367
404
 
405
+ ## Advanced
406
+
407
+ ### Minimizing and optimizing: css, js and images
408
+
409
+ Before you need to have `node` and `npm` installed:
410
+ - Windows: https://nodejs.org/
411
+ - Ubuntu/Debian: `apt-get install nodejs npm libgl1 libxi6`
412
+ - Fedora (dnf) / RHEL/CentOS (yum): `dnf install node npm libglvnd-glx libXi`
413
+
414
+ Then you need to install [`gulp-cli`](https://gulpjs.com/) and its dependencies:
415
+ ```shell
416
+ cd assets/
417
+ sudo npm install gulp-cli -g
418
+ npm install
419
+ ```
420
+
421
+ **Now, whenever you want to minify and optimize, run:**
422
+ ```shell
423
+ cd assets/
424
+ gulp default
425
+ # tip: run a git status to see the changes
426
+ git status
427
+ ```
428
+
368
429
  ## License
369
430
 
431
+ There are some fonts and component on this theme going under the MIT licence as well in this theme.
370
432
  [The MIT License (MIT)](https://raw.githubusercontent.com/Sylhare/Type-on-Strap/master/LICENSE)
data/_includes/blog.html CHANGED
@@ -15,9 +15,7 @@
15
15
  {{ post.title }}
16
16
  </a>
17
17
  </h1>
18
- <p class="meta">
19
- {{ post.date | date: "%B %-d, %Y" }}
20
- </p>
18
+ {% include post_info.html post=post %}
21
19
  </header>
22
20
  <div class="excerpt">
23
21
  {{ post.excerpt | strip_html | escape }}
@@ -4,16 +4,15 @@
4
4
 
5
5
  {% if paginator.previous_page and paginator.previous_page != 1%}
6
6
  <!-- << -->
7
- <a aria-label="{{ site.theme_settings.str_previous_page }}" href="{{ '/' | relative_url }}"
8
- style="margin-right:0.1em" class="button">
9
- <i class="fa fa-angle-double-left"></i>
7
+ <a aria-label="{{ site.theme_settings.str_previous_page }}" href="{{ '/' | relative_url }}" class="button">
8
+ <span><i class="fa fa-angle-double-left"></i></span>
10
9
  </a>
11
10
  {% endif %}
12
11
 
13
12
  <!-- < previous -->
14
13
  <a aria-label="{{ site.theme_settings.str_previous_page }}" href="{{ paginator.previous_page_path | relative_url }}"
15
14
  {% unless paginator.previous_page %}style="visibility:hidden"{% endunless %} class="button">
16
- <i class="fa fa-chevron-left"></i>
15
+ <span><i class="fa fa-chevron-left"></i></span>
17
16
  {{ site.theme_settings.str_previous_page }}
18
17
  </a>
19
18
  </div>
@@ -28,14 +27,13 @@
28
27
  <a aria-label="{{ site.theme_settings.str_next_page }}" href="{{ paginator.next_page_path | relative_url }}"
29
28
  {% unless paginator.next_page %}style="visibility:hidden"{% endunless %} class="button">
30
29
  {{ site.theme_settings.str_next_page }}
31
- <i class="fa fa-chevron-right"></i>
30
+ <span><i class="fa fa-chevron-right"></i></span>
32
31
  </a>
33
32
 
34
33
  {% if paginator.next_page and paginator.next_page != paginator.total_pages %}
35
34
  <!-- >> -->
36
- <a aria-label="{{ site.theme_settings.str_next_page }}" href="{{ site.paginate_path | relative_url | replace: ':num', paginator.total_pages }}"
37
- style="margin-left:0.1em" class="button">
38
- <i class="fa fa-angle-double-right"></i>
35
+ <a aria-label="{{ site.theme_settings.str_next_page }}" href="{{ site.paginate_path | relative_url | replace: ':num', paginator.total_pages }}" class="button">
36
+ <span><i class="fa fa-angle-double-right"></i></span>
39
37
  </a>
40
38
  {% endif %}
41
39
 
data/_includes/head.html CHANGED
@@ -15,7 +15,7 @@
15
15
  <link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
16
16
 
17
17
  <!-- RSS -->
18
- <link rel="alternate" type="application/atom+xml" title="{{ site.theme_settings.title }}" href="{{ 'feed.xml' | absolute_url }}"/>
18
+ <link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ 'feed.xml' | absolute_url }}"/>
19
19
 
20
20
  {% if page.bootstrap %}
21
21
  <!-- Bootstrap-4.1.3 isolation CSS -->
@@ -37,30 +37,29 @@
37
37
 
38
38
  <!-- Google Analytics -->
39
39
  {% if site.theme_settings.google_analytics %}
40
+ <!-- Global site tag (gtag.js) -->
41
+ <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.theme_settings.google_analytics }}"></script>
40
42
  <script>
41
- (function(i, s, o, g, r, a, m) {
42
- i['GoogleAnalyticsObject'] = r;
43
- i[r] = i[r] || function() {
44
- (i[r].q = i[r].q || []).push(arguments)
45
- }, i[r].l = 1 * new Date();
46
- a = s.createElement(o),
47
- m = s.getElementsByTagName(o)[0];
48
- a.async = 1;
49
- a.src = g;
50
- m.parentNode.insertBefore(a, m)
51
- })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
52
-
53
- ga('create', '{{ site.theme_settings.google_analytics }}', 'auto');
54
- ga('send', 'pageview');
55
-
43
+ window.dataLayer = window.dataLayer || [];
44
+ function gtag(){dataLayer.push(arguments);}
45
+ gtag('js', new Date());
46
+ gtag('config', '{{ site.theme_settings.google_analytics }}');
56
47
  </script>
57
- {% endif %}
58
48
 
49
+ <!-- Page analysis (analytics.js) -->
50
+ <script async src='https://www.google-analytics.com/analytics.js'></script>
51
+ <script>
52
+ window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
53
+ ga('create', '{{ site.theme_settings.google_analytics }}', 'auto');
54
+ ga('send', 'pageview');
55
+ </script>
56
+ {% endif %} <!-- End Google Analytics -->
57
+
59
58
  <!-- seo tags -->
60
59
  {% seo %}
61
60
  <!-- Manual seo tags -->
62
61
  <!--
63
- <title>{% if page.title %}{{ page.title }} |{% endif %} {{ site.theme_settings.title }}</title>
62
+ <title>{% if page.title %}{{ page.title }} |{% endif %} {{ site.title }}</title>
64
63
  <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.theme_settings.description }}{% endif %}">
65
64
  -->
66
65
  </head>
@@ -7,8 +7,8 @@
7
7
  </a>
8
8
 
9
9
  <h1 class="site-title">
10
- <a aria-label="{{ site.theme_settings.title }}" href="{{ '/' | relative_url }}">
11
- {{ site.theme_settings.title }}
10
+ <a aria-label="{{ site.title }}" href="{{ '/' | relative_url }}">
11
+ {{ site.title }}
12
12
  </a>
13
13
  </h1>
14
14
  </div>
@@ -0,0 +1,22 @@
1
+ {%- assign author-id = include.post.author-id -%}
2
+
3
+ {%- assign author_name = site.authors[author-id].name | default: author-id -%}
4
+ {%- assign avatar = site.authors[author-id].avatar -%}
5
+ {%- assign author_url = site.authors[author-id].url -%}
6
+ {%- assign date = include.post.date -%}
7
+ {%- if (author_url and (avatar or author_name)) -%}
8
+ {%- assign render_url = true -%}
9
+ {%- else -%}
10
+ {%- assign render_url = false -%}
11
+ {% endif %}
12
+
13
+ <div class="post-info">
14
+ {%- if render_url -%}<a href="{{ author_url | relative_url }}" target="_blank">{%- endif -%}
15
+ {% if avatar %}
16
+ <img src="{{ avatar | relative_url }}">
17
+ {% endif %}
18
+ <p class="meta">
19
+ {% if author_name %}{{ author_name }} - {% endif %}{{ date | date: "%B %-d, %Y" }}
20
+ </p>
21
+ {%- if render_url -%}</a>{%- endif -%}
22
+ </div>
@@ -1,18 +1,19 @@
1
1
  <div id="post-nav">
2
- {% if page.previous.url %}
3
- <div id="previous-post" class="post-nav-post">
4
- <p>{{ site.theme_settings.str_previous_post }}</p>
5
- <a alt="{{ page.previous.title }}" href="{{ page.previous.url | relative_url }}">
6
- {{ page.previous.title }}
7
- </a>
8
- </div>
9
- {% endif %}
10
- {% if page.next.url %}
11
- <div id="next-post" class="post-nav-post">
12
- <p>{{ site.theme_settings.str_next_post }}</p>
13
- <a alt="{{ page.next.title }}" href="{{ page.next.url | relative_url }}">
14
- {{ page.next.title }}
15
- </a>
16
- </div>
17
- {% endif %}
2
+ {% if page.next.url %}
3
+ <div id="previous-post">
4
+ <p>{{ site.theme_settings.str_next_post }}</p>
5
+ <a alt="{{ page.next.title }}" href="{{ page.next.url | relative_url }}">
6
+ {{ page.next.title }}
7
+ </a>
8
+ </div>
9
+ {% endif %}
10
+ {% if page.previous.url %}
11
+
12
+ <div id="next-post">
13
+ <p>{{ site.theme_settings.str_previous_post }}</p>
14
+ <a alt="{{ page.previous.title }}" href="{{ page.previous.url | relative_url }}">
15
+ {{ page.previous.title }}
16
+ </a>
17
+ </div>
18
+ {% endif %}
18
19
  </div>
@@ -15,13 +15,6 @@
15
15
  <span class="sr-only">{{ site.theme_settings.str_tweet }}</span>
16
16
  </a>
17
17
  </li>
18
- {% endif %} {% if site.theme_settings.share_buttons.google_plus %}
19
- <li>
20
- <a href="https://plus.google.com/share?url={{ page.url | absolute_url }}" target="_blank" title="{{ site.theme_settings.str_share_on }} Google+">
21
- <i class="fa fa-google-plus-square fa-2x" aria-hidden="true"></i>
22
- <span class="sr-only">{{ site.theme_settings.str_share_on }} Google+</span>
23
- </a>
24
- </li>
25
18
  {% endif %} {% if site.theme_settings.share_buttons.tumblr %}
26
19
  <li>
27
20
  <a href="http://www.tumblr.com/share?v=3&u={{ page.url | absolute_url }}&quote={{ page.title | url_encode }}%20%7C%20{{ site.title | url_encode }}&s=" target="_blank" title="{{ site.theme_settings.str_share_on }} Tumblr">
@@ -73,4 +66,4 @@
73
66
  </li>
74
67
  {% endif %}
75
68
  </ul>
76
- </div>
69
+ </div>
data/_layouts/feed.xml CHANGED
@@ -1,13 +1,19 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
2
+ <rss version="2.0"
3
+ xmlns:atom="http://www.w3.org/2005/Atom"
4
+ xmlns:webfeeds="http://webfeeds.org/rss/1.0">
3
5
  <channel>
4
- <title>{{ site.theme_settings.title | xml_escape }}</title>
6
+ <title>{{ site.title | xml_escape }}</title>
5
7
  <atom:link href="{{ "/feed.xml" | absolute_url }}" rel="self" type="application/rss+xml"/>
6
8
  <link>{{ "/" | absolute_url }}</link>
7
- <description>{{ site.theme_settings.description | xml_escape }}</description>
9
+ <description>{{ site.description | xml_escape }}</description>
8
10
  <pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
11
+ <webfeeds:icon>{{ site.theme_settings.avatar | absolute_url }}</webfeeds:icon>
9
12
  {% for post in site.posts limit:15 %}
10
13
  <item>
14
+ {% if post.thumbnail %}
15
+ <enclosure length="1" type="image" url="{{ post.thumbnail | absolute_url }}"/>
16
+ {% endif %}
11
17
  <title>{{ post.title | xml_escape }}</title>
12
18
  <link>{{ post.url | absolute_url }}</link>
13
19
  <guid isPermaLink="false">{{ post.url | relative_url }}</guid>