jekyll-theme-mehdix-rtl 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
  SHA1:
3
- metadata.gz: 2238b1aa6b43640a752fb0a897e8cd25e32bc858
4
- data.tar.gz: 4cdbd6b44a3d4a4713718dd90867c18f5427616d
3
+ metadata.gz: f28733f81c528a3f5bb0d30d86d118a013ffc9e6
4
+ data.tar.gz: 272ddebd53027ab738008b05ad7955455383fbb6
5
5
  SHA512:
6
- metadata.gz: d194299059f147cce8b4b9852a66d174f26521519b3f2b57f0691e6144a5036360a61b3c3da5efe52d55fe2c883515d395a52b8b7350e71f78755ae994586051
7
- data.tar.gz: 1903cf947a0aed441b9c7771c06831b27089730f3f93766627024f6f78efec70d36765a8a067489c2e1dc7e07eca4cb3b5d5885b8b2155025e077c591824601b
6
+ metadata.gz: 873519d3410591840ff15d65392c6bfe0e01d0f31a08bd475cc4456b676d3d0b69df5c080fe6a3c6a9cd1bfce9d74df07bef956a0aab94eec7e0d2146befadf4
7
+ data.tar.gz: b89b101cadd061ebf58723105ff8215632ef732e6da15a9cfb96e0ad6922711e4748146949b01953680e59fe6ad54f5a9ea33e440a908391afb991d5932fafc0
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # jekyll-theme-mehdix-rtl [![Gem Version](https://badge.fury.io/rb/jekyll-theme-mehdix-rtl.svg)](https://badge.fury.io/rb/jekyll-theme-mehdix-rtl)
2
2
 
3
- ![](assets/img/frontpage.png)
3
+ ![](screenshot.png)
4
4
 
5
5
  This is the jekyll theme used for my personal Persian [website](http://mehdix.ir). Persian aka Farsi is written right-to-left, however some people use Roman script to write Persian language in messaging applications and social networks.
6
6
 
@@ -41,6 +41,15 @@ You can override theme style by creating matching files with the same structure
41
41
 
42
42
 
43
43
  ## Further customization
44
+ ### Layouts
45
+ The following layouts are available for your homepage:
46
+ - home: post titles along with an excerpt and pagination
47
+ - minimal: only post titles
48
+
49
+ ### Comments
50
+ In order to enalbe disqus comments add `disqus: true` to your `_config.yml` file.
51
+
52
+ ### Forcing RTL code blocks
44
53
  If you put code blocks and they appear incorrectly, you can use _Markright gem. First add it to your Gemfile:
45
54
 
46
55
  ```ruby
@@ -57,4 +66,4 @@ markdown: Markright
57
66
 
58
67
  ## License
59
68
 
60
- [MIT](http://opensource.org/licenses/MIT)
69
+ [MIT](http://opensource.org/licenses/MIT)
data/_includes/head.html CHANGED
@@ -1,31 +1,37 @@
1
1
  <head>
2
- <meta charset="utf-8">
3
- <meta name="viewport" content="width=device-width initial-scale=1" />
4
- <meta name="keywords" content="{{ site.keywords }}" />
5
- <meta name="author" content="{{ site.author}}" />
6
- <meta name="copyright" content="{{ site.copyright }}" />
7
- <meta name="robot" content="{{ site.robot }}" />
8
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
2
+ <meta charset="utf-8">
3
+ <meta name="viewport" content="width=device-width initial-scale=1" />
4
+ <meta name="keywords" content="{{ site.keywords }}" />
5
+ <meta name="author" content="{{ site.author}}" />
6
+ <meta name="copyright" content="{{ site.copyright }}" />
7
+ <meta name="robot" content="{{ site.robot }}" />
8
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
9
+ <meta name="description" content="{{ site.description }}">
9
10
 
10
- <title>{% if page.title %}{{ page.title }}{% else %}{{ site.title}} {% endif %}</title>
11
- <meta name="description" content="{{ site.description }}">
11
+ <title>
12
+ {% if page.title %}
13
+ {{ page.title }} | {{ site.title}}
14
+ {% else %}
15
+ {{ site.title}}
16
+ {% endif %}
17
+ </title>
12
18
 
13
- <link rel="stylesheet" href="{{ 'assets/css/main.css' | absolute_url }}">
14
- <link rel="canonical" href="{{ site.baseurl, page.url | absolute_url }}">
15
- <link rel="icon" href="{{ site.favicon | absolute_url}}">
19
+ <link rel="stylesheet" href="{{ 'assets/css/main.css' | absolute_url }}">
20
+ <link rel="canonical" href="{{ site.baseurl, page.url | absolute_url }}">
21
+ <link rel="icon" href="{{ site.favicon | absolute_url}}">
16
22
 
17
- {% if page.style%}
18
- <style type="text/css">
19
- {{ page.style }}
20
- </style>
21
- {% endif %}
22
- {% if page.url == "/404.html" %}
23
+ {% if page.style%}
24
+ <style type="text/css">
25
+ {{ page.style }}
26
+ </style>
27
+ {% endif %}
28
+ {% if page.url == "/404.html" %}
23
29
 
24
- {% if post.style%}
25
- <style type="text/css">
26
- {{ post.style }}
27
- </style>
28
- {% endif %}
29
- <meta http-equiv="refresh" content="5; url='{{ site.baseurl }}/'">
30
- {% endif %}
30
+ {% if post.style%}
31
+ <style type="text/css">
32
+ {{ post.style }}
33
+ </style>
34
+ {% endif %}
35
+ <meta http-equiv="refresh" content="5; url='{{ site.baseurl | absolute_url}}'">
36
+ {% endif %}
31
37
  </head>
data/_layouts/post.html CHANGED
@@ -32,5 +32,8 @@ layout: default
32
32
  </p>
33
33
  </div>
34
34
 
35
- {% include disqus.html %}
35
+ {% if site.disqus %}
36
+ {% include disqus.html %}
37
+ {% endif %}
38
+
36
39
  </div>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-mehdix-rtl
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
  - Mehdi Sadeghi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-31 00:00:00.000000000 Z
11
+ date: 2017-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  version: '0'
186
186
  requirements: []
187
187
  rubyforge_project:
188
- rubygems_version: 2.6.11
188
+ rubygems_version: 2.6.13
189
189
  signing_key:
190
190
  specification_version: 4
191
191
  summary: A right-to-left theme for Jekyll with Jalali support and some other goodies.