simport 1.0.0 → 1.1.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 +34 -10
- data/_includes/navigation.html +2 -2
- data/_layouts/blog.html +1 -1
- data/_layouts/default.html +1 -1
- data/_layouts/tils.html +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b2ba933edadec7d2c0e1474b61b88e1741bda528
|
|
4
|
+
data.tar.gz: 43ea695c900a3971c91a0ea18317c44654039393
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8cc5bef49aa2038ee3e862553af731383e0e8dc2590c3fe67950f84dd624d7fb168940a77d3e82ee44d1afbc785e253a2c434c90f5b453cc25d2f009e04cac32
|
|
7
|
+
data.tar.gz: e71cbe4b5c77bb5c94fe8c12e0a67b516da16dea35c62b8a2e3e4ae05a15edce52233c8f407ce3535583006f101ebdfe16382b153f3a4d9607636495c4c0b8db
|
data/README.md
CHANGED
|
@@ -2,37 +2,53 @@
|
|
|
2
2
|
|
|
3
3
|
A **sim**ple **por**tfolio and blog theme for jekyll.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Getting Started
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Create a new directory and run the `jekyll new {site name}` command.
|
|
8
|
+
|
|
9
|
+
Add the following to your Jekyll site's `Gemfile` (see below for explanation on the plugins):
|
|
8
10
|
|
|
9
11
|
```ruby
|
|
10
12
|
gem "simport"
|
|
13
|
+
|
|
14
|
+
group :jekyll_plugins do
|
|
15
|
+
gem 'jekyll-sitemap'
|
|
16
|
+
gem 'jekyll-feed'
|
|
17
|
+
gem 'jekyll-seo-tag'
|
|
18
|
+
end
|
|
11
19
|
```
|
|
12
20
|
|
|
13
|
-
|
|
21
|
+
Then add this line to your Jekyll site's `_config.yml`:
|
|
14
22
|
|
|
15
23
|
```yaml
|
|
16
24
|
theme: simport
|
|
25
|
+
plugins:
|
|
26
|
+
- jekyll-feed
|
|
27
|
+
- jekyll-sitemap
|
|
28
|
+
- jekyll-seo-tag
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Finally add an `index.md` with the following:
|
|
32
|
+
```
|
|
33
|
+
---
|
|
34
|
+
layout: home
|
|
35
|
+
---
|
|
17
36
|
```
|
|
18
37
|
|
|
19
38
|
And then execute:
|
|
20
39
|
|
|
21
40
|
$ bundle
|
|
22
|
-
|
|
23
|
-
Or install it yourself as:
|
|
24
|
-
|
|
25
|
-
$ gem install simport
|
|
41
|
+
$ bundle exec jekyll serve
|
|
26
42
|
|
|
27
43
|
## Usage
|
|
28
44
|
|
|
29
|
-
###
|
|
45
|
+
### Homepage
|
|
30
46
|
|
|
31
|
-
To get started you must have a homepage. This is done with by adding either an `index.md` or `index.html` file in the root directory. There is a home layout below that was designed for this page.
|
|
47
|
+
To get started you must have a homepage. This is done with by adding either an `index.md` or `index.html` file in the root directory. There is a home layout below that was designed for this page.
|
|
32
48
|
|
|
33
49
|
### Adding a logo
|
|
34
50
|
|
|
35
|
-
There is a default logo in the navbar at the top left of the page. This can be overridden by
|
|
51
|
+
There is a default logo in the navbar at the top left of the page. This can be overridden by creating an `_includes/logo.html` file.
|
|
36
52
|
|
|
37
53
|
### Adding a top level page
|
|
38
54
|
|
|
@@ -80,6 +96,14 @@ excerpt: An intro to bananas
|
|
|
80
96
|
|
|
81
97
|
This is the layout that includes the navbar. This has no styling and can be used for any cusom pages.
|
|
82
98
|
|
|
99
|
+
## Plugins
|
|
100
|
+
|
|
101
|
+
These three official plugins are useful Jekyll sites and are required to get started:
|
|
102
|
+
|
|
103
|
+
[jekyll-sitemap](https://github.com/jekyll/jekyll-sitemap) - Creates a sitemap file to help search engines index content
|
|
104
|
+
[jekyll-feed](https://github.com/jekyll/jekyll-feed) - Creates an RSS feed for your posts
|
|
105
|
+
[jekyll-seo-tag](https://github.com/jekyll/jekyll-seo-tag) - Adds meta tags to help with SEO
|
|
106
|
+
|
|
83
107
|
## Contributing
|
|
84
108
|
|
|
85
109
|
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
data/_includes/navigation.html
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<nav>
|
|
2
2
|
<nav>
|
|
3
3
|
<div id="logo" class="left">
|
|
4
|
-
<a href="/">
|
|
4
|
+
<a href="{{ '/' | relative_url }}">
|
|
5
5
|
<button class="nav-button left" type="button">
|
|
6
6
|
{% include logo.html %}
|
|
7
7
|
</button>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<div id="navbar-navigation" class="right">
|
|
11
11
|
{% assign sorted = site.data.navigation | reverse %}
|
|
12
12
|
{% for item in sorted %}
|
|
13
|
-
<a href=
|
|
13
|
+
<a href="{{ item.link | relative_url }}">
|
|
14
14
|
<button class="nav-button right" type="button">
|
|
15
15
|
<span>{{item.name}}</span>
|
|
16
16
|
</button>
|
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="{{ post.url }}">
|
|
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
data/_layouts/tils.html
CHANGED
|
@@ -3,7 +3,7 @@ layout: default
|
|
|
3
3
|
---
|
|
4
4
|
<div id="blog">
|
|
5
5
|
{% for til in site.tils %}
|
|
6
|
-
<a href="{{ til.url }}">
|
|
6
|
+
<a href="{{ til.url | relative_url }}">
|
|
7
7
|
<div class="blog-post">
|
|
8
8
|
<h6 class="blog-date">{{ til.date | date_to_string }}</h6>
|
|
9
9
|
<h2 class="blog-title">{{ til.title }}</h2>
|
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.1.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-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|