hanuman 0.2.0 → 0.3.0

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: ce08870e1b72b9779352d9cdda2c3f81014fad0e
4
- data.tar.gz: eef0b9399645aa00845db730fd9871452f0f2204
3
+ metadata.gz: 453c7124a7c3112f730294a049948988200ce664
4
+ data.tar.gz: 9184ad622463814165002bcf771d4826dba4fb04
5
5
  SHA512:
6
- metadata.gz: 387ac5a2cdbd2a31ead504db3b9c9f35f2e15fa5300d35adcfee69eb90fbc309403ab92cc4b5ce12dfd93f2541f9c0fbe128b95442eec483c0b22115ee7334ec
7
- data.tar.gz: 4cb4cb7c15011a069e6cf6c34e07c61d7f752b82b4b25f64afec7aa99b4ad17648f485f10e789f527f78b5d4016de9d43194f57f5933e27b26bb43ceccd2f438
6
+ metadata.gz: cccd1ad3d0a8ca04308e47fc8e821ee0c32e72f2cc6b0d651016b62d7e28fd1b254a2060b54dbe7fb5b2f4f0ffe01ffc027b7356d009cc5d19c65f5764743872
7
+ data.tar.gz: a540c0fde865b8ae7fe8395d85725bf8e288416148980d2fa244a3c288e5d71553d6059dbad0a54f81704a8767389de6cb63e44e3892b563f42e0ce19788ab1e
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Hanuman is a minimal yet powerful Jekyll theme for your blogs and websites.
6
6
 
7
- It is built using the open source AMP Start framework and can be customized as per your requirements.
7
+ It is built using the open source [AMP Start framework](https://www.ampstart.com/) and can be customized as per your requirements.
8
8
 
9
9
  ## Live Demo
10
10
  ## [Hanuman](https://samanyougarg.com/hanuman)
@@ -25,6 +25,9 @@ It is built using the open source AMP Start framework and can be customized as p
25
25
  - Github Pages support
26
26
  - Easily Customisable
27
27
 
28
+ ## What is AMP
29
+
30
+ AMP stands for [Accelerated Mobile Pages](https://www.ampproject.org/), a Google-backed project designed as an open standard for any publisher to have pages load quickly on mobile devices.
28
31
 
29
32
  ## Installation
30
33
 
@@ -36,6 +39,22 @@ There are different ways to install the theme -
36
39
  3. Add your posts to the _posts directory.
37
40
  4. Deploy to Github Pages or your own server.
38
41
 
42
+ #### Deploying to Github Pages
43
+ **Method 1**
44
+
45
+ Push the contents of the destination folder (mentioned in _config.yml. eg - destination: ../hanuman-pages/) to the gh-pages branch(if project page) or master branch(if user page) of your repository.
46
+
47
+ **Method 2**
48
+
49
+ - Set up travis-ci for your fork.
50
+ - Generate your secure token with the travis gem:
51
+ Run `gem install travis` on your terminal.
52
+ - Grab the GH_TOKEN from https://github.com/settings/tokens
53
+ - Then run `travis encrypt 'GIT_NAME="YOUR_USERNAME" GIT_EMAIL="YOUR_EMAIL" GH_TOKEN=YOUR_TOKEN'`
54
+ - Add the token to your .travis.yml file.
55
+ Now you just need to push the files. Travis will generate the HTML files and automatically push them to your gh-pages branch.
56
+ This is the setup I am using.
57
+
39
58
  ### 2. Ruby Gem Method
40
59
  Add this line to your Jekyll site's `Gemfile`:
41
60
 
@@ -57,6 +76,12 @@ Or install it yourself as:
57
76
 
58
77
  $ gem install hanuman
59
78
 
79
+ You'll also need to copy or create the _config.yml file just like in this repository. Similarly, you'll need to have a navigation.yml and author.yml in your _data directory.
80
+
81
+ #### Deploying to Github Pages
82
+ Run `bundle exec jekyll serve` inside your cloned repository. Push the contents of the resulting _site to your Github Pages repository.
83
+
84
+
60
85
  ### 3. Jekyll Remote Theme
61
86
  1. Create or update your Gemfile with the following -
62
87
 
@@ -75,24 +100,7 @@ gem "jekyll-remote-theme"
75
100
  ```yaml
76
101
  plugins:
77
102
  - jekyll-remote-theme
78
- ```
79
-
80
- ## Deploying to Github Pages
81
-
82
- There are 2 methods you can use to deploy the site to Github Pages -
83
-
84
- 1. Run `bundle exec jekyll serve` inside your cloned repository. Push the contents of the resulting _site to your Github Pages repository.
85
-
86
- 2. Using Travis CI
87
- - Set up travis-ci for your fork.
88
- - Generate your secure token with the travis gem:
89
- Run `gem install travis` on your terminal.
90
- - Grab the GH_TOKEN from https://github.com/settings/tokens
91
- - Then run `travis encrypt 'GIT_NAME="YOUR_USERNAME" GIT_EMAIL="YOUR_EMAIL" GH_TOKEN=YOUR_TOKEN'`
92
- - Add the token to your .travis.yml file.
93
-
94
- Now you just need to push the files. Travis will generate the HTML files and automatically push them to your gh-pages branch.
95
- This is the setup I am using.
103
+ ```
96
104
 
97
105
  ## Usage
98
106
 
@@ -104,7 +112,7 @@ AMP has a limitation that you can only use inline css.
104
112
  All the CSS for this theme is in the styles.scss file in the includes directory.
105
113
 
106
114
  #### Changing the Default Color
107
- In the styles.scss file in the includes directory, you can change the hex value to the color you would like your site to use.
115
+ In the styles.scss file in the includes directory, you can change the hex value of $theme-color to the color you would like your site to use.
108
116
 
109
117
  ### Author Information
110
118
  Author information is present in the author.yml file in the _data folder. You can update the fields of that file as per your requirements.
@@ -54,8 +54,12 @@
54
54
  </ul>
55
55
  </nav>
56
56
  <small>
57
- &copy; 2017
57
+ &copy; 2017
58
58
  <a href="{{site.baseurl}}">{{site.name}}</a> &nbsp; | &nbsp; All Rights Reserved.
59
-
60
- </small>
61
- </footer>
59
+
60
+ </small>
61
+ <small>
62
+ Published with <a href="https://jekyllrb.com/">Jekyll</a>
63
+ using <a href="https://github.com/samanyougarg/hanuman">Hanuman</a>
64
+ </small>
65
+ </footer>
@@ -22,7 +22,7 @@
22
22
  {% assign current = null %}
23
23
  {% endif %}
24
24
  <li class="ampstart-nav-item ampstart-nav-dropdown relative " {{ current }}>
25
- <li class="ampstart-faq-item"><a href="{{ site.baseurl }}{{ entry.url }}" class="text-decoration-none">{{ entry.title }}</a></li>
25
+ <li class="ampstart-faq-item"><a href="{{ site.url }}{{ site.baseurl }}{{ entry.url }}" class="text-decoration-none">{{ entry.title }}</a></li>
26
26
  </li>
27
27
  {% endfor %}
28
28
  </ul>
@@ -55,4 +55,4 @@
55
55
  <li class="ampstart-faq-item"><a href="{{ site.baseurl }}{{ site.privacy-policy }}" class="text-decoration-none">Privacy Policy</a></li>
56
56
  {% endif %}
57
57
  </ul>
58
- </amp-sidebar>
58
+ </amp-sidebar>
@@ -41,7 +41,7 @@ layout: default
41
41
  {% endif %}
42
42
  {% endfor %}
43
43
  {% endif %}
44
-
44
+
45
45
  </div>
46
46
 
47
47
  <div class="mb4 px3 radhakrishna" align="left">
@@ -123,7 +123,7 @@ layout: default
123
123
  {% endif %}
124
124
  {% endif %}
125
125
  {% endfor %}
126
- </article>
126
+ </article>
127
127
  </section>
128
128
  {% endif %}
129
129
  {% endif %}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanuman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samanyou Garg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-09 00:00:00.000000000 Z
11
+ date: 2018-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -95,10 +95,6 @@ files:
95
95
  - _includes/footer.html
96
96
  - _includes/head.html
97
97
  - _includes/header.html
98
- - _includes/icon-github.html
99
- - _includes/icon-github.svg
100
- - _includes/icon-twitter.html
101
- - _includes/icon-twitter.svg
102
98
  - _includes/metadata.json
103
99
  - _includes/styles.scss
104
100
  - _layouts/default.html
@@ -200,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
196
  version: '0'
201
197
  requirements: []
202
198
  rubyforge_project:
203
- rubygems_version: 2.6.14
199
+ rubygems_version: 2.5.2
204
200
  signing_key:
205
201
  specification_version: 4
206
202
  summary: A responsive, lightning-fast Jekyll theme built using AMP (Accelerated Mobile
@@ -1,3 +0,0 @@
1
- {% if include.username %}
2
- <span class="icon icon--github">{% include icon-github.svg %}</span><a href="https://github.com/{{ include.username }}"><span class="username">{{ include.username }}</span></a>
3
- {% endif %}
@@ -1 +0,0 @@
1
- <svg viewBox="0 0 16 16"><path fill="#828282" d="M7.999,0.431c-4.285,0-7.76,3.474-7.76,7.761 c0,3.428,2.223,6.337,5.307,7.363c0.388,0.071,0.53-0.168,0.53-0.374c0-0.184-0.007-0.672-0.01-1.32 c-2.159,0.469-2.614-1.04-2.614-1.04c-0.353-0.896-0.862-1.135-0.862-1.135c-0.705-0.481,0.053-0.472,0.053-0.472 c0.779,0.055,1.189,0.8,1.189,0.8c0.692,1.186,1.816,0.843,2.258,0.645c0.071-0.502,0.271-0.843,0.493-1.037 C4.86,11.425,3.049,10.76,3.049,7.786c0-0.847,0.302-1.54,0.799-2.082C3.768,5.507,3.501,4.718,3.924,3.65 c0,0,0.652-0.209,2.134,0.796C6.677,4.273,7.34,4.187,8,4.184c0.659,0.003,1.323,0.089,1.943,0.261 c1.482-1.004,2.132-0.796,2.132-0.796c0.423,1.068,0.157,1.857,0.077,2.054c0.497,0.542,0.798,1.235,0.798,2.082 c0,2.981-1.814,3.637-3.543,3.829c0.279,0.24,0.527,0.713,0.527,1.437c0,1.037-0.01,1.874-0.01,2.129 c0,0.208,0.14,0.449,0.534,0.373c3.081-1.028,5.302-3.935,5.302-7.362C15.76,3.906,12.285,0.431,7.999,0.431z"/></svg>
@@ -1,3 +0,0 @@
1
- {% if include.username %}
2
- <span class="icon icon--twitter">{% include icon-twitter.svg %}</span><a href="https://twitter.com/{{ include.username }}"><span class="username">{{ include.username }}</span></a>
3
- {% endif %}
@@ -1 +0,0 @@
1
- <svg viewBox="0 0 16 16"><path fill="#828282" d="M15.969,3.058c-0.586,0.26-1.217,0.436-1.878,0.515c0.675-0.405,1.194-1.045,1.438-1.809c-0.632,0.375-1.332,0.647-2.076,0.793c-0.596-0.636-1.446-1.033-2.387-1.033c-1.806,0-3.27,1.464-3.27,3.27 c0,0.256,0.029,0.506,0.085,0.745C5.163,5.404,2.753,4.102,1.14,2.124C0.859,2.607,0.698,3.168,0.698,3.767 c0,1.134,0.577,2.135,1.455,2.722C1.616,6.472,1.112,6.325,0.671,6.08c0,0.014,0,0.027,0,0.041c0,1.584,1.127,2.906,2.623,3.206 C3.02,9.402,2.731,9.442,2.433,9.442c-0.211,0-0.416-0.021-0.615-0.059c0.416,1.299,1.624,2.245,3.055,2.271 c-1.119,0.877-2.529,1.4-4.061,1.4c-0.264,0-0.524-0.015-0.78-0.046c1.447,0.928,3.166,1.469,5.013,1.469 c6.015,0,9.304-4.983,9.304-9.304c0-0.142-0.003-0.283-0.009-0.423C14.976,4.29,15.531,3.714,15.969,3.058z"/></svg>