jekyll-theme-mehdix-rtl 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a133b78de33cbe38194ce75a5fb6eb23c5173a41
4
+ data.tar.gz: ac69b63b7c92ff542a644d501acae2192504762f
5
+ SHA512:
6
+ metadata.gz: 6cc2d5ec875779304d9dc6de971a54482d32c7f2ca018d599841a52c0652427112fdd426d7e4281fa32af9b5e94e4a96ecb97f1b7801e3abc15c0d7fd659643a
7
+ data.tar.gz: 82af70eab25df42aaf8f7a40700a20a7a2dde3eb201e160b2abe48f0baebf39883bbf41a96d138bd5cc4595bbc51f1b0febeb71383f99ba9820745708fb0b98b
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2016, 2017 Mehdi Sadeghi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,60 @@
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
+
3
+ ![](assets/img/frontpage.png)
4
+
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
+
7
+ During the last few years people have reached out to me asking how to setup a persian Jekyll website with Jalali calendar support. Since Jekyll now supports themes, I created this theme based on my website to help others to bootstrap their own websites.
8
+
9
+ This repository can be of use to anybody willing to build a new right to left website. I gradually fix issues which I came across while writing new posts in my website. This website is produced using [Jekyll](http://jekyllrb.com/) static site generator.
10
+
11
+ ## Installation
12
+
13
+ Take the following steps to make your own website based on this theme. First of all, create your website if you have not already:
14
+
15
+
16
+ $ jekyll create mywebsite
17
+
18
+
19
+ Then add this line to your Jekyll site's Gemfile:
20
+
21
+ ```ruby
22
+ gem "jekyll-theme-mehdix-rtl"
23
+ ```
24
+
25
+ And add this line to your Jekyll site's `_config.yml`:
26
+
27
+ ```yaml
28
+ theme: jekyll-theme-mehdix-rtl
29
+ ```
30
+
31
+ And then execute:
32
+
33
+ $ bundle
34
+
35
+ Or install it yourself as:
36
+
37
+ $ gem install jekyll-theme-mehdix-rtl
38
+
39
+
40
+ You can override theme style by creating matching files with the same structure inside your Jekyll source tree. See Jekyll [Themes docs](https://jekyllrb.com/docs/themes/) for more information on that.
41
+
42
+
43
+ ## Further customization
44
+ If you put code blocks and they appear incorrectly, you can use _Markright gem. First add it to your Gemfile:
45
+
46
+ ```ruby
47
+ gem "jekyll-markright"
48
+ ```
49
+
50
+ And change your __config.yml_ respectively:
51
+
52
+ ```yaml
53
+ markdown: Markright
54
+ ```
55
+
56
+
57
+
58
+ ## License
59
+
60
+ [MIT](http://opensource.org/licenses/MIT)
@@ -0,0 +1,10 @@
1
+ <script>
2
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
6
+
7
+ ga('create', 'UA-57282325-1', 'auto');
8
+ ga('send', 'pageview');
9
+
10
+ </script>
@@ -0,0 +1 @@
1
+ Mail designed by <a href="http://www.thenounproject.com/parkerbennett">Parker Bennett</a> from the <a href="http://www.thenounproject.com">Noun Project</a>
@@ -0,0 +1,10 @@
1
+ <!-- An element a visitor can click if they <3 comments! -->
2
+ <!--button class="show-comments">نمایش نظرات</button-->
3
+
4
+ <!-- The empty element required for Disqus to loads comments into -->
5
+ <div id="disqus_thread"></div>
6
+
7
+ <!--script src="//code.jquery.com/jquery-1.11.3.min.js"></script-->
8
+ <script src="{{ 'assets/js/disqus.js' | absolute_url}}"></script>
9
+
10
+ <noscript> Please enable JavaScript to view disqus comments. </noscript>
@@ -0,0 +1,12 @@
1
+ <script type="text/javascript">
2
+ /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
3
+ var disqus_shortname = 'mehdix'; // required: replace example with your forum shortname
4
+
5
+ /* * * DON'T EDIT BELOW THIS LINE * * */
6
+ (function () {
7
+ var s = document.createElement('script'); s.async = true;
8
+ s.type = 'text/javascript';
9
+ s.src = '//' + disqus_shortname + '.disqus.com/count.js';
10
+ (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
11
+ }());
12
+ </script>
@@ -0,0 +1,75 @@
1
+ <footer class="site-footer">
2
+
3
+ <div class="wrapper">
4
+ <div class="footer-col">
5
+ <img id="gravatar" class="circle" src="{{ 'assets/img/me.png' | absolute_url }}" alt="">
6
+ </div>
7
+ <h2 class="footer-heading">معرفی</h2>
8
+
9
+ <div class="footer-col-wrapper">
10
+ <!--div class="footer-col footer-col-1">
11
+ <ul class="contact-list">
12
+ <li>{{ site.title }}</li>
13
+ <li><a href="mailto:{{ site.email }}"> تماس</a></li>
14
+ </ul>
15
+ </div-->
16
+
17
+ <div class="footer-col footer-col-3">
18
+
19
+ <p class="text">{{ site.long_description }}</p>
20
+ </div>
21
+ <div class="footer-col footer-col-2">
22
+ <ul class="social-media-list">
23
+ {% if site.github_username %}
24
+ <li>
25
+ <a href="https://github.com/{{ site.github_username }}">
26
+ <span class="icon icon--github">
27
+ <svg viewBox="0 0 16 16">
28
+ <path fill="#828282" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037 C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65 c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/>
29
+ </svg>
30
+ </span>
31
+
32
+ <span class="username">پروژه‌ها</span>
33
+ </a>
34
+ </li>
35
+ {% endif %}
36
+
37
+ {% if site.twitter_username %}
38
+ <li>
39
+ <a href="https://twitter.com/{{ site.twitter_username }}">
40
+ <span class="icon icon--twitter">
41
+ <svg viewBox="0 0 16 16">
42
+ <path fill="#828282" d="M15.969,3.058c-0.586,0.26-1.217,0.436-1.878,0.515c0.675-0.405,1.194-1.045,1.438-1.809
43
+ c-0.632,0.375-1.332,0.647-2.076,0.793c-0.596-0.636-1.446-1.033-2.387-1.033c-1.806,0-3.27,1.464-3.27,3.27 c0,0.256,0.029,0.506,0.085,0.745C5.163,5.404,2.753,4.102,1.14,2.124C0.859,2.607,0.698,3.168,0.698,3.767 c0,1.134,0.577,2.135,1.455,2.722C1.616,6.472,1.112,6.325,0.671,6.08c0,0.014,0,0.027,0,0.041c0,1.584,1.127,2.906,2.623,3.206 C3.02,9.402,2.731,9.442,2.433,9.442c-0.211,0-0.416-0.021-0.615-0.059c0.416,1.299,1.624,2.245,3.055,2.271 c-1.119,0.877-2.529,1.4-4.061,1.4c-0.264,0-0.524-0.015-0.78-0.046c1.447,0.928,3.166,1.469,5.013,1.469 c6.015,0,9.304-4.983,9.304-9.304c0-0.142-0.003-0.283-0.009-0.423C14.976,4.29,15.531,3.714,15.969,3.058z"/>
44
+ </svg>
45
+ </span>
46
+
47
+ <span class="username">توئیت‌ها</span>
48
+ </a>
49
+ </li>
50
+ <li>
51
+ <a href="https://feedburner.google.com/fb/a/mailverify?uri=mehdixir&amp;loc=en_US"><span class="icon icon--feed">
52
+ <img src="{{ 'assets/img/feed_gray_50.png' | absolute_url}}" alt="" />
53
+ </span><span class="username">خبرنامه</span></a>
54
+ </li>
55
+ <li>
56
+ <a href="http://feeds.feedburner.com/mehdixir"><span class="icon icon--feed">
57
+ <img src="{{ 'assets/img/feed_gray_50.png' | absolute_url }}" alt=""/>
58
+ </span><span class="username">خوراک</span></a>
59
+ </li>
60
+ <li>
61
+ <span class="icon"><a href="http://validator.w3.org/feed/check.cgi?url=http%3A//mehdix.ir/feed.xml"><img src={{ "assets/img/valid-atom.png" | absolute_url }} alt="[Valid Atom 1.0]" title="Validate my Atom 1.0 feed" /></a></span>
62
+ <span class="icon"><a href="https://app.wercker.com/project/bykey/7cdfaf1d4ea865468f4965954ed95247"><img src="https://app.wercker.com/status/7cdfaf1d4ea865468f4965954ed95247/s" alt="Build Status" title="wercker status" /></a>
63
+ </span>
64
+ </li>
65
+ {% endif %}
66
+ </ul>
67
+ </div>
68
+ </div>
69
+ {% include license.html %}
70
+ </div>
71
+ <div class="center">
72
+ <small style="color:gray">Site generated on {{ site.time | date_to_rfc822 }}</small>
73
+ </div>
74
+ {% include analyticstracking.html %}
75
+ </footer>
@@ -0,0 +1,31 @@
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">
9
+
10
+ <title>{% if page.title %}{{ page.title }}{% else %}{{ site.title}} {% endif %}</title>
11
+ <meta name="description" content="{{ site.description }}">
12
+
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}}">
16
+
17
+ {% if page.style%}
18
+ <style type="text/css">
19
+ {{ page.style }}
20
+ </style>
21
+ {% endif %}
22
+ {% if page.url == "/404.html" %}
23
+
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 %}
31
+ </head>
@@ -0,0 +1,32 @@
1
+ <header class="site-header">
2
+
3
+ <div class="wrapper">
4
+
5
+ <a class="site-title" href="{{ '' | absolute_url}}">{{ site.title }}</a>
6
+ <small> {{ site.motto }} </small>
7
+
8
+ {% if site.pages.size > 3 %}
9
+
10
+ <nav class="site-nav">
11
+ <a href="#" class="menu-icon">
12
+ <svg viewBox="0 0 18 15">
13
+ <path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
14
+ <path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
15
+ <path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
16
+ </svg>
17
+ </a>
18
+
19
+ <div class="trigger">
20
+ {% for page in site.pages %}
21
+ {% if page.title and page.publish %}
22
+ <a class="page-link" href="{{ page.url | absolute_url }}">{{ page.title }}</a>
23
+ {% endif %}
24
+ {% endfor %}
25
+ </div>
26
+ </nav>
27
+
28
+ {% endif %}
29
+
30
+ </div>
31
+
32
+ </header>
@@ -0,0 +1,6 @@
1
+ <div id="license" class="textwidget">
2
+ <a rel="license" href="http://creativecommons.org/licenses/by/4.0/deed.fa"><img alt="مجوز کریتیو کامنز" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/80x15.png" /></a><br />
3
+ مطالب این وبلاگ تحت مجوز
4
+ <a rel="license" href="http://creativecommons.org/licenses/by/4.0/deed.fa">
5
+ کریتیو کامنز اتریبیوشن ۴.۰ اینترنشنال </a>قرار دارد.
6
+ </div>
@@ -0,0 +1,4 @@
1
+ <figure class="post-image">
2
+ <img src="{{ include.src }}" alt="{{ include.alt }}">
3
+ <figcaption>{{ include.caption }}</figcaption>
4
+ </figure>
@@ -0,0 +1,3 @@
1
+ <div class="textwidget"><a href="http://salam-donya.ir/"><img src="http://salam-donya.ir/lib/app/css/logo.png"></a>
2
+
3
+ </div>
@@ -0,0 +1,29 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html dir="rtl" lang="fa">
4
+
5
+ {% include head.html %}
6
+
7
+ <body>
8
+ <div class="container">
9
+
10
+ {% include header.html %}
11
+
12
+ <section class="content">
13
+
14
+ <div class="page-content">
15
+ <div class="wrapper">
16
+ {{ content }}
17
+ </div>
18
+ </div>
19
+ </section>
20
+
21
+ {% include footer.html %}
22
+
23
+ </div>
24
+
25
+ <script src="{{ 'assets/js/main.js' | absolute_url }}"></script>
26
+
27
+ </body>
28
+
29
+ </html>
@@ -0,0 +1,17 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="home">
6
+
7
+ <h1 class="page-heading">❖ &nbsp; همه‌ی نوشته‌ها</h1>
8
+
9
+ <ul id="post-list">
10
+ {% for post in site.posts %}
11
+ <li>
12
+ <span class="post-meta list-meta-col"><span class="date">{{ post.date | jdate: "%A %d %b %Y" | habify }}</span></span>
13
+ <span><a href="{{ post.url | absolute_url }}">{{ post.title }}</a></span>
14
+ </li>
15
+ {% endfor %}
16
+ </ul>
17
+ </div>
@@ -0,0 +1,23 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html dir="rtl">
4
+
5
+ {% include head.html %}
6
+
7
+ <body>
8
+ <div class="container">
9
+
10
+ <section class="content">
11
+
12
+ <div class="page-content">
13
+ <div class="wrapper">
14
+ {{ content }}
15
+ </div>
16
+ </div>
17
+ </section>
18
+
19
+ </div>
20
+
21
+ </body>
22
+
23
+ </html>
@@ -0,0 +1,14 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="post">
5
+
6
+ <header class="post-header">
7
+ <h1 class="post-title">{{ page.title }}</h1>
8
+ </header>
9
+
10
+ <article class="post-content">
11
+ {{ content }}
12
+ </article>
13
+
14
+ </div>
@@ -0,0 +1,36 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="post">
5
+
6
+ <header class="post-header">
7
+ <h1 class="post-title">{{ page.title }}</h1>
8
+ <p class="post-meta"><span class="date">{{ page.date | jdate: "%A %d %b %Y" | habify}}</span><!--span>{% if page.author %} • {{ page.author }}{% endif %}</span-->{% if page.meta %} • {{ page.meta }}{% endif %}</p>
9
+ </header>
10
+
11
+ <article class="post-content">
12
+ {{ content }}
13
+ </article>
14
+
15
+
16
+ <small id="post-tags">
17
+ {% for tag in page.tags %}
18
+ <i class="icon-tags"></i>
19
+ <a rel="tag" href="{{ tag | tag_url }}">{{tag}}</a> &nbsp;
20
+ {% endfor %}
21
+ </small>
22
+
23
+ <div style="border-top:1px dotted;">
24
+ <p>
25
+ {% if page.next %}
26
+ <a href="{{ page.next.url | absolute_url }}" style="float: left"> {{ page.next.title }} >> </a>
27
+ {% endif %}
28
+
29
+ {% if page.previous %}
30
+ <a href="{{ page.previous.url | absolute_url }}" style="margin-right:0px;">&#60&#60 {{ page.previous.title }}</a>
31
+ {% endif %}
32
+ </p>
33
+ </div>
34
+
35
+ {% include disqus.html %}
36
+ </div>
@@ -0,0 +1,18 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="post project">
5
+
6
+ <header class="post-header">
7
+ <h1 class="post-title">{{ page.title }}</h1>
8
+ </header>
9
+
10
+ <article class="post-content">
11
+ {{ content }}
12
+ </article>
13
+
14
+ </div>
15
+
16
+ {% if page.comments %}
17
+ {% include disqus.html %}
18
+ {% endif %}
@@ -0,0 +1,25 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="tag-page">
6
+
7
+ <h1 class="page-heading">❖ &nbsp; {{ page.tag }}</h1>
8
+
9
+ <ul id="post-list">
10
+ {% for post in page.posts %}
11
+ <li>
12
+ <span class="post-meta list-meta-col">
13
+ <span class="date">{{ post.date | jdate: "%A %d %b %Y" | habify }}</span></span>
14
+ <span><a href="{{ post.url | absolute_url }}">{{ post.title }}</a></span>
15
+ </li>
16
+ {% endfor %}
17
+ </ul>
18
+
19
+ <hr >
20
+
21
+ <div id="tag-cloud">
22
+ {{ site | tag_cloud }}
23
+ </div>
24
+
25
+ </div>