jekyll-dark-ored 0.1.0 → 0.1.1

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.
data/README.md ADDED
@@ -0,0 +1,137 @@
1
+ # jekyll-simple-ored
2
+
3
+ A simple dark orange red theme for Jekyll.
4
+
5
+ Responsive images, tables, iframes (for include videos of **Youtube**, **Vimeo** or similar services) and other elements thanks to mi CSS framework [MicroCSS](https://son-link.github.io/microcss/)
6
+
7
+ A simple pure javascript code for toggle menu and responsive tables.
8
+
9
+ Compatible with Google Analytics and jekyll-seo-tags.
10
+
11
+ Icon font make with [Fontello](http://fontello.com/)
12
+
13
+ Support socials networks links (simple add the links on your _config.yml):
14
+
15
+ * RSS
16
+ * Facebook
17
+ * Twitter
18
+ * Pinterest
19
+ * Youtube
20
+ * Vimeo
21
+ * Instagram
22
+ * Linkedin
23
+ * Reedit
24
+ * Spotify
25
+ * Telegram
26
+ * GitLab
27
+ * GitHub
28
+ * Git
29
+
30
+ If you need a icon for others socials networks create a new issue on theme repository.
31
+
32
+ Browser compatibility:
33
+
34
+ * Firefox
35
+ * Chrome/Chromium
36
+ * Edge
37
+ * Internet Explorer 10
38
+ * Opera
39
+
40
+ ## Installation
41
+
42
+ Add this lines to your Jekyll site's `Gemfile`:
43
+
44
+ ```ruby
45
+ gem "jekyll-dark-ored"
46
+ gem "jekyll-paginator" # This line isn't necessary if you use github-pages
47
+ ```
48
+
49
+ Add this lines to your Jekyll site's `_config.yml`:
50
+
51
+ ```yaml
52
+ theme: jekyll-simple-dark
53
+ plugins:
54
+ - jekyll-paginate
55
+ paginate: 5 # Posts per page
56
+ paginate_path: "page:num/"
57
+ ```
58
+
59
+ Rename **index.md** to **index.html** and change **layout** to *home*
60
+
61
+ And then execute:
62
+
63
+ $ bundle
64
+
65
+ Or install it yourself as:
66
+
67
+ $ gem install jekyll-dark-ored
68
+
69
+ ### Social links:
70
+
71
+ For activate social links add these lines on your _config.yml:
72
+
73
+ ```yaml
74
+ social_links: true # If true show social links
75
+ rss: true # For add icon to link feed.xml
76
+ facebook:
77
+ git:
78
+ gitlab:
79
+ github:
80
+ instagram:
81
+ linkedin:
82
+ reedit:
83
+ spotify:
84
+ pinterest:
85
+ telegram:
86
+ twitch:
87
+ twitter:
88
+ vimeo:
89
+ youtube:
90
+ ```
91
+ Just add the ones you're going to use.
92
+
93
+ ### Responsive iframe for Youtube, Google Maps, etc:
94
+
95
+ Insert the iframe code into a div whit the class **resp-iframe** and remove **width** and **height** attributes, like this:
96
+
97
+ ```html
98
+ <div class="resp-iframe">
99
+ <iframe src="https://www.youtube.com/embed/<videoID>" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
100
+ </div>
101
+ ```
102
+
103
+ ### Google Analytics:
104
+ For use Google Analytics include this line on **_config.yml** and replace &lt;code> for your Google Analytics code:
105
+
106
+ ```yaml
107
+ google-analytics: <code>
108
+ ```
109
+ Where &lt;code> is your Google Analytics code.
110
+
111
+ ### jekyll-seo-tag:
112
+ For use you only need add this plugin on the plugins array on **_config.yml**
113
+
114
+ ### Icons:
115
+ This theme include somo icons ready to use.
116
+
117
+
118
+
119
+ ## Contributing
120
+
121
+ Bug reports and pull requests are welcome on [GitHub](https://github.com/son-link/jekyll-dark-ored)
122
+ . 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.
123
+
124
+ ## Development
125
+
126
+ To set up your environment to develop this theme, run `bundle install`.
127
+
128
+ 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.
129
+
130
+ When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
131
+ To add a custom directory to your theme-gem, please edit the regexp in `simple-dark.gemspec` accordingly.
132
+
133
+ This theme use [MicroCSS](https://son-link.github.io/microcss/index.html) CSS framework.
134
+
135
+ ## License
136
+
137
+ The theme is available as open source under the terms of the [GNU/GPL3](https://opensource.org/licenses/GPL-3.0).
@@ -0,0 +1,28 @@
1
+ <footer>
2
+ {% if site.social_links %}
3
+ <nav id="social_links">
4
+ {% if.site.rss%}<a href="{{ '/feed.xml' | absolute_url }}" class="icon-rss"></a>{% endif %}
5
+ {% if site.facebook %}<a href="{{site.facebook}}" class="icon-facebook" target="_black" title="Facebook"></a>{% endif %}
6
+ {% if site.github %}<a href="{{site.github}}" class="icon-github" target="_black" title="Github"></a>{% endif %}
7
+ {% if site.gitlab %}<a href="{{site.gitlab}}" class="icon-gitlab" target="_black" title="GitLab"></a>{% endif %}
8
+ {% if site.git %}<a href="{{site.git}}" class="icon-git" target="_black" title="Git"></a>{% endif %}
9
+ {% if site.gplus %}<a href="{{site.gplus}}" class="icon-gplus" target="_black" title="Google+"></a>{% endif %}
10
+ {% if site.instagram %}<a href="{{site.instagram}}" class="icon-instagram" target="_black" title="Instagram"></a>{% endif %}
11
+ {% if site.linkedin %}<a href="{{site.linkedin}}" class="icon-linkedin" target="_black" title="Linkedin"></a>{% endif %}
12
+ {% if site.pinterest %}<a href="{{site.pinterest}}" class="icon-pinterest" target="_black" title="Pinterest"></a>{% endif %}
13
+ {% if site.reedit %}<a href="{{site.reedit}}" class="icon-reedit" target="_black" title="Reedit"></a>{% endif %}
14
+ {% if site.spotify %}<a href="{{site.spotify}}" class="icon-spotify" target="_black" title="Spotify"></a>{% endif %}
15
+ {% if site.telegram %}<a href="{{site.telegram}}" class="icon-telegram" target="_black" title="Telegram"></a>{% endif %}
16
+ {% if site.twitch %}<a href="{{site.twith}}" class="icon-twitch" target="_black" title="Twitch"></a>{% endif %}
17
+ {% if site.twitter %}<a href="{{site.twitter}}" class="icon-twitter" target="_black" title="Twitter"></a>{% endif %}
18
+ {% if site.vimeo %}<a href="{{site.vimeo}}" class="icon-vimeo" target="_black" title="Vimeo"></a>{% endif %}
19
+ {% if site.youtube %}<a href="{{site.youtube}}" class="icon-youtube" target="_black" title="Youtube"></a>{% endif %}
20
+ </nav>
21
+ {% endif %}
22
+ <p id="credits">
23
+ {{site.credits}}
24
+ </p>
25
+ </footer>
26
+ </body>
27
+ <script type="text/javascript" src="{{'/assets/js/menu.js' | absolute_url }}"></script>
28
+ </html>
@@ -0,0 +1,10 @@
1
+ <script>
2
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
6
+
7
+ ga('create', 'UA-75229203-1', 'auto');
8
+ ga('send', 'pageview');
9
+
10
+ </script>
@@ -0,0 +1,41 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
7
+ <link rel="stylesheet" type="text/css" href="{{ '/assets/css/normalize.css' | absolute_url }}" />
8
+ <link rel="stylesheet" type="text/css" href="{{ '/assets/css/fontello-embedded.css' | absolute_url }}" />
9
+ <link rel="stylesheet" type="text/css" href="{{ '/assets/css/style.css' | absolute_url }}" />
10
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ '/feed.xml' | absolute_url }}" />
11
+ <!-- Check if jekyll-seo-tag plugin is activated -->
12
+ {% if site.plugins contains 'jekyll-seo-tag' %}
13
+ {% seo %}
14
+ {% endif %}
15
+ <!-- If user add her Google Analytics code include the file for use -->
16
+ {% if site.google-analytics %}
17
+ {% include google-analytics.html %}
18
+ {% endif %}
19
+ </head>
20
+ <body>
21
+ <header>
22
+ <div class="navbar">
23
+ <nav>
24
+ <a href="{{ site.url }}"><span class="navbar-title float-left" id="site-title">{{ site.title }}</span></a>
25
+ <a href="#" id="toggle-menu"><i class="icon-menu"></i></a>
26
+ <div id="main-nav">
27
+ {% for p in site.pages %}
28
+ {% if p.title %}
29
+ <a href="{{ p.url | absolute_url }}">{{ p.title }}</a>
30
+ {% endif %}
31
+ {% endfor %}
32
+ </div>
33
+ </nav>
34
+ </div>
35
+ </header>
36
+ <div id="home">
37
+ <div id="site-desc">
38
+ <h1>{{ site.title }}</h1>
39
+ {{ site.description }}
40
+ </div>
41
+ </div>
@@ -0,0 +1,5 @@
1
+ {% include header.html %}
2
+ <div id="content">
3
+ {{ content }}
4
+ </div>
5
+ {% include footer.html %}
@@ -0,0 +1,46 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div id="entries">
5
+ {% for post in paginator.posts %}
6
+ <div class="entry">
7
+ <div class="entry-header">
8
+ <a href="{{ post.url | absolute_url }}" class="entry-title">{{ post.title }}</a>
9
+ <time class="entry-date">{{ post.date | date: "%d/%m/%Y" }}</time>
10
+ </div>
11
+ <div class="entry-content">
12
+ {{ post.description }}
13
+ </div>
14
+ <div class="entry-footer">
15
+ <a href="{{ post.url | absolute_url }}" class="entry-url">Leer más <i class="icon-next"></i></a>
16
+ </div>
17
+ </div>
18
+ {% endfor %}
19
+ </div>
20
+
21
+ <!-- Pagination links -->
22
+ {% if paginator.total_pages > 1 %}
23
+ <nav id="pagination">
24
+ {% if paginator.previous_page %}
25
+ <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' | prepend: site.url }}"><i class="icon-prev"></i></a>
26
+ {% else %}
27
+ <span class="icon-prev inactive"></span>
28
+ {% endif %}
29
+
30
+ {% for page in (1..paginator.total_pages) %}
31
+ {% if page == paginator.page %}
32
+ <span class="actual-page inactive">{{ page }}</span>
33
+ {% elsif page == 1 %}
34
+ <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' | prepend: site.url }}">{{ page }}</a>
35
+ {% else %}
36
+ <a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page | prepend: site.url }}">{{ page }}</a>
37
+ {% endif %}
38
+ {% endfor %}
39
+
40
+ {% if paginator.next_page %}
41
+ <a rel="next" href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' | prepend: site.url }}"><i class="icon-next"></i></a>
42
+ {% else %}
43
+ <span class="icon-next inactive"></span>
44
+ {% endif %}
45
+ </nav>
46
+ {% endif %}
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="entry">
5
+ <span class="entry-title">{{ page.title }}</span>
6
+ {{ content }}
7
+ </div>
@@ -0,0 +1,8 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="entry">
5
+ <span class="entry-title">{{ page.title }}</span>
6
+ <time class="entry-date">{{ page.date | date: "%d/%m/%Y" }}</time>
7
+ {{ content }}
8
+ </div>
@@ -0,0 +1,380 @@
1
+ // Colors
2
+ $navy: #001f3f;
3
+ $blue: #0074D9;
4
+ $aqua: #7FDBFF;
5
+ $teal: #39CCCC;
6
+ $olive: #3D9970;
7
+ $green: #2ECC40;
8
+ $lime: #01FF70;
9
+ $yellow: #FFDC00;
10
+ $orange: #FF851B;
11
+ $red: #FF4136;
12
+ $maroon: #85144b;
13
+ $fuchsia: #F012BE;
14
+ $purple: #B10DC9;
15
+ $black: #212121;
16
+ $gray: #AAAAAA;
17
+ $silver: #DDDDDD;
18
+ $white: #FFFFFF;
19
+
20
+ /* CSS Reset */
21
+
22
+ html {
23
+ box-sizing: border-box;
24
+ font-size: 16px;
25
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
26
+ }
27
+
28
+ *, *:before, *:after {
29
+ box-sizing: inherit;
30
+ }
31
+
32
+ body, h1, h2, h3, h4, h5, h6, p, ol, ul {
33
+ margin: 0;
34
+ padding: 0;
35
+ font-weight: normal;
36
+ }
37
+
38
+ ul {
39
+ list-style: circle inside;
40
+ }
41
+ /* Lists */
42
+ ol {
43
+ list-style: decimal inside;
44
+ }
45
+
46
+ li {
47
+ margin-bottom: .5rem;
48
+ }
49
+
50
+ li > ul, li > ol {
51
+ margin: 1rem 0 1rem 1rem;
52
+ }
53
+
54
+ img {
55
+ max-width: 100%;
56
+ height: auto;
57
+ }
58
+
59
+ body {
60
+ line-height: 1;
61
+ color: $black;
62
+ }
63
+
64
+ // The grid
65
+
66
+ $col_size: 100%/12;
67
+
68
+ .row {
69
+ width: 100%;
70
+ max-width: 1140px;
71
+ &:before,
72
+ &:after {
73
+ content:"";
74
+ display:table;
75
+ clear:both;
76
+ }
77
+
78
+ @for $i from 1 to 13 {
79
+ .col-#{$i} { width: $col_size * $i; float: left; }
80
+ }
81
+ }
82
+
83
+ .row *[class*=col-]{
84
+ padding: 5px 0;
85
+ box-sizing: border-box;
86
+ }
87
+
88
+ h1 {font-size: 48px; line-height: 58px}
89
+ h2 {font-size: 40px; line-height: 50px}
90
+ h3 {font-size: 32px; line-height: 42px}
91
+ h4 {font-size: 28px; line-height: 38px}
92
+ h5 {font-size: 24px; line-height: 34px}
93
+ h6 {font-size: 20px; line-height: 30px}
94
+
95
+ /* Forms and buttons */
96
+
97
+ input,
98
+ optgroup,
99
+ select,
100
+ textarea {
101
+ font-family: inherit;
102
+ font-size: 100%;
103
+ line-height: 150%;
104
+ margin: 0;
105
+ -webkit-appearance: none;
106
+ background: #FFFFFF;
107
+ padding: 0 3px;
108
+ color: $black;
109
+ border: 1px solid $gray;
110
+ border-radius: 3px;
111
+ transition: border-color 0.2s ease;
112
+
113
+ &:focus {
114
+ border-color: $aqua;
115
+ }
116
+
117
+ &:disabled {background-color: $silver}
118
+
119
+ &:invalid {
120
+ border: 1px solid $red;
121
+ box-shadow: none;
122
+ }
123
+ }
124
+
125
+ select{
126
+ padding-right: 24px;
127
+ background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTcuNDEsOC41OEwxMiwxMy4xN0wxNi41OSw4LjU4TDE4LDEwTDEyLDE2TDYsMTBMNy40MSw4LjU4WiIgLz48L3N2Zz4=);
128
+ background-position: 100% 50%;
129
+ background-repeat: no-repeat;
130
+ }
131
+
132
+ /* Buttons and alerts */
133
+
134
+ button, a.button, .alert, *[type=submit], *[type=reset] {
135
+ background-color: $white;
136
+ border: 1px solid $gray;
137
+ border-radius: 3px;
138
+ line-height: 2rem;
139
+ color: $black;
140
+ padding: 0 10px;
141
+ height: 2rem;
142
+ display: inline-block;
143
+ }
144
+
145
+ .alert {margin: 10px 0}
146
+
147
+ .primary, .success, .danger, .warning, .info, *:disabled{
148
+ color: #FFFFFF;
149
+ }
150
+
151
+ .primary {
152
+ background: $blue;
153
+ border-color: $blue;
154
+ }
155
+
156
+ .success {
157
+ background: $green;
158
+ border-color: $green;
159
+ }
160
+
161
+ .danger {
162
+ background: $red;
163
+ border-color: $red;
164
+ }
165
+
166
+ .warning {
167
+ background: $orange;
168
+ border-color: $orange;
169
+ }
170
+
171
+ .info {
172
+ background: $aqua;
173
+ border-color: $aqua;
174
+ }
175
+
176
+ /* Material Icons */
177
+ .material-icons {
178
+ display: inline;
179
+ vertical-align: middle;
180
+ }
181
+
182
+ /* Responsive iframes for YouTube videos and Iframes*/
183
+
184
+ .resp-iframe {
185
+ position: relative;
186
+ width: 100%;
187
+ padding-bottom:56.25%;
188
+ margin: auto;
189
+ height: 0;
190
+
191
+ iframe {
192
+ position: absolute;
193
+ width: 100%;
194
+ height: 100%;
195
+ top: 0;
196
+ left: 0;
197
+ }
198
+ }
199
+
200
+ video, audio {
201
+ width: 100%;
202
+ max-width: 1280px;
203
+ height: auto;
204
+ }
205
+
206
+ /* Navbar and links */
207
+
208
+ .navbar {
209
+ line-height: 50px;
210
+ border-bottom: 1px solid $black;
211
+ margin-bottom: 10px;
212
+ padding: 0 .2rem;
213
+
214
+ a, .navbar-title {
215
+ display: inline-block;
216
+ margin-right: 5px;
217
+ }
218
+
219
+ nav {
220
+ display: inline;
221
+ }
222
+
223
+ .navbar-title {
224
+ font-weight: bold;
225
+ font-size: 120%;
226
+ }
227
+
228
+ &.fixed {
229
+ position: sticky;
230
+ top: 0;
231
+ background: $white;
232
+ z-index: 666;
233
+ }
234
+
235
+ &.navbar-vert {
236
+ line-height: 1.5rem;
237
+ display: table;
238
+ border-bottom: 0;
239
+ a, .navbar-title {
240
+ display: block;
241
+ }
242
+ }
243
+ }
244
+
245
+ a {
246
+ color: $blue;
247
+ text-decoration: none;
248
+ transition: color .5s ease;
249
+ &:hover {color: $black}
250
+ }
251
+
252
+ /* Tables */
253
+
254
+ table {
255
+ width: 100%;
256
+ border-collapse: collapse;
257
+ table-layout: fixed;
258
+ margin: 10px 0;
259
+
260
+ td, th {
261
+ padding: 5px;
262
+ line-height: 150%;
263
+ border-top: 1px solid $gray;
264
+ border-bottom: 1px solid $gray;
265
+ text-align: left;
266
+ }
267
+
268
+ &.strip {
269
+ tbody tr:nth-of-type(2n+2) {
270
+ background-color: $silver;
271
+ }
272
+ }
273
+
274
+ &.bordered {
275
+ td, th {
276
+ border: 1px solid $gray;
277
+ border-bottom: 1px solid $gray;
278
+ }
279
+ }
280
+ }
281
+
282
+ /* Blockquote */
283
+
284
+ blockquote, pre {
285
+ font-family: monospace;
286
+ background-color: $black;
287
+ color: $gray;
288
+ border-radius: 3px;
289
+ padding: 1rem;
290
+ margin: 0;
291
+ }
292
+
293
+ pre {
294
+ white-space: pre-wrap;
295
+ }
296
+
297
+ ul, ol, p, table, blockquote, form, blockquote, pre, .resp-iframe {
298
+ margin-bottom: 2rem;
299
+ }
300
+
301
+ /* Utilities */
302
+
303
+ .text-left {
304
+ text-align: left
305
+ }
306
+
307
+ .text-right {
308
+ text-align: right;
309
+ }
310
+
311
+ .text-center {
312
+ text-align: center;
313
+ }
314
+
315
+ .float-left {
316
+ float: left;
317
+ }
318
+
319
+ .float-right {
320
+ float: right;
321
+ }
322
+
323
+ /* Cards */
324
+
325
+ .card {
326
+ width: 96%;
327
+ border-radius: .3rem;
328
+ box-shadow: 1px 1px 1px rgba(0, 0, 0, .2),-1px -1px 1px rgba(0, 0, 0, .2);
329
+ padding: 1rem;
330
+
331
+ p {
332
+ margin: 0;
333
+ }
334
+ }
335
+
336
+ @media (max-width: 639px){
337
+
338
+ table.responsive {
339
+ & thead {display: none}
340
+ & th, & td {
341
+ display: block;
342
+ padding-left: 50%;
343
+ position: relative;
344
+ border-bottom: 0;
345
+ }
346
+ & th:before, & td:before{
347
+ display: inline-block;
348
+ width: 50%;
349
+ content: attr(data-title);
350
+ position: absolute;
351
+ left: 0;
352
+ font-weight: bold;
353
+ padding:0 5px;
354
+ }
355
+ & tr:nth-of-type(2n+2) {
356
+ background-color: $silver;
357
+ }
358
+ }
359
+ }
360
+
361
+ @media (max-width: 479px) {
362
+ .row *[class*=col-]{
363
+ float: none;
364
+ width: 100%;
365
+ }
366
+
367
+ table.responsive {
368
+ & th, & td {
369
+ display: block;
370
+ width: 100%;
371
+ padding-left: 5px;
372
+ }
373
+ & th:before, & td:before{
374
+ display: block;
375
+ width: 100%;
376
+ position: relative;
377
+ padding: 0;
378
+ }
379
+ }
380
+ }