simport 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +16 -11
- data/_includes/google-analytics.html +7 -0
- data/_layouts/blog.html +1 -1
- data/_layouts/default.html +4 -1
- metadata +79 -4
- data/_includes/heading.html +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c4ca51acdc0bc5e3c754bcd618931a71c911a8b
|
4
|
+
data.tar.gz: e33b2b0ab92b60b3c4c2133e78f4cee1fb08a5a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77b3d45cb7377ff07cf140d208ac9c593a6a18b77d48666cf76f96c94777f852037a98bac9c714399279983f09efedb5fc0a7faa988c0e7df75b9ccccd7af93f
|
7
|
+
data.tar.gz: 4179cd21d994f163910b04ed087872194e3bd28c557c6190f3afd4f2ce9ffe4f010a505e6b646122139572fdbbbe82871d07eb5d5c4a44794dc2fa7b8a7f1f44
|
data/README.md
CHANGED
@@ -9,23 +9,18 @@ Create a new directory and run the `jekyll new {site name}` command.
|
|
9
9
|
Add the following to your Jekyll site's `Gemfile` (see below for explanation on the plugins):
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
gem
|
13
|
-
|
14
|
-
group :jekyll_plugins do
|
15
|
-
gem 'jekyll-sitemap'
|
16
|
-
gem 'jekyll-feed'
|
17
|
-
gem 'jekyll-seo-tag'
|
18
|
-
end
|
12
|
+
gem 'simport', '~> 1.3' # check here for the latest version: https://rubygems.org/gems/simport
|
19
13
|
```
|
20
14
|
|
21
|
-
Then add this line to your Jekyll site's `_config.yml
|
15
|
+
Then add this line to your Jekyll site's `_config.yml`. (The plugins are automatically added by the theme):
|
22
16
|
|
23
17
|
```yaml
|
24
|
-
theme: simport
|
25
18
|
plugins:
|
26
19
|
- jekyll-feed
|
27
20
|
- jekyll-sitemap
|
28
21
|
- jekyll-seo-tag
|
22
|
+
- jekyll-remote-theme
|
23
|
+
remote_theme: redhwannacef/simport
|
29
24
|
```
|
30
25
|
|
31
26
|
Finally add an `index.md` with the following:
|
@@ -57,10 +52,18 @@ You can add a top level page with two steps.
|
|
57
52
|
1. Add a navigation button: create a `_data/navigation.yml` file. This is in the format of a list with a name (to be displayed) and a link to the page. For example:
|
58
53
|
```
|
59
54
|
- name: About
|
60
|
-
link: /about
|
55
|
+
link: /about/
|
61
56
|
```
|
62
57
|
|
63
|
-
2. Add the page: create a `_pages/{link}.md` file, where {link} is the link defined above without the forward
|
58
|
+
2. Add the page: create a `_pages/{link}.md` file, where {link} is the link defined above without the forward slashes `/`. In this example it would be `_pages/about.md`. Pick a layout, add a permalink with the same value as the link and optionally add a title for the page. E.g:
|
59
|
+
```
|
60
|
+
---
|
61
|
+
layout: home
|
62
|
+
permalink: '/about/'
|
63
|
+
title: 'About'
|
64
|
+
---
|
65
|
+
Hello World!
|
66
|
+
```
|
64
67
|
|
65
68
|
### Layouts
|
66
69
|
|
@@ -101,7 +104,9 @@ This is the layout that includes the navbar. This has no styling and can be used
|
|
101
104
|
These three official plugins are useful Jekyll sites and are required to get started:
|
102
105
|
|
103
106
|
[jekyll-sitemap](https://github.com/jekyll/jekyll-sitemap) - Creates a sitemap file to help search engines index content
|
107
|
+
|
104
108
|
[jekyll-feed](https://github.com/jekyll/jekyll-feed) - Creates an RSS feed for your posts
|
109
|
+
|
105
110
|
[jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag) - Adds meta tags to help with SEO
|
106
111
|
|
107
112
|
## Contributing
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
|
2
|
+
<script>
|
3
|
+
window.dataLayer = window.dataLayer || [];
|
4
|
+
function gtag(){dataLayer.push(arguments);}
|
5
|
+
gtag('js', new Date());
|
6
|
+
gtag('config', '{{ site.google_analytics }}');
|
7
|
+
</script>
|
data/_layouts/blog.html
CHANGED
@@ -3,7 +3,7 @@ layout: default
|
|
3
3
|
---
|
4
4
|
<div id="blog">
|
5
5
|
{% for post in site.posts %}
|
6
|
-
<a href="
|
6
|
+
<a href="{{ post.url | relative_url }}">
|
7
7
|
<div class="blog-post">
|
8
8
|
<h6 class="blog-date">{{ post.date | date_to_string }}</h6>
|
9
9
|
<h2 class="blog-title">{{ post.title }}</h2>
|
data/_layouts/default.html
CHANGED
@@ -3,9 +3,12 @@
|
|
3
3
|
<head>
|
4
4
|
<meta charset="utf-8">
|
5
5
|
<title>{{ page.title }}</title>
|
6
|
+
{% seo %}
|
6
7
|
<link rel="stylesheet" href="{{ '/assets/css/styles.css' | relative_url }}">
|
7
8
|
{% feed_meta %}
|
8
|
-
{
|
9
|
+
{%- if jekyll.environment == 'production' and site.google_analytics -%}
|
10
|
+
{%- include google-analytics.html -%}
|
11
|
+
{%- endif -%}
|
9
12
|
</head>
|
10
13
|
<body>
|
11
14
|
{% include navigation.html %}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Redhwan Nacef
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -17,6 +17,9 @@ dependencies:
|
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.8'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '3.7'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -24,6 +27,77 @@ dependencies:
|
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '3.8'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3.7'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: jekyll-feed
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 0.12.1
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.12.1
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: jekyll-seo-tag
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '2.6'
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 2.6.1
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '2.6'
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 2.6.1
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: jekyll-sitemap
|
69
|
+
requirement: !ruby/object:Gem::Requirement
|
70
|
+
requirements:
|
71
|
+
- - "~>"
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '1.3'
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 1.3.1
|
77
|
+
type: :runtime
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '1.3'
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 1.3.1
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: jekyll-remote-theme
|
89
|
+
requirement: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - "~>"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 0.4.0
|
94
|
+
type: :runtime
|
95
|
+
prerelease: false
|
96
|
+
version_requirements: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - "~>"
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 0.4.0
|
27
101
|
- !ruby/object:Gem::Dependency
|
28
102
|
name: bundler
|
29
103
|
requirement: !ruby/object:Gem::Requirement
|
@@ -61,7 +135,7 @@ extra_rdoc_files: []
|
|
61
135
|
files:
|
62
136
|
- LICENSE.txt
|
63
137
|
- README.md
|
64
|
-
- _includes/
|
138
|
+
- _includes/google-analytics.html
|
65
139
|
- _includes/logo.html
|
66
140
|
- _includes/navigation.html
|
67
141
|
- _layouts/blog.html
|
@@ -81,7 +155,8 @@ files:
|
|
81
155
|
homepage: https://github.com/redhwannacef/simport
|
82
156
|
licenses:
|
83
157
|
- MIT
|
84
|
-
metadata:
|
158
|
+
metadata:
|
159
|
+
plugin_type: theme
|
85
160
|
post_install_message:
|
86
161
|
rdoc_options: []
|
87
162
|
require_paths:
|
data/_includes/heading.html
DELETED