alna-jekyll-theme 1.0.0 → 1.0.1

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: 842337960ea44e52946e0943b2fdf58daef336e6
4
- data.tar.gz: 5fb0919bfb03a000c9ea8c0862420b2265608ac0
3
+ metadata.gz: 42371930d1dc1caafa441b3cc32bf745277ca807
4
+ data.tar.gz: 4c1d362ce169fd4427eb10879ec357ec115f46b2
5
5
  SHA512:
6
- metadata.gz: 102c180d35b9f74ff3d681646dc0ed60761f7a16dfd0726afa61cada27e2469e7894ebea440cc1bd290b9fb0ac4aa774380ed44bb5867ef699051421a5f49c4e
7
- data.tar.gz: 72893d16454fca7f865b2edcbf71c6fb23806346627935710681cc5eb6905fe401546345c8128cbffb07341fcf0c9d0af446c3e4c513a1f7e1da9626d3c0cb2a
6
+ metadata.gz: 6ddad73dbbad1c5702e56be2030b7190944ce52382c79349caa53c4382af65a93951a0d01fcf480860fc44a45aebf77fc27f135cdbbc7a80a47b793599c94d01
7
+ data.tar.gz: 97fc23c2b2057f2e6f03afd1d2264c9f282fa3bad86e6ac7cef9e0f1903dde157e7bb41061dd2ab380785548fb5c609a67d06235bf024e9e3f6eb6283857633a
data/README.md CHANGED
@@ -1,48 +1,118 @@
1
- # alna-jekyll-theme
1
+ # The ALNA jekyll theme
2
2
 
3
- Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes` and your sass in `_sass`. To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
3
+ [![Build Status](https://travis-ci.org/abel-nieva/alna-jekyll-theme.svg?branch=master)](https://travis-ci.org/abel-nieva/alna-jekyll-theme) [![Gem Version](https://badge.fury.io/rb/alna-jekyll-theme.svg)](https://badge.fury.io/rb/alna-jekyll-theme)
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ Abel Nieva website theme for Jekyll built with inuitcss. You can [preview the theme to see what it looks like](https://abelnieva.com), or even [use it today](#usage).
6
6
 
7
- ## Installation
7
+ ![Screenshot of alna-jekyll-theme](screenshot.png)
8
8
 
9
- Add this line to your Jekyll site's `Gemfile`:
9
+ ## Usage
10
+
11
+ To use the ALNA Jekyll theme:
12
+
13
+ 1. Add this line to your Jekyll site's `Gemfile`:
14
+
15
+ ```ruby
16
+ gem "alna-jekyll-theme"
17
+ ```
18
+
19
+ 2. And add this line to your Jekyll site's `_config.yml`:
20
+
21
+ ```yaml
22
+ theme: alna-jekyll-theme
23
+ ```
24
+
25
+ ## Customizing
10
26
 
11
- ```ruby
12
- gem "alna-jekyll-theme"
27
+ ### Configuration variables
28
+
29
+ ALNA jekyll theme will respect the following variables, if set in your site's `_config.yml`:
30
+
31
+ ```yml
32
+ title: [The title of your site]
33
+ subtitle: [The subtitle of your site]
34
+ description: [A short description of your site's purpose]
35
+ twitter_username: [Your twitter user name]
36
+ author:
37
+ name: [The author name of your site]
38
+ avatar: [The url author avatar]
39
+ avatar2x: [The url author avatar@2x]
40
+ avatar_alt: [The author avatar alt]
41
+ bio: [A short author bio]
42
+ ```
43
+
44
+ Additionally, you may choose to set the following optional variables:
45
+
46
+ ```yml
47
+ about: [A short description about your site]
48
+ copyright: [The copyright of your site]
49
+ social_media:
50
+ - name: [The social media name as twitter, facebook and github]
51
+ link: [The social media url]
13
52
  ```
14
53
 
15
- And add this line to your Jekyll site's `_config.yml`:
54
+ ### Stylesheet
55
+
56
+ If you'd like to add your own custom styles:
57
+
58
+ 1. Create a file called `/assets/css/style.scss` in your site
59
+ 2. Add the following content to the top of the file, exactly as shown:
60
+ ```scss
61
+ ---
62
+ ---
63
+
64
+ @import "{{ site.theme }}";
65
+ ```
66
+ 3. Add any custom CSS (or Sass, including imports) you'd like immediately after the `@import` line
67
+
68
+ ### Layouts
69
+
70
+ If you'd like to change the theme's HTML layout:
71
+
72
+ 1. [Copy the original template](https://github.com/abel-nieva/alna-jekyll-theme/blob/master/_layouts/default.html) from the theme's repository<br />(*Pro-tip: click "raw" to make copying easier*)
73
+ 2. Create a file called `/_layouts/default.html` in your site
74
+ 3. Paste the default layout content copied in the first step
75
+ 4. Customize the layout as you'd like
76
+
77
+ ### Enabling comments (via Disqus)
78
+
79
+ Optionally, if you have a Disqus account, you can tell Jekyll to use it to show a comments section below each post.
80
+
81
+ To enable it, add the following lines to your Jekyll site:
16
82
 
17
83
  ```yaml
18
- theme: alna-jekyll-theme
84
+ disqus:
85
+ shortname: my_disqus_shortname
19
86
  ```
20
87
 
21
- And then execute:
88
+ You can find out more about Disqus' shortnames [here](https://help.disqus.com/customer/portal/articles/466208).
22
89
 
23
- $ bundle
90
+ Comments are enabled by default and will only appear in production, i.e., `JEKYLL_ENV=production`
24
91
 
25
- Or install it yourself as:
92
+ If you don't want to display comments for a particular post you can disable them by adding `comments: false` to that post's YAML Front Matter.
26
93
 
27
- $ gem install alna-jekyll-theme
94
+ ### Enabling Google Analytics
28
95
 
29
- ## Usage
96
+ To enable Google Anaytics, add the following lines to your Jekyll site:
97
+
98
+ ```yaml
99
+ google_analytics: UA-NNNNNNNN-N
100
+ ```
30
101
 
31
- TODO: Write usage instructions here. Describe your available layouts, includes, and/or sass.
102
+ Google Analytics will only appear in production, i.e., `JEKYLL_ENV=production`
32
103
 
33
104
  ## Contributing
34
105
 
35
- 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.
106
+ Bug reports and pull requests are welcome on GitHub at https://github.com/abel-nieva/alna-jekyll-theme. 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.
36
107
 
37
108
  ## Development
38
109
 
39
- To set up your environment to develop this theme, run `bundle install`.
110
+ To set up your environment to develop this theme, run `bundle install` and `npm install`.
40
111
 
41
- Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
112
+ To test your theme, run `npm start` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser.
42
113
 
43
- When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
114
+ When your theme is released, only the files in `_layouts` and `_includes` tracked with Git will be released.
44
115
 
45
116
  ## License
46
117
 
47
118
  The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
48
-
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ {% include bookcase.html title=page.title %}
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% include notebook.html title=page.notebook-title limit=3 permalink=page.notebook-permalink see-more="Ver más" %}
6
+
7
+ {% include bookcase.html title=page.bookcase-title limit=3 permalink=page.bookcase-permalink see-more="Ver más" %}
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ {% include notebook.html title=page.title %}
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: page
3
+ ---
4
+
5
+ {% include portfolio.html title=page.title %}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alna-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Abel Nieva
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-18 00:00:00.000000000 Z
11
+ date: 2017-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -79,8 +79,12 @@ files:
79
79
  - _includes/see-more.html
80
80
  - _includes/site-nav.html
81
81
  - _includes/social-media.html
82
+ - _layouts/bookcase.html
82
83
  - _layouts/default.html
84
+ - _layouts/home.html
85
+ - _layouts/notebook.html
83
86
  - _layouts/page.html
87
+ - _layouts/portfolio.html
84
88
  - _layouts/post.html
85
89
  - assets/css/main.css
86
90
  - assets/fonts/icomoon.eot