jekflix 3.0.2 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +154 -5
- data/_includes/stats.html +7 -6
- data/_layouts/home.html +1 -1
- data/_layouts/post.html +12 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bcccca10845eee7df16c9998eeaa82de3ae0e8eb2990b533d63f1f723005e85c
|
4
|
+
data.tar.gz: 8ffdf60cb7bf138a2ffc181093d64c9370d0fdca6af56dc727ccf24a153da148
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d716d2f1cd766331e86fd866e379d26754a60f3b1e1759a90f3dc9c7635e318244079102dd434b68cfaad7f25b97488ad861217b29b8a901f0afa1bf2849a36
|
7
|
+
data.tar.gz: e356b529774107591ea76c2c1d16829a684b85c2b2aeb7e2de17f7478570fa34fafda60d87bc203edbdb77bfb493b591d2df7a7cb295c977f6b4589bcbfed37c
|
data/README.md
CHANGED
@@ -37,6 +37,7 @@ A theme for Jekyll inspired by Netflix panel for who loves movies and series and
|
|
37
37
|
- ["Before you go" modal](https://github.com/thiagorossener/jekflix-template/wiki/Features#before-you-go-modal) *(optional)*
|
38
38
|
- [Post recommendation](https://github.com/thiagorossener/jekflix-template/wiki/Features#post-recommendation)
|
39
39
|
- [Netlify CMS ready](https://github.com/thiagorossener/jekflix-template/wiki/Features#netlify-cms-ready)
|
40
|
+
- [Translations](https://github.com/thiagorossener/jekflix-template/wiki/setup#translations) **new!**
|
40
41
|
|
41
42
|
## SEO
|
42
43
|
|
@@ -46,21 +47,158 @@ A theme for Jekyll inspired by Netflix panel for who loves movies and series and
|
|
46
47
|
- Sitemap.xml
|
47
48
|
- Social Media ready
|
48
49
|
|
50
|
+
## Quick Install
|
51
|
+
|
52
|
+
In the case you're installing to existing Jekyll project, add this line to your project's `Gemfile`:
|
53
|
+
|
54
|
+
```
|
55
|
+
gem "jekflix"
|
56
|
+
```
|
57
|
+
|
58
|
+
Add this line to your project's `_config.yml`:
|
59
|
+
|
60
|
+
```
|
61
|
+
theme: jekflix
|
62
|
+
```
|
63
|
+
|
64
|
+
And then run:
|
65
|
+
|
66
|
+
```
|
67
|
+
$ bundle
|
68
|
+
```
|
69
|
+
|
70
|
+
Or install it yourself as:
|
71
|
+
|
72
|
+
```
|
73
|
+
$ gem install jekflix
|
74
|
+
```
|
75
|
+
|
76
|
+
### Theme Colors
|
77
|
+
|
78
|
+
Create the file `/assets/css/styles.scss` and add:
|
79
|
+
|
80
|
+
```
|
81
|
+
---
|
82
|
+
---
|
83
|
+
|
84
|
+
$themeColor: #ff0a16;
|
85
|
+
$primaryDark: #141414;
|
86
|
+
$accentDark: #ffffff;
|
87
|
+
$lightGray: #f2f2f2;
|
88
|
+
$texts: #333333;
|
89
|
+
|
90
|
+
@import "jekflix";
|
91
|
+
```
|
92
|
+
|
93
|
+
Modify the variables above to change your theme colors.
|
94
|
+
|
95
|
+
### Site configuration
|
96
|
+
|
97
|
+
Below are some properties you can change in your project `_config.yml`, check the [documentation](https://github.com/thiagorossener/jekflix-template/wiki/settings) for more details.
|
98
|
+
|
99
|
+
```
|
100
|
+
# Site Settings
|
101
|
+
name: Jekflix
|
102
|
+
title: Jekflix | A blog theme for Jekyll
|
103
|
+
description: Jekflix is a template for Jekyll inspired by Netflix and made by Thiago Rossener.
|
104
|
+
tags:
|
105
|
+
- blog
|
106
|
+
- template
|
107
|
+
- jekyll
|
108
|
+
- theme
|
109
|
+
- netlify
|
110
|
+
email: youremail@xyz.com
|
111
|
+
disqus_username: disqus_username
|
112
|
+
show_hero: true
|
113
|
+
menu:
|
114
|
+
- title: Home
|
115
|
+
url: /
|
116
|
+
- title: About
|
117
|
+
url: /about
|
118
|
+
- title: Contact
|
119
|
+
url: /contact
|
120
|
+
- title: Feed
|
121
|
+
url: /feed.xml
|
122
|
+
|
123
|
+
# Social Media Settings
|
124
|
+
# Remove the item if you don't need it
|
125
|
+
github_username: github_username
|
126
|
+
facebook_username: facebook_username
|
127
|
+
twitter_username: twitter_username
|
128
|
+
instagram_username: instagram_username
|
129
|
+
linkedin_username: linkedin_username
|
130
|
+
medium_username: medium_username
|
131
|
+
|
132
|
+
# Posts Settings
|
133
|
+
show_time_bar: true
|
134
|
+
show_modal_on_exit: false
|
135
|
+
show_modal_on_finish_post: true
|
136
|
+
two_columns_layout: true
|
137
|
+
|
138
|
+
# Advanced Settings
|
139
|
+
baseurl: "" # the subpath of your site, e.g. /blog
|
140
|
+
url: "" # the base hostname & protocol for your site
|
141
|
+
google_analytics: "UA-XXXXXXXX-X"
|
142
|
+
language: "en"
|
143
|
+
categories_folder: category
|
144
|
+
sent_message_url: "/contact/message-sent/"
|
145
|
+
|
146
|
+
# Build settings
|
147
|
+
markdown: kramdown
|
148
|
+
highlighter: rouge
|
149
|
+
permalink: /:title/
|
150
|
+
collections:
|
151
|
+
authors:
|
152
|
+
output: true
|
153
|
+
paginate_path: "/page/:num/"
|
154
|
+
show_get_theme_btn: true
|
155
|
+
use_logo: false
|
156
|
+
|
157
|
+
# Content paginator
|
158
|
+
paginate_content:
|
159
|
+
enabled: true
|
160
|
+
debug: false
|
161
|
+
collections:
|
162
|
+
- posts
|
163
|
+
auto: false
|
164
|
+
separator: "--page-break--"
|
165
|
+
permalink: "/:num/"
|
166
|
+
seo_canonical: true
|
167
|
+
properties:
|
168
|
+
part:
|
169
|
+
is_generated: true
|
170
|
+
last:
|
171
|
+
is_generated: true
|
172
|
+
single:
|
173
|
+
is_generated: true
|
174
|
+
|
175
|
+
# SASS
|
176
|
+
sass:
|
177
|
+
style: compressed
|
178
|
+
|
179
|
+
# Plugins
|
180
|
+
plugins:
|
181
|
+
- jekyll-paginate
|
182
|
+
- jekyll-paginate-content
|
183
|
+
```
|
184
|
+
|
49
185
|
## Setup
|
50
186
|
|
187
|
+
In the case you're cloning this repo, follow those instructions:
|
188
|
+
|
51
189
|
- [Environment](https://github.com/thiagorossener/jekflix-template/wiki/setup#environment)
|
52
190
|
- [Installing template](https://github.com/thiagorossener/jekflix-template/wiki/setup#installing-template)
|
53
191
|
- [Running local](https://github.com/thiagorossener/jekflix-template/wiki/setup#running-local)
|
54
192
|
|
55
|
-
|
193
|
+
### Customization
|
56
194
|
|
57
195
|
See the [settings documentation](https://github.com/thiagorossener/jekflix-template/wiki/settings) to customize layout, titles, social media and more.
|
58
196
|
|
59
|
-
|
197
|
+
### Theme
|
60
198
|
|
61
199
|
You can easily change the theme colors by changing the file `src/yml/theme.yml`, then running `gulp build` in your terminal.
|
62
200
|
|
63
|
-
|
201
|
+
#### GitHub pages
|
64
202
|
|
65
203
|
It's a known issue that you can't run Gulp when deploying the website into GitHub pages. So, you must change the theme colors and run `gulp build` locally, then push the changes into your repo, there is no other way.
|
66
204
|
|
@@ -68,13 +206,24 @@ To see how your website is going to look like when you deploy it, run `bundle ex
|
|
68
206
|
|
69
207
|
## Posts
|
70
208
|
|
71
|
-
|
209
|
+
Use the [Front Matter properties](https://github.com/thiagorossener/jekflix-template/wiki/post#front-matter-properties) to create posts.
|
210
|
+
|
211
|
+
> **Note:** In the case you're cloning this repo, you can use the available [script](https://github.com/thiagorossener/jekflix-template/wiki/post#creating-a-post) to generate posts automatically.
|
72
212
|
|
73
213
|
## Release notes
|
74
214
|
|
75
|
-
### v3.0
|
215
|
+
### v3.1.0
|
216
|
+
|
217
|
+
- Fixed hero URL
|
218
|
+
- Updated Google Analytics script, thanks to [@JHLeeeMe](https://github.com/JHLeeeMe)
|
219
|
+
- Added MathJax library to render math expressions, thanks to [@XieGuochao](https://github.com/XieGuochao)
|
220
|
+
|
221
|
+
### v3.0.2
|
76
222
|
|
77
223
|
- Added assets folder
|
224
|
+
|
225
|
+
### v3.0.1
|
226
|
+
|
78
227
|
- Fixed post SVG icons
|
79
228
|
|
80
229
|
### v3.0.0
|
data/_includes/stats.html
CHANGED
@@ -1,12 +1,13 @@
|
|
1
|
+
<!-- Global site tag (gtag.js) - Google Analytics -->
|
2
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
1
3
|
<script>
|
2
4
|
var host = window.location.hostname;
|
3
5
|
if (host != 'localhost') {
|
4
|
-
|
5
|
-
(
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
ga('send', 'pageview');
|
6
|
+
window.dataLayer = window.dataLayer || [];
|
7
|
+
function gtag(){dataLayer.push(arguments);}
|
8
|
+
gtag('js', new Date());
|
9
|
+
|
10
|
+
gtag('config', '{{ site.google_analytics }}');
|
10
11
|
}
|
11
12
|
</script>
|
12
13
|
|
data/_layouts/home.html
CHANGED
@@ -32,7 +32,7 @@ layout: main
|
|
32
32
|
<h1 class="title">{{ featured.title }}</h1>
|
33
33
|
<p class="description">{{ featured.subtitle }}</p>
|
34
34
|
<div class="buttons">
|
35
|
-
<a href="{{ featured.url }}" role="button" class="button">
|
35
|
+
<a href="{{ featured.url | prepend: site.baseurl }}" role="button" class="button">
|
36
36
|
<svg><use xlink:href="#icon-read"></use></svg>
|
37
37
|
<span>{{ site.translations.button.read_now | default: "Read Now" }}</span>
|
38
38
|
</a>
|
data/_layouts/post.html
CHANGED
@@ -103,7 +103,18 @@
|
|
103
103
|
{% if author.linkedin_username %}
|
104
104
|
{% assign author_urls = author_urls | append: '"https://www.linkedin.com/in/' | append: author.linkedin_username | append: '",' %}
|
105
105
|
{% endif %}
|
106
|
-
|
106
|
+
{% if page.math %}
|
107
|
+
<script>
|
108
|
+
MathJax = {
|
109
|
+
tex: {
|
110
|
+
inlineMath: [['$', '$'], ['\\(', '\\)']]
|
111
|
+
}
|
112
|
+
};
|
113
|
+
</script>
|
114
|
+
<script type="text/javascript" id="MathJax-script" async
|
115
|
+
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js">
|
116
|
+
</script>
|
117
|
+
{% endif %}
|
107
118
|
<script type="application/ld+json">
|
108
119
|
{
|
109
120
|
"@context": "http://schema.org",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekflix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thiago Rossener
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02
|
11
|
+
date: 2020-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rouge
|
@@ -224,8 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
224
|
- !ruby/object:Gem::Version
|
225
225
|
version: '0'
|
226
226
|
requirements: []
|
227
|
-
|
228
|
-
rubygems_version: 2.5.2.3
|
227
|
+
rubygems_version: 3.1.2
|
229
228
|
signing_key:
|
230
229
|
specification_version: 4
|
231
230
|
summary: A Jekyll theme inspired by Netflix.
|