geekyll 0.0.9 → 0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96389a92be68944de2f1f131058d86eeb7d2ce58
4
- data.tar.gz: c63a0df4f714f00275b738632b84c843684c6507
3
+ metadata.gz: b08b4cf6175bc5e76e4100278b8a0d7f97a27a74
4
+ data.tar.gz: a801208baeadac463a6be29f58dc3908f5597982
5
5
  SHA512:
6
- metadata.gz: a1f58f509a0864be9027bc75852282d180bf5be4bca1e266dfe9e5274d6faa3de15c8205b633deb0c60eb3fa5eaa14288615aa826f48c8cb5badc5cd2c99178f
7
- data.tar.gz: 84a2eea7f28536631261f186847a2a1703bce146b936f8473e80c86b1e813d48f60de26041d3cdf4a5f9b3306d91f1a3052966bec8831e2177ab593da364cd6b
6
+ metadata.gz: 47b9123c7a63b42b5e45262c59c94378070e625f8576ced7fb5833e9cb4911fec62afe55f96a9ab9794ce8748fb1c99d0e72e2447f6875c4a2ba532dd7845b80
7
+ data.tar.gz: 66fb4f6b2cf26ad89c462f552e0ddaffb7adb6cd85b40f28bb99a59c40d61a9b134f49bf2c073bbb58bde90296d1814d63822937d580dd41dee3982b2d1d2f53
data/README.md CHANGED
@@ -1,8 +1,20 @@
1
- # geekyll
1
+ # geekyll [![Gem Version](https://badge.fury.io/rb/geekyll.svg)](https://badge.fury.io/rb/geekyll)
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
+ ![geekyll sample implemetation](screenshot.png)
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ This theme has been created with one thing in mind: Displaying a summary of all site content in the landing page. Have you ever seen those landing pages (WordPress, usually) where "all" page layouts are displayed in the home page and accessible via scrolling? That's the idea.
6
+
7
+ ## What's included
8
+
9
+ * __Google fonts__.
10
+ * __Font awesome__. Bootstrap no longer support icons.
11
+ * __Bootstrap 4 alpha4__. And since the whole folder of bootstrap4 is included, you can even have access to bootstrap variables and mixins!
12
+ * __jQuery 3.0.0__.
13
+
14
+ ## Before you go
15
+
16
+ * Live implementation: [katodia.gitlab.io](//katodia.gitlab.io).
17
+ * [Repo](//github.com/katodia/katodia.com)
6
18
 
7
19
  ## Installation
8
20
 
@@ -28,11 +40,109 @@ Or install it yourself as:
28
40
 
29
41
  ## Usage
30
42
 
31
- TODO: Write usage instructions here. Describe your available layouts, includes, and/or sass.
43
+ ### Front-page system
44
+
45
+ There are only two steps to follow in order to set up the front-page system:
46
+
47
+ - Make your default/landing page extend the *index* layout, like:
48
+ ```yaml
49
+ ---
50
+ layout: index
51
+ ---
52
+ <!-- No content needed here -->
53
+ ```
54
+ - Make your pages have the following attributes:
55
+ - **indexable**: *Boolean*. set it to "true".
56
+ - **priority**: *Integer*. The higher its value, the higher the position of the page in both the body and navigation bar.
57
+ - **class**: *String*. HTML class attribute for customizing the page style via CSS.
58
+ - **icon:**: *String*. Fontawesome class for setting the icon for the navigation display, e.g : `fa-rocket`.
59
+
60
+ ### Other layouts:
61
+
62
+ * `root`: Sets the base structure for every sub-layout.
63
+ * `index`: The one you have to extend to use the front-page system.
64
+ * `post`: **Uncomplete**. This theme is not intended to cohabitate with blogs (yet)
65
+ * `page`: this layout should be extended for single pages. When applies the front-page system attriubtes listed above, will be included in the landing page. Take in account that pages are still accessible via URI, e.g `example.org/portfolio`. This is useful for letting search engines know that your site is still divided into sections (by feed.xml)
66
+
67
+ ### Includes
68
+
69
+ * `analytics`: code required for tracking user activit through GA.
70
+ * `navigation`: will automatically search your pages for them to be listed.
71
+ * `image`: images can sometimes be large pieces of code. Include it every time you need to embeed images by passing the following params:
72
+ * //TODO: Add params
73
+ * `javascripts`: Contains js files to be included at the bottom of the document.
74
+ * `social`: Creates a list of social links in base to a map passed as an argument, .e.g:
75
+ ```yaml
76
+ twitter: johndoe
77
+ email: johndoe@foobar.com
78
+ ```
79
+ * `opengrpah`: Meta tags for good looking media sharing.
80
+ * `footer`: Three colums footer for copyright announcement,social links and featuring technologies.
81
+
82
+
83
+ ### _config.yml
84
+
85
+ This theme can be customized through:
86
+
87
+ * `google_analytics`: UA-XXXXX-X
88
+ * `social_links`: A list containing the available social platforms. E.g:
89
+
90
+ ```yaml
91
+ social_links:
92
+ - platform: twitter
93
+ url: //twitter.com/
94
+ icon: fa fa-twitter
95
+ title: Check my Twitter profile
96
+ - platform: github
97
+ url: //github.com/
98
+ icon: fa fa-github
99
+ title: Check my Github repos
100
+ - platform: gitlab
101
+ url: //gitlab.com/
102
+ icon: fa fa-gitlab
103
+ title: Check my gitlab repos
104
+ ```
105
+
106
+ * `footer`: Footer data can be set like:
107
+
108
+ ```yaml
109
+ footer:
110
+ copyright: Copyright &copy; 2014-2016 ...
111
+ featuring: Site made with A. Hosting by B.
112
+ socials:
113
+ github: katodia
114
+ twitter: katodians
115
+ email: info@katodia.com
116
+ googleplus: +Katodia-Desarrollo-Aplicaciones
117
+ ```
118
+
119
+ * `extra_js`: If you need to add more js or other misc files, do it like so:
120
+
121
+ ```yaml
122
+ extra_js:
123
+ - assets/js/contact-form.js
124
+ - assets/js/anchor-animation.js
125
+ ```
126
+
127
+ * `meta`: In case you need to specify more standard meta tags:
128
+
129
+ ```yaml
130
+ meta:
131
+ keywords: web, development, game, design
132
+ foo: bar
133
+ ```
134
+
135
+ Output:
136
+
137
+ ```html
138
+ <meta name"keywords" content="web, development, game, design" />
139
+ <meta name"foo" content="bar" />
140
+ ```
141
+
32
142
 
33
143
  ## Contributing
34
144
 
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.
145
+ Bug reports and pull requests are welcome on GitHub at https://github.com/sonirico/geekyll/issues. 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
146
 
37
147
  ## Development
38
148
 
@@ -0,0 +1,16 @@
1
+ {% if site.google_analytics %}
2
+ <!-- Google Analytics -->
3
+ <script>
4
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
5
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
6
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
7
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
8
+
9
+ ga('create', '{{ site.google_analytics }}', 'auto');
10
+ ga('send', 'pageview', {
11
+ 'page': '{{ site.baseurl }}{{ page.url }}',
12
+ 'title': '{{ page.title | replace: "'", "\\'" }}'
13
+ });
14
+ </script>
15
+ <!-- End Google Analytics -->
16
+ {% endif %}
data/_includes/head.html CHANGED
@@ -1,15 +1,16 @@
1
+ <!-- Common metas -->
1
2
  <meta charset="utf-8">
2
3
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
3
4
  <meta http-equiv="x-ua-compatible" content="ie=edge">
4
-
5
- <meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
5
+ <meta name="description" content="{{ page.excerpt | default: page.description | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
6
6
  <meta name="robots" content="{{ site.meta.robots | default: 'index, follow' }}" />
7
-
8
7
  {% if site.meta.keywords %}
9
8
  <meta name="keywords" itemprop="keywords" content="{{ site.meta.keywords }}" />
10
9
  {% endif %}
10
+ <meta name="generator" content="Jekyll v{{ jekyll.version }}" />
11
11
 
12
- <meta name="generator" content="{{ site.meta.generator | default: 'Jekyll' }}" />
12
+ <!-- Opengraph metas -->
13
+ {% include opengraph.html %}
13
14
 
14
15
  <!--
15
16
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.4/css/bootstrap.min.css" integrity="sha384-2hfp1SzUoho7/TsGGGDaFdsuuDL0LX2hnUp6VkX3CUQ2K4K+xjboZdsXyp4oUHZj" crossorigin="anonymous">
@@ -23,5 +24,9 @@
23
24
  <link rel="stylesheet" href="{{ site.url }}/{{ css }}" />
24
25
  {% endfor %}
25
26
 
27
+ {% if site.google_analytics %}
28
+ {% include analytics.html %}
29
+ {% endif %}
30
+
26
31
 
27
32
  <title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
@@ -11,7 +11,7 @@
11
11
 
12
12
  <div class="collapse navbar-toggleable-sm" id="navbar-header" >
13
13
  <ul class="nav navbar-nav">
14
- {% include navigation.html %}
14
+ {% include navigation.html pages=include.pages %}
15
15
  </ul>
16
16
  </div>
17
17
  </nav>
@@ -1,15 +1,11 @@
1
- {% for c_page in custom_pages %}
2
- {% assign is_current = page.url == c_page.url %}
3
- {% if c_page.title %}
1
+ {% for p in include.pages %}
2
+ {% if p.title %}
4
3
  <li role="presentation" class="nav-item" >
5
- <a title="{{ c_page.title }}" href="#{{ c_page.title | downcase }}" class="nav-link" >
6
- {% if c_page.icon %}
7
- <i class="fa {{ c_page.icon }}" aria-hidden="true" ></i>
8
- {% endif %}
9
- <span class="nav-link-text" >{{ c_page.title }}</span>
10
- {% if is_current %}
11
- <span class="sr-only">(página actual)</span>
4
+ <a title="{{ p.title }}" href="#{{ p.permalink | replace: '/', '' | downcase }}" class="nav-link" >
5
+ {% if p.icon %}
6
+ <i class="fa {{ p.icon }}" aria-hidden="true" ></i>
12
7
  {% endif %}
8
+ <span class="nav-link-text" >{{ p.title }}</span>
13
9
  </a>
14
10
  </li>
15
11
  {% endif %}
@@ -0,0 +1,14 @@
1
+ {% if page.title %}
2
+ <meta property="title" content="{{ page.title }} - {{ site.title }}" />
3
+ {% else %}
4
+ <meta property="title" content="{{ site.title }}" />
5
+ {% endif %}
6
+
7
+ {% if page.excerpt %}
8
+ <meta property="description" content="{{ page.excerpt | strip_html | truncate: 140 }}" />
9
+ {% else %}
10
+ <meta property="description" content="{{ page.description | strip_html | truncate: 140 }}" />
11
+ {% endif %}
12
+
13
+ <meta property="url" content="{{ page.url }}" />
14
+ <meta property="type" content="website" />
@@ -2,9 +2,24 @@
2
2
  layout: root
3
3
  ---
4
4
 
5
- {% include header.html %}
5
+ <div class="container-fluid" >
6
+ <div class="row" >
7
+ <div class="col-md-3 col-lg-2 navbar-fixed-side" >
8
+ <header>
9
+ {% include header.html pages=site.pages %}
10
+ </header>
11
+ </div>
6
12
 
7
- {{ content }}
13
+ <div class="col-md-9 col-lg-10 offset-md-3 offset-lg-2 content" >
14
+ {{ content }}
15
+ </div>
16
+ </div>
17
+ </div>
18
+
19
+ <footer>
20
+ <div class="container-fluid" >
21
+ {% include footer.html %}
22
+ </div>
23
+ </footer>
8
24
 
9
- {% include footer.html %}
10
25
  {% include javascripts.html %}
data/_layouts/index.html CHANGED
@@ -1,6 +1,5 @@
1
1
  ---
2
- layout: root
3
- class: full_page
2
+ layout: root
4
3
  ---
5
4
 
6
5
  {% assign custom_pages = site.pages | where: 'indexable', true | sort: 'priority' | reverse %}
@@ -9,7 +8,7 @@ class: full_page
9
8
  <div class="row" >
10
9
  <header>
11
10
  <div class="col-md-3 col-lg-2 navbar-fixed-side" >
12
- {% include header.html %}
11
+ {% include header.html pages=custom_pages %}
13
12
  </div>
14
13
  </header>
15
14
 
@@ -20,7 +19,7 @@ class: full_page
20
19
  <section role="main">
21
20
  <article>
22
21
  <header>
23
- <a name="{{ c_page.title | downcase }}" ></a>
22
+ <a name="{{ c_page.permalink | replace: '/', '' | downcase }}" ></a>
24
23
  <h1 id="{{ c_page.title | downcase }}" >
25
24
  {{ c_page.title }}
26
25
  </h1>
@@ -35,6 +34,7 @@ class: full_page
35
34
  </section>
36
35
  </div>
37
36
  {% endfor %}
37
+
38
38
  </div>
39
39
  </div> <!-- End .row -->
40
40
  </div>
data/_layouts/page.html CHANGED
@@ -1,23 +1,43 @@
1
1
  ---
2
- layout: default
2
+ layout: root
3
3
  ---
4
4
 
5
- <div class="container {{ page.class | default: '' }}" >
6
- <section role="main" >
7
- <article>
8
- {% if page.title %}
9
- <header>
10
- <h1>
11
- {{ page.title }}
12
- </h1>
13
- {% if page.summary %}
14
- <p>{{ page.summary }}</p>
15
- {% endif %}
16
- </header>
17
- {% endif %}
18
- <main>
19
- {{ content }}
20
- </main>
21
- </article>
22
- </section>
23
- </div>
5
+ <div class="container-fluid" >
6
+ <div class="row" >
7
+ <div class="col-md-10 offset-md-1 content" >
8
+ <div class="container {{ page.class | default: '' }}" >
9
+ <section role="main" >
10
+ <article>
11
+ {% if page.title %}
12
+ <header>
13
+ <h1> {{ page.title }}</h1>
14
+ {% if page.summary %}
15
+ <p>{{ page.summary }}</p>
16
+ {% endif %}
17
+ </header>
18
+ {% endif %}
19
+ <main role="main" itemprop="mainContentOfPage">
20
+ {{ content }}
21
+ </main>
22
+
23
+ <footer>
24
+ <p class="text-xs-center">
25
+ <a href="//{{ site.url }}" title="Volver" >
26
+ <i class="fa fa-arrow-left" aria-hidden="true" ></i>Volver
27
+ </a>
28
+ </p>
29
+ </footer>
30
+ </article>
31
+ </section>
32
+ </div>
33
+ </div>
34
+ </div>
35
+ </div>
36
+
37
+ <footer>
38
+ <div class="container-fluid" >
39
+ {% include footer.html %}
40
+ </div>
41
+ </footer>
42
+
43
+ {% include javascripts.html %}
@@ -1,3 +1,4 @@
1
+
1
2
  .container {
2
3
  max-width: 46rem;
3
4
  section[role="main"] {
@@ -19,214 +20,3 @@
19
20
 
20
21
  margin-top: 40px;
21
22
  }
22
-
23
- .no-margin-no-padding {
24
- margin: 0;
25
- padding: 0;
26
- }
27
-
28
- // Features "portfolio" section
29
- .portfolio-page {
30
-
31
- .project {
32
-
33
- margin-top: 10px;
34
- margin-bottom: 20px;
35
- //border: 1px solid rgba(0, 0, 0, 0.125);
36
-
37
- .project-info {
38
-
39
- // Features organization button
40
- a[role="button"] {
41
- border-radius: 0;
42
- position: absolute;
43
- top: 0px;
44
- left: 0px;
45
-
46
- @include media-breakpoint-down(sm) {
47
- padding: 10px;
48
- font-size: 20px;
49
- }
50
- }
51
-
52
- // End button featuring
53
-
54
- h1, h2, h3, h4, h5, h6 {
55
- font-size: 20px;
56
- text-align: center;
57
- width: 100%;
58
- }
59
-
60
- background-color: #f5f5f5;
61
- padding: 50px;
62
-
63
- .description {
64
- @extend .text-justify;
65
- font-size: 15px;
66
- }
67
-
68
- .technologies {
69
- @extend .m-x-auto;
70
- @extend .text-xs-center;
71
- }
72
- }
73
-
74
- .project-image {
75
- padding: 0;
76
-
77
- img {
78
- @extend .img-fluid;
79
- }
80
- }
81
- }
82
- }
83
-
84
- // Features "nosotros" section
85
-
86
- .us-page {
87
-
88
- .card {
89
- border-radius: 0;
90
- }
91
-
92
- img {
93
- @extend .m-x-auto;
94
- @extend .d-block;
95
- @extend .img-fluid;
96
- width: 80%;
97
- margin: 2rem;
98
- border-radius: 0 !important;
99
- }
100
-
101
- div.description {
102
- @extend .text-justify;
103
- }
104
-
105
- div.social-container {
106
- i.fa {
107
- color: white;
108
- display: inline-block;
109
- line-height: 1;
110
- padding: 0.4em;
111
- border-radius: 0.1em;
112
- box-shadow: inset 0 -2px 0 rgba(0,0,0,0.12);
113
-
114
- .fa {
115
- &.fa-code { background-color: $social_livecoding; }
116
- &.fa-envelope { background-color: $social_mail; }
117
- &.fa-github { background-color: $social_github;}
118
- &.fa-gitlab { background-color: $social_gitlab;}
119
- &.fa-linkedin { background-color: $social_linkedin;}
120
- &.fa-google-plus-square { background-color:$social_google-plus-square;}
121
- &.fa-twitter { background-color: $social_twitter;}
122
- }
123
- }
124
- }
125
-
126
- // Greater images on small devices
127
- @include media-breakpoint-up(sm) {
128
- img {
129
- width: 70%;
130
- }
131
- }
132
-
133
- @include media-breakpoint-up(md) {
134
- img {
135
- width: 50%;
136
- }
137
- }
138
-
139
- @include media-breakpoint-up(lg) {
140
- img {
141
- width: 40%;
142
- }
143
- }
144
- }
145
-
146
- .presentation-page {
147
-
148
- padding: 0;
149
-
150
- .jumbotron {
151
- background-color: #f1f3f3;
152
- border-radius: 0;
153
- //border: 1px solid rgba(0, 0, 0, 0.125);
154
- padding: 2rem 1rem;
155
-
156
- h1, h2, h3, h4, h5, h6 {
157
- @extend .text-xs-center;
158
- }
159
-
160
- p {
161
- padding: 1em;
162
- }
163
- img {}
164
- }
165
-
166
- .row {
167
- margin-left: 0px;
168
- margin-right: 0px;
169
- }
170
-
171
- .service {
172
-
173
- h1, h2, h3, h4, h5, h6 {
174
- @extend .text-xs-center;
175
- }
176
-
177
- p {
178
- padding: 2em;
179
-
180
- @include media-breakpoint-up (md) {
181
- font-size: 0.9em;
182
- padding: 0;
183
- }
184
-
185
- em {
186
- font-style: normal;
187
- font-weight: bold;
188
- }
189
- }
190
-
191
- .fa {
192
- @extend .text-xs-center;
193
- width: 100%;
194
- line-height: 200%;
195
- font-size: 2em; // .fa-2x
196
-
197
- @include media-breakpoint-down(md) {
198
- font-size: 3em; // .fa-3x
199
- }
200
-
201
- @include media-breakpoint-down(sm) {
202
- font-size: 4em;// .fa-4x
203
- }
204
- }
205
-
206
- .fa-gamepad {
207
- color: $main-color;
208
- }
209
-
210
- .fa-android {
211
- color: #92c71c;
212
- }
213
-
214
- .fa-wrench {
215
- color: grey;
216
- }
217
- }
218
- }
219
-
220
- .contact-page {
221
- .row {
222
- padding: 0 1em;
223
- }
224
- }
225
-
226
- /* Small. Above 34em (544px) */
227
-
228
- /* Medium. Above 48em (768px) */
229
-
230
- /* Large. Above 62em (992px) */
231
-
232
- /* Extra large. Above 75em (1200px) */
data/screenshot.png CHANGED
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sonirico
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-19 00:00:00.000000000 Z
11
+ date: 2016-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -52,7 +52,8 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
- description: Geekyll strong feature is a dynamic front-page system.
55
+ description: 'Geekyll strong feature is a dynamic front-page system. Featuring: Bootstrap
56
+ 4, jQuery, Fontawesome.'
56
57
  email:
57
58
  - marsanben92@hotmail.com
58
59
  executables: []
@@ -61,12 +62,14 @@ extra_rdoc_files: []
61
62
  files:
62
63
  - LICENSE.txt
63
64
  - README.md
65
+ - _includes/analytics.html
64
66
  - _includes/footer.html
65
67
  - _includes/head.html
66
68
  - _includes/header.html
67
69
  - _includes/image.html
68
70
  - _includes/javascripts.html
69
71
  - _includes/navigation.html
72
+ - _includes/opengraph.html
70
73
  - _includes/social.html
71
74
  - _layouts/default.html
72
75
  - _layouts/index.html
@@ -184,5 +187,5 @@ rubyforge_project:
184
187
  rubygems_version: 2.6.7
185
188
  signing_key:
186
189
  specification_version: 4
187
- summary: Geek jekyll itheme for cool organizations.
190
+ summary: Geek jekyll theme for cool organizations.
188
191
  test_files: []