jekyll-theme-mehdix-rtl 0.1.2 → 0.1.3

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: f28733f81c528a3f5bb0d30d86d118a013ffc9e6
4
- data.tar.gz: 272ddebd53027ab738008b05ad7955455383fbb6
3
+ metadata.gz: d462ba6cf9060799faaa662b5f9ff8c4ebeb5750
4
+ data.tar.gz: b1cc7cafa94559a4321f106e9fc634d178e624c0
5
5
  SHA512:
6
- metadata.gz: 873519d3410591840ff15d65392c6bfe0e01d0f31a08bd475cc4456b676d3d0b69df5c080fe6a3c6a9cd1bfce9d74df07bef956a0aab94eec7e0d2146befadf4
7
- data.tar.gz: b89b101cadd061ebf58723105ff8215632ef732e6da15a9cfb96e0ad6922711e4748146949b01953680e59fe6ad54f5a9ea33e440a908391afb991d5932fafc0
6
+ metadata.gz: 99a4d8c9d16e393cbf56eaf0c7c502f4a969bf931025549daf1223456bcaa1df1bc935586c414ccf0b3f58bcec053d1d457f63c97ea6b84d74b83d4ba25effd6
7
+ data.tar.gz: d75291fc57f0c9ddc7389fb18ca579aca3d559d330d3794f9a28dfb85d54be4b683309e41f306c02653f851c6bd1b72e9c8b384d399c1adc3e6050019b981b22
data/README.md CHANGED
@@ -62,6 +62,8 @@ And change your __config.yml_ respectively:
62
62
  markdown: Markright
63
63
  ```
64
64
 
65
+ ### Analytics
66
+ In order to send pageviews to Google Analytics set your ID in the `_config.yml`: `google_analytics_id: YOUR_ID`
65
67
 
66
68
 
67
69
  ## License
@@ -4,7 +4,7 @@
4
4
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5
5
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
6
6
 
7
- ga('create', 'UA-57282325-1', 'auto');
7
+ ga('create', '{{site.google_analytics_id | str}}', 'auto');
8
8
  ga('send', 'pageview');
9
9
 
10
10
  </script>
@@ -71,5 +71,7 @@
71
71
  <div class="center">
72
72
  <small style="color:gray">Site generated on {{ site.time | date_to_rfc822 }}</small>
73
73
  </div>
74
+ {% if site.google_analytics_id %}
74
75
  {% include analyticstracking.html %}
76
+ {% endif %}
75
77
  </footer>
@@ -6,32 +6,25 @@
6
6
  <meta name="copyright" content="{{ site.copyright }}" />
7
7
  <meta name="robot" content="{{ site.robot }}" />
8
8
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
9
- <meta name="description" content="{{ site.description }}">
9
+ <meta name="description" content="{{ site.description | strip_newlines}}">
10
10
 
11
- <title>
12
- {% if page.title %}
13
- {{ page.title }} | {{ site.title}}
14
- {% else %}
15
- {{ site.title}}
16
- {% endif %}
17
- </title>
11
+ {%- if page.title -%}
12
+ <title>{{ page.title }} - {{ site.title}}</title>
13
+ {%- else -%}
14
+ <title>{{ site.title}}</title>
15
+ {%- endif -%}
18
16
 
19
17
  <link rel="stylesheet" href="{{ 'assets/css/main.css' | absolute_url }}">
20
18
  <link rel="canonical" href="{{ site.baseurl, page.url | absolute_url }}">
21
19
  <link rel="icon" href="{{ site.favicon | absolute_url}}">
22
20
 
23
- {% if page.style%}
24
- <style type="text/css">
25
- {{ page.style }}
26
- </style>
27
- {% endif %}
28
- {% if page.url == "/404.html" %}
21
+ {%- if page.style -%}
22
+ <style type="text/css">
23
+ {{ page.style }}
24
+ </style>
25
+ {%- endif -%}
29
26
 
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 %}
27
+ {%- if page.url == "/404.html" -%}
28
+ <meta http-equiv="refresh" content="5; url='{{ site.baseurl | absolute_url}}'" />
29
+ {%- endif %}
37
30
  </head>
@@ -1,13 +1,9 @@
1
1
  <header class="site-header">
2
-
3
2
  <div class="wrapper">
4
-
5
3
  <a class="site-title" href="{{ '' | absolute_url}}">{{ site.title }}</a>
6
4
  <small> {{ site.motto }} </small>
7
-
8
- {% if site.pages.size > 3 %}
9
-
10
- <nav class="site-nav">
5
+ {% if site.pages.size > 3 -%}
6
+ <!--nav class="site-nav">
11
7
  <a href="#" class="menu-icon">
12
8
  <svg viewBox="0 0 18 15">
13
9
  <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"/>
@@ -15,18 +11,18 @@
15
11
  <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
12
  </svg>
17
13
  </a>
18
-
14
+ {% assign default_paths = site.pages | map: "path" %}
15
+ {% assign page_paths = site.header_pages | default: default_paths %}
19
16
  <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 %}
17
+ {% for path in page_paths -%}
18
+ {% assign my_page = site.pages | where: "path", path | first %}
19
+ {%- if my_page.title -%}
20
+ <a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
21
+ {%- endif -%}
24
22
  {% endfor %}
25
23
  </div>
26
24
  </nav>
27
-
28
- {% endif %}
29
-
30
- </div>
31
-
25
+ {%- endif %}
26
+ </div-->
32
27
  </header>
28
+
@@ -10,15 +10,14 @@
10
10
  {% include header.html %}
11
11
 
12
12
  <section class="content">
13
-
14
13
  <div class="page-content">
15
14
  <div class="wrapper">
16
- {{ content }}
15
+ {{- content -}}
17
16
  </div>
18
17
  </div>
19
18
  </section>
20
19
 
21
- {% include footer.html %}
20
+ {%- include footer.html -%}
22
21
 
23
22
  </div>
24
23
 
@@ -5,19 +5,18 @@
5
5
  {% include head.html %}
6
6
 
7
7
  <body>
8
- <div class="container">
8
+ <div class="container">
9
9
 
10
- <section class="content">
10
+ <section class="content">
11
11
 
12
- <div class="page-content">
13
- <div class="wrapper">
14
- {{ content }}
15
- </div>
16
- </div>
17
- </section>
12
+ <div class="page-content">
13
+ <div class="wrapper">
14
+ {{ content }}
15
+ </div>
16
+ </div>
17
+ </section>
18
18
 
19
- </div>
20
-
19
+ </div>
21
20
  </body>
22
21
 
23
22
  </html>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-mehdix-rtl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mehdi Sadeghi