type-on-strap 0.3.0 → 0.4.2

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: 41737444e953755c8857b1560289ef5d8149f7af
4
- data.tar.gz: bb284350e1deca22cc043fa4464639721553e14a
3
+ metadata.gz: 82b5b5c11368433c2c385ae85a584e8b90be4021
4
+ data.tar.gz: de33a7e934937ebf744c112fec92f39588b60dc7
5
5
  SHA512:
6
- metadata.gz: 650fc66f48e58f0c0168debc0834582c3cd66a8449769d68f2fc949e6947deaccbfc8f4dddfa726521b199a818ca823063a90ff52b10ef0855246eca2cf4e5e0
7
- data.tar.gz: fd562818a2e06b39c5685aa25dcbe9de1776eacf3b50f311d758720af444ebe3eca33634e619e14651316418a6d2cf666d230f9233913a1c5a8fa31a251208a1
6
+ metadata.gz: 8b0b4dc66af2c021ea11daa54491963102ee595749263bfbffb9d1f20dd6d7eaf18360ae7a080afca0827a44cebe57b70bb9c0de3cea2d7756afebc414af0e21
7
+ data.tar.gz: ecd271cbd0587a1cffee6def6b6b7e24fd8b9c30e59092290806f2ed30a39c4d86922a8408678323fc92729d88e1fdc04a64f1aebedc5acb2ba1a6d07a4e936d
data/README.md CHANGED
@@ -1,14 +1,18 @@
1
- # Type on Strap [![Build Status](https://travis-ci.org/Sylhare/Type-on-Strap.svg?branch=gh-pages)](https://travis-ci.org/Sylhare/Type-on-Strap)
1
+ # Type on Strap
2
+
3
+ [![Build Status](https://travis-ci.org/Sylhare/Type-on-Strap.svg?branch=master)](https://travis-ci.org/Sylhare/Type-on-Strap)
4
+ [![Gem Version](https://badge.fury.io/rb/type-on-strap.svg)](https://badge.fury.io/rb/type-on-strap)
2
5
 
3
6
  A free and open-source [Jekyll](https://jekyllrb.com) theme. Based on Rohan Chandra [type-theme](https://github.com/rohanchandra/type-theme) with a few new features:
4
7
 
5
8
  * Responsive design
6
9
  * Portfolio page for your projects
7
- * Tags compability
10
+ * Tags compatibility
8
11
  * Bootstrap : [Get Bootstrap](http://getbootstrap.com/)
9
12
  * Search feature : [Simple-Jekyll-Search](https://github.com/christian-fei/Simple-Jekyll-Search)
10
13
  * Math Rendering : [KateX](https://github.com/Khan/KaTeX)
11
14
  * Seo Tags : [Jekyll-seo-tag](https://help.github.com/articles/search-engine-optimization-for-github-pages/)
15
+ * Syntax Highlighting: Easily customisable [Base16](https://github.com/chriskempson/base16)
12
16
  * Free of rights images from [pexels](https://www.pexels.com/)
13
17
 
14
18
  > [Demo](https://sylhare.github.io/Type-on-Strap/)
@@ -18,7 +22,7 @@ A free and open-source [Jekyll](https://jekyllrb.com) theme. Based on Rohan Chan
18
22
  ## Table of Contents
19
23
 
20
24
  1. [Usage](https://github.com/Sylhare/Type-on-Strap#Usage)
21
- 2. [Struture](https://github.com/Sylhare/Type-on-Strap#structure)
25
+ 2. [Structure](https://github.com/Sylhare/Type-on-Strap#structure)
22
26
  3. [Configure Type on Strap](https://github.com/Sylhare/Type-on-Strap#configure-type-on-strap)
23
27
  4. [Layout](https://github.com/Sylhare/Type-on-Strap#layout)
24
28
  5. [Feature pages](https://github.com/Sylhare/Type-on-Strap#feature-pages)
@@ -43,7 +47,7 @@ jekyll-theme-basically-basic
43
47
  ├── _draft # To store your drafts, they won't be published on your site
44
48
  ├── _includes # theme includes
45
49
  ├── _layouts # theme layouts (see below for details)
46
- ├── _portofolio # collection of article to be populated in the portfolio page
50
+ ├── _portfolio # collection of article to be populated in the portfolio page
47
51
  ├── _posts # Blog posts
48
52
  ├── _sass # Sass partials
49
53
  ├── assets
@@ -150,9 +154,9 @@ Display the site's icon from [Font Awesome](https://fortawesome.github.io/Font-A
150
154
 
151
155
  ```yml
152
156
  theme_settings:
153
- rss: true
157
+ rss: true # Make sure you created a feed.xml with feed.xml layout
154
158
  email_address: type@example.com
155
- linkedin: ttps://www.linkedin.com/in/FirstLast
159
+ linkedin: https://www.linkedin.com/in/FirstLast
156
160
  stack_exchange: https://stackoverflow.com/users/0000/first-last
157
161
  ```
158
162
 
@@ -203,6 +207,23 @@ $$
203
207
  $$
204
208
  ```
205
209
 
210
+ ### Post excerpt
211
+
212
+ The [excerpt](https://jekyllrb.com/docs/posts/#post-excerpts) are the first lines of an article that is display on the blog page. The length of the excerpt has a default of around `250` characters and can be manually set in the post using:
213
+ ```yml
214
+ ---
215
+ layout: post
216
+ title: Sample Page
217
+ excerpt_separator: <!--more-->
218
+ ---
219
+
220
+ some text in the excerpt
221
+ <!--more-->
222
+ ... rest of the text not shown in the excerpt ...
223
+ ```
224
+
225
+ The html is stripped out of the excerpt so it only display text.
226
+
206
227
  ## Layout
207
228
  Please refer to the [Jekyll docs for writing posts](https://jekyllrb.com/docs/posts/). Non-standard features are documented below.
208
229
 
data/_includes/icons.html CHANGED
@@ -1,6 +1,6 @@
1
1
  {% if site.theme_settings.rss %}
2
2
  <li>
3
- <a href="{{ site.url }}//{{ site.baseurl }}//feed.xml" title="{{ site.theme_settings.str_rss_follow }}">
3
+ <a href="{{ site.url }}{{ site.baseurl }}/feed.xml" title="{{ site.theme_settings.str_rss_follow }}">
4
4
  <span class="fa-stack fa-lg">
5
5
  <i class="fa fa-circle fa-stack-2x"></i>
6
6
  <i class="fa fa-rss fa-stack-1x fa-inverse"></i>
@@ -21,6 +21,9 @@
21
21
  <ul>
22
22
  {% for page in site.pages %}
23
23
  {% if page.title and page.hide != true %}
24
+ <li class="separator">
25
+ |
26
+ </li>
24
27
  <li>
25
28
  <a class="clear" href="{{ page.url | relative_url }}">
26
29
  {{ page.title }}
@@ -29,6 +32,9 @@
29
32
  {% endif %}
30
33
  {% endfor %}
31
34
  {% if site.theme_settings.portfolio %}
35
+ <li class="separator">
36
+ |
37
+ </li>
32
38
  <li>
33
39
  <a class="clear" href="{{ site.url }}{{ site.baseurl }}/portfolio">
34
40
  Portfolio
@@ -36,6 +42,9 @@
36
42
  </li>
37
43
  {% endif %}
38
44
  {% if site.theme_settings.search %}
45
+ <li class="separator">
46
+ |
47
+ </li>
39
48
  <li>
40
49
  <a class="clear" href="{{ site.url }}{{ site.baseurl }}/search">
41
50
  <i class="fa fa-search" aria-hidden="true"></i>
@@ -43,6 +52,9 @@
43
52
  </li>
44
53
  {% endif %}
45
54
  {% if site.theme_settings.tags %}
55
+ <li class="separator">
56
+ |
57
+ </li>
46
58
  <li>
47
59
  <a class="clear" href="{{ site.url }}{{ site.baseurl }}/tags">
48
60
  <i class="fa fa-tags" aria-hidden="true"></i>
@@ -1,19 +1,23 @@
1
1
  {% assign tags = include.tags | split:'|' | sort | uniq %}
2
2
 
3
3
  {% if include.tags.size > 0 %}
4
- <footer>
5
- <div class="tag-list">
6
- {% if include.tags.size == 1 %}
7
- <div class="meta">Tag</div>
8
- {% elsif include.tags.size > 1 %}
9
- <div class="meta">Tags</div>
10
- {% endif %}
11
-
12
- {% for tag in tags %}
13
- <a class="button" href="{{site.baseurl}}/tags#{{tag}}">
14
- <p><i class="fa fa-tag fa-fw"></i> {{ tag }}</p>
15
- </a>
16
- {% endfor %}
17
- </div>
18
- </footer>
19
- {% endif %}
4
+ <footer>
5
+ <div class="tag-list">
6
+ {% if include.tags.size == 1 %}
7
+ <div class="meta">Tag</div>
8
+ {% elsif include.tags.size > 1 %}
9
+ <div class="meta">Tags</div>
10
+ {% endif %}
11
+
12
+ {% for tag in tags %}
13
+ <a class="button" href="{{site.baseurl}}/tags#{{tag}}">
14
+ <p><i class="fa fa-tag fa-fw"></i> {{ tag }}</p>
15
+ </a>
16
+ {% endfor %}
17
+ </div>
18
+ </footer>
19
+ {% else %}
20
+ <footer>
21
+ <div class="tag-list"></div>
22
+ </footer>
23
+ {% endif %}
data/_layouts/feed.xml ADDED
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3
+ <channel>
4
+ <title>{{ site.theme_settings.title | xml_escape }}</title>
5
+ <atom:link href="{{ "/feed.xml" | relative_url }}" rel="self" type="application/rss+xml"/>
6
+ <link>{{ site.url }}{{ site.baseurl }}/</link>
7
+ <description>{{ site.theme_settings.description | xml_escape }}</description>
8
+ <pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
9
+ {% for post in site.posts limit:15 %}
10
+ <item>
11
+ <title>{{ post.title | xml_escape }}</title>
12
+ <link>{{ post.url | relative_url }}</link>
13
+ <guid isPermaLink="true">{{ post.url | relative_url }}</guid>
14
+ <description>{{ post.content | xml_escape }}</description>
15
+ <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
16
+ </item>
17
+ {% endfor %}
18
+ </channel>
19
+ </rss>
data/_layouts/home.html CHANGED
@@ -30,7 +30,8 @@ layout: default
30
30
  </p>
31
31
  </header>
32
32
  <div class="excerpt">
33
- {{ post.content | strip_html | truncate: "250" }}
33
+ {{ post.excerpt | strip_html }}
34
+ <!--{{ post.content | strip_html | truncate: "250" }}-->
34
35
  <!--<a class="button" href="{{ post.url | prepend: site.baseurl }}">
35
36
  {{ site.theme_settings.str_continue_reading }}
36
37
  </a>-->
data/_layouts/search.html CHANGED
@@ -25,6 +25,7 @@ layout: page
25
25
  "tags" : "{{ post.tags | join: ', ' | prepend: " " }}",
26
26
  "url" : "{{ site.baseurl }}{{ post.url }}",
27
27
  "date" : "{{ post.date | date: "%B %-d, %Y" }}",
28
+ "excerpt" : "{{ post.content | strip_html | strip_newlines | replace: '"', '\\"' | truncate: '250'}}",
28
29
  "content" : "{{ post.content | strip_html | strip_newlines | replace: '"', '\\"' }}"
29
30
  } {% unless forloop.last %},{% endunless %}
30
31
  {% endfor %},
@@ -36,16 +37,17 @@ layout: page
36
37
  "tags" : "{{ page.tags | join: ', ' | prepend: " " }}",
37
38
  "url" : "{{ site.baseurl }}{{ page.url }}",
38
39
  "date" : "{{ page.date | date: "%B %-d, %Y" }}",
40
+ "excerpt" : "{{ post.content | strip_html | strip_newlines | replace: '"', '\\"' | truncate: '250'}}",
39
41
  "content" : "{{ page.content | strip_html | strip_newlines | replace: '"', '\\"' }}"
40
42
  {% endif %}
41
43
  } {% unless forloop.last %},{% endunless %}
42
44
  {% endfor %}
43
45
  {% endif %}
44
46
  ],
45
- searchResultTemplate: '<div class="search-title"><a href="{url}"><h3> {title}</h3></a><div class="meta">{date} <div class="right"><i class="fa fa-tag"></i> {tags}</div></div><p>{category}</p></div><hr> ',
47
+ searchResultTemplate: '<div class="search-title"><a href="{url}"><h3> {title}</h3></a><div class="meta">{date} <div class="right"><i class="fa fa-tag"></i> {tags}</div></div><p>{excerpt}</p></div><hr> ',
46
48
  noResultsText: 'No results found',
47
49
  limit: 10,
48
- fuzzy: true,
50
+ fuzzy: false,
49
51
  exclude: []
50
52
  })
51
53
  </script>
@@ -95,9 +95,7 @@ th {
95
95
 
96
96
  table,
97
97
  dl,
98
- code,
99
98
  kbd,
100
- pre,
101
99
  samp {
102
100
  margin: 1em 0;
103
101
  }
@@ -126,10 +124,15 @@ dl,
126
124
  }
127
125
 
128
126
  // Lists within lists
129
- li > ul,
130
- li > ol {
131
- margin-bottom: 0;
132
- margin-left: 1em;
127
+ li {
128
+ p {
129
+ display: inline;
130
+ }
131
+ & > ul,
132
+ & > ol {
133
+ margin-bottom: 0;
134
+ margin-left: 1em;
135
+ }
133
136
  }
134
137
 
135
138
  ol,
@@ -182,8 +185,7 @@ img[align=right] {
182
185
  font-size: 0.75em;
183
186
  }
184
187
  p,
185
- li,
186
- code {
188
+ li {
187
189
  font-size: 0.75em;
188
190
  }
189
191
  }
@@ -1,14 +1,9 @@
1
1
  // Typography
2
- $font-family-main: 'Source Sans Pro',
3
- Helvetica,
4
- Arial,
5
- sans-serif;
6
- $font-family-headings: 'Source Sans Pro',
7
- Helvetica,
8
- Arial,
9
- sans-serif;
2
+ $font-family-main: 'Source Sans Pro', Helvetica, Arial, sans-serif;
3
+ $font-family-headings: 'Source Sans Pro', Helvetica, Arial, sans-serif;
10
4
  $font-size: 1.25em;
11
5
 
6
+
12
7
  // Padding
13
8
  $padding-large: 20%;
14
9
  $padding-small: 5%;
@@ -18,6 +13,7 @@ $padding-x-small: 3%;
18
13
  $brand-color: #fff;
19
14
  $background-color: #fff;
20
15
  $border-color: rgba(0, 0, 0, 0.1); // rgba recommended if using feature images
16
+
21
17
  // Typography colours
22
18
  $text-color: #383838;
23
19
  $link-color: #507492; // #1ABC9C;
@@ -31,6 +27,7 @@ $search-color: #999;
31
27
 
32
28
  // Header colours
33
29
  $header-link-color: #383838;
30
+ $navbar-separator-opacity: 0;
34
31
 
35
32
  // Feature image for articles
36
33
  $feature-image-text-color: #fff;
@@ -42,3 +39,35 @@ $header-desc-text-color: #FFF;
42
39
  // Mobile display
43
40
  $break: 768px;
44
41
  $sm-break: 450px;
42
+
43
+
44
+ /* Syntax highlighting */
45
+ // Syntax typography
46
+ $monospace: Monaco, Consolas, "Lucida Console", monospace !default;
47
+ $font-size-code: 0.75em !default; // ~12px
48
+ $border-radius: 4px !default;
49
+
50
+
51
+
52
+ // base16 Material Theme
53
+ $base00: #263238 !default; // Default Background
54
+ $base01: #2E3C43 !default; // Lighter Background (Used for status bars)
55
+ $base02: #314549 !default; // Selection Background
56
+ $base03: #546E7A !default; // Comments, Invisibles, Line Highlighting
57
+ $base04: #B2CCD6 !default; // Dark Foreground (Used for status bars)
58
+ $base05: #EEFFFF !default; // Default Foreground, Caret, Delimiters, Operators
59
+ $base06: #EEFFFF !default; // Light Foreground (Not often used)
60
+ $base07: #FFFFFF !default; // Light Background (Not often used)
61
+ $base08: #F07178 !default; // Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
62
+ $base09: #F78C6C !default; // Integers, Boolean, Constants, XML Attributes, Markup Link Url
63
+ $base0a: #FFCB6B !default; // Classes, Markup Bold, Search Text Background
64
+ $base0b: #98C379 !default; // Strings, Inherited Class, Markup Code, Diff Inserted
65
+ $base0c: #89DDFF !default; // Support, Regular Expressions, Escape Characters, Markup Quotes
66
+ $base0d: #82AAFF !default; // Functions, Methods, Attribute IDs, Headings
67
+ $base0e: #C792EA !default; // Keywords, Storage, Selector, Markup Italic, Diff Changed
68
+ $base0f: #FF5370 !default; // Deprecated, Opening/Closing Embedded Language Tags e.g.
69
+
70
+
71
+
72
+
73
+
@@ -1,63 +1,126 @@
1
- // pygments-css (https://github.com/richleland/pygments-css)
2
-
3
- .hll { background-color: #ffffcc }
4
- .c { color: #999988; font-style: italic } /* Comment */
5
- .err { color: #a61717; background-color: #e3d2d2 } /* Error */
6
- .k { color: #000000; font-weight: bold } /* Keyword */
7
- .o { color: #000000; font-weight: bold } /* Operator */
8
- .cm { color: #999988; font-style: italic } /* Comment.Multiline */
9
- .cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */
10
- .c1 { color: #999988; font-style: italic } /* Comment.Single */
11
- .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
12
- .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
13
- .ge { color: #000000; font-style: italic } /* Generic.Emph */
14
- .gr { color: #aa0000 } /* Generic.Error */
15
- .gh { color: #999999 } /* Generic.Heading */
16
- .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
17
- .go { color: #888888 } /* Generic.Output */
18
- .gp { color: #555555 } /* Generic.Prompt */
19
- .gs { font-weight: bold } /* Generic.Strong */
20
- .gu { color: #aaaaaa } /* Generic.Subheading */
21
- .gt { color: #aa0000 } /* Generic.Traceback */
22
- .kc { color: #000000; font-weight: bold } /* Keyword.Constant */
23
- .kd { color: #000000; font-weight: bold } /* Keyword.Declaration */
24
- .kn { color: #000000; font-weight: bold } /* Keyword.Namespace */
25
- .kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */
26
- .kr { color: #000000; font-weight: bold } /* Keyword.Reserved */
27
- .kt { color: #445588; font-weight: bold } /* Keyword.Type */
28
- .m { color: #009999 } /* Literal.Number */
29
- .s { color: #d01040 } /* Literal.String */
30
- .na { color: #008080 } /* Name.Attribute */
31
- .nb { color: #0086B3 } /* Name.Builtin */
32
- .nc { color: #445588; font-weight: bold } /* Name.Class */
33
- .no { color: #008080 } /* Name.Constant */
34
- .nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */
35
- .ni { color: #800080 } /* Name.Entity */
36
- .ne { color: #990000; font-weight: bold } /* Name.Exception */
37
- .nf { color: #990000; font-weight: bold } /* Name.Function */
38
- .nl { color: #990000; font-weight: bold } /* Name.Label */
39
- .nn { color: #555555 } /* Name.Namespace */
40
- .nt { color: #000080 } /* Name.Tag */
41
- .nv { color: #008080 } /* Name.Variable */
42
- .ow { color: #000000; font-weight: bold } /* Operator.Word */
43
- .w { color: #bbbbbb } /* Text.Whitespace */
44
- .mf { color: #009999 } /* Literal.Number.Float */
45
- .mh { color: #009999 } /* Literal.Number.Hex */
46
- .mi { color: #009999 } /* Literal.Number.Integer */
47
- .mo { color: #009999 } /* Literal.Number.Oct */
48
- .sb { color: #d01040 } /* Literal.String.Backtick */
49
- .sc { color: #d01040 } /* Literal.String.Char */
50
- .sd { color: #d01040 } /* Literal.String.Doc */
51
- .s2 { color: #d01040 } /* Literal.String.Double */
52
- .se { color: #d01040 } /* Literal.String.Escape */
53
- .sh { color: #d01040 } /* Literal.String.Heredoc */
54
- .si { color: #d01040 } /* Literal.String.Interpol */
55
- .sx { color: #d01040 } /* Literal.String.Other */
56
- .sr { color: #009926 } /* Literal.String.Regex */
57
- .s1 { color: #d01040 } /* Literal.String.Single */
58
- .ss { color: #990073 } /* Literal.String.Symbol */
59
- .bp { color: #999999 } /* Name.Builtin.Pseudo */
60
- .vc { color: #008080 } /* Name.Variable.Class */
61
- .vg { color: #008080 } /* Name.Variable.Global */
62
- .vi { color: #008080 } /* Name.Variable.Instance */
63
- .il { color: #009999 } /* Literal.Number.Integer.Long */
1
+ // Inspired by: https://github.com/mmistakes/minimal-mistakes/blob/master/_sass/minimal-mistakes/_syntax.scss
2
+
3
+ // ==========================================================================
4
+ // Syntax highlighting
5
+ // ==========================================================================
6
+
7
+ div.highlighter-rouge,
8
+ figure.highlight {
9
+ position: relative;
10
+ margin-bottom: 1em;
11
+ background: $base00;
12
+ color: $base05;
13
+ font-family: $monospace;
14
+ font-size: $font-size-code;
15
+ line-height: 1.8;
16
+ border-radius: $border-radius;
17
+ > pre,
18
+ pre.highlight {
19
+ margin: 0;
20
+ padding: 1em
21
+ }
22
+ }
23
+
24
+ .highlight table {
25
+ margin-bottom: 0;
26
+ font-size: 1em;
27
+ border: 0;
28
+ td {
29
+ padding: 0;
30
+ width: calc(100% - 1em);
31
+ border: 0;
32
+ /* line numbers*/
33
+ &.gutter,
34
+ &.rouge-gutter {
35
+ padding-right: 1em;
36
+ width: 2em;
37
+ color: $base04;
38
+ border-right: 1px solid $base04;
39
+ text-align: right
40
+ }
41
+
42
+ /* code */
43
+ &.code,
44
+ &.rouge-code {
45
+ padding-left: 1em
46
+ }
47
+ }
48
+
49
+ pre {
50
+ margin: 0
51
+ }
52
+ }
53
+
54
+ .highlight pre{ width:100%}
55
+ .highlight .hll{ background-color:$base06}
56
+
57
+ .highlight{
58
+ .c{ /* Comment */ color:$base04}
59
+ .err{ /* Error */ color:$base08}
60
+ .k{ /* Keyword */ color:$base0e}
61
+ .l{ /* Literal */ color:$base09}
62
+ .n{ /* Name */ color:$base05}
63
+ .o{ /* Operator */ color:$base0c}
64
+ .p{ /* Punctuation */ color:$base05}
65
+ .cm{ /* Comment.Multiline */ color:$base04}
66
+ .cp{ /* Comment.Preproc */ color:$base04}
67
+ .c1{ /* Comment.Single */ color:$base04}
68
+ .cs{ /* Comment.Special */ color:$base04}
69
+ .gd{ /* Generic.Deleted */ color:$base08}
70
+ .ge{ /* Generic.Emph */ font-style:italic}
71
+ .gh{ /* Generic.Heading */ color:$base05; font-weight:bold}
72
+ .gi{ /* Generic.Inserted */ color:$base0b}
73
+ .gp{ /* Generic.Prompt */ color:$base04; font-weight:bold}
74
+ .gs{ /* Generic.Strong */ font-weight:bold}
75
+ .gu{ /* Generic.Subheading */ color:$base0c; font-weight:bold}
76
+ .kc{ /* Keyword.Constant */ color:$base0e}
77
+ .kd{ /* Keyword.Declaration */ color:$base0e}
78
+ .kn{ /* Keyword.Namespace */ color:$base0c}
79
+ .kp{ /* Keyword.Pseudo */ color:$base0e}
80
+ .kr{ /* Keyword.Reserved */ color:$base0e}
81
+ .kt{ /* Keyword.Type */ color:$base0a}
82
+ .ld{ /* Literal.Date */ color:$base0b}
83
+ .m{ /* Literal.Number */ color:$base09}
84
+ .s{ /* Literal.String */ color:$base0b}
85
+ .na{ /* Name.Attribute */ color:$base0d}
86
+ .nb{ /* Name.Builtin */ color:$base05}
87
+ .nc{ /* Name.Class */ color:$base0a}
88
+ .no{ /* Name.Constant */ color:$base08}
89
+ .nd{ /* Name.Decorator */ color:$base0c}
90
+ .ni{ /* Name.Entity */ color:$base05}
91
+ .ne{ /* Name.Exception */ color:$base08}
92
+ .nf{ /* Name.Function */ color:$base0d}
93
+ .nl{ /* Name.Label */ color:$base05}
94
+ .nn{ /* Name.Namespace */ color:$base0a}
95
+ .nx{ /* Name.Other */ color:$base0d}
96
+ .py{ /* Name.Property */ color:$base05}
97
+ .nt{ /* Name.Tag */ color:$base0c}
98
+ .nv{ /* Name.Variable */ color:$base08}
99
+ .ow{ /* Operator.Word */ color:$base0c}
100
+ .w{ /* Text.Whitespace */ color:$base05}
101
+ .mf{ /* Literal.Number.Float */ color:$base09}
102
+ .mh{ /* Literal.Number.Hex */ color:$base09}
103
+ .mi{ /* Literal.Number.Integer */ color:$base09}
104
+ .mo{ /* Literal.Number.Oct */ color:$base09}
105
+ .sb{ /* Literal.String.Backtick */ color:$base0b}
106
+ .sc{ /* Literal.String.Char */ color:$base05}
107
+ .sd{ /* Literal.String.Doc */ color:$base04}
108
+ .s2{ /* Literal.String.Double */ color:$base0b}
109
+ .se{ /* Literal.String.Escape */ color:$base09}
110
+ .sh{ /* Literal.String.Heredoc */ color:$base0b}
111
+ .si{ /* Literal.String.Interpol */ color:$base09}
112
+ .sx{ /* Literal.String.Other */ color:$base0b}
113
+ .sr{ /* Literal.String.Regex */ color:$base0b}
114
+ .s1{ /* Literal.String.Single */ color:$base0b}
115
+ .ss{ /* Literal.String.Symbol */ color:$base0b}
116
+ .bp{ /* Name.Builtin.Pseudo */ color:$base05}
117
+ .vc{ /* Name.Variable.Class */ color:$base08}
118
+ .vg{ /* Name.Variable.Global */ color:$base08}
119
+ .vi{ /* Name.Variable.Instance */ color:$base08}
120
+ .il{ /* Literal.Number.Integer.Long */ color:$base09}
121
+ }
122
+
123
+ // Fix Github syntax display
124
+ .gist .blob-num {
125
+ width: 3.5% !important;
126
+ }
@@ -1,11 +1,19 @@
1
1
  .site-header {
2
- padding: $padding-x-small $padding-x-small * 2;
3
- padding-top: $padding-x-small;
2
+ padding: $padding-x-small;
4
3
  background: $brand-color;
5
4
  display: inline-block;
6
5
  float: left;
7
6
  width: 100%;
8
7
 
8
+ .separator {
9
+ user-select: none;
10
+ opacity: $navbar-separator-opacity;
11
+
12
+ &:first-child {
13
+ display: none;
14
+ }
15
+ }
16
+
9
17
  a {
10
18
  color: $header-link-color;
11
19
  }
@@ -98,6 +106,10 @@
98
106
  nav {
99
107
  height: auto;
100
108
 
109
+ .separator {
110
+ display: none !important;
111
+ }
112
+
101
113
  ul {
102
114
  width: 100%;
103
115
  display: none;
@@ -4,11 +4,10 @@
4
4
  display: inline-block;
5
5
  width: 100%;
6
6
  height: 100%;
7
- background-color: $header-desc-background-color;
8
7
  font-size: 1.2em;
9
8
  text-align: center;
10
9
  color: $header-desc-text-color;
11
- background-repeat: no-repeat;
10
+ background: $header-desc-background-color no-repeat;
12
11
  background-size: $feature-image-size;
13
12
 
14
13
  /* --- Responsive --- */
@@ -34,7 +33,7 @@
34
33
  }
35
34
 
36
35
  #main {
37
- background-position: 100% 0px, 0% center, center top;
36
+ background-position: 100% 0, 0 center, center top;
38
37
  }
39
38
 
40
39
  // Post listing
@@ -51,10 +51,10 @@ header {
51
51
  text-transform: uppercase;
52
52
  }
53
53
 
54
- /* --- Feature image --- */
55
54
 
55
+ /* --- Feature image --- */
56
56
  .feature-image {
57
- padding: 0%;
57
+ padding: 0;
58
58
  .post-link {
59
59
  color: $feature-image-text-color;
60
60
  }
@@ -85,7 +85,6 @@ header {
85
85
  }
86
86
 
87
87
  /* --- Post navigation --- */
88
-
89
88
  #post-nav {
90
89
  width: 100%;
91
90
  border-bottom: 1px solid $border-color;
@@ -6,8 +6,7 @@
6
6
  font-size: 18px;
7
7
  line-height: 1.43;
8
8
  color: $text-color;
9
- background-color: $background-color;
10
- background-image: none;
9
+ background: $background-color none;
11
10
  border: 1px solid #ccc;
12
11
  border-radius: 4px;
13
12
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
@@ -1,9 +1,11 @@
1
+ // Variables
2
+ @import 'base/variables';
3
+
1
4
  // External
2
5
  @import 'external/reset';
3
6
  @import 'external/syntax';
4
7
 
5
8
  // Base
6
- @import 'base/variables';
7
9
  @import 'base/global';
8
10
  @import 'base/utility';
9
11
 
@@ -1,7 +1,7 @@
1
- var elements = document.getElementsByTagName('script')
1
+ var elements = document.getElementsByTagName('script');
2
2
 
3
3
  Array.prototype.forEach.call(elements, function (element) {
4
- if (element.type.indexOf('math/tex') != -1) {
4
+ if (element.type.indexOf('math/tex') !== -1) {
5
5
  // Extract math markdown
6
6
  var textToRender = element.innerText || element.textContent;
7
7
 
@@ -13,7 +13,7 @@ Array.prototype.forEach.call(elements, function (element) {
13
13
  var katexElement = document.createElement('span');
14
14
 
15
15
  // Support inline and display math
16
- if (element.type.indexOf('mode=display') != -1) {
16
+ if (element.type.indexOf('mode=display') !== -1) {
17
17
  katexElement.className += "math-display";
18
18
  textToRender = '\\displaystyle {' + textToRender + '}';
19
19
  } else {
data/assets/js/navbar.js CHANGED
@@ -4,7 +4,7 @@
4
4
  $(function () {
5
5
  var pull = $('#pull');
6
6
  menu = $('nav ul');
7
- menuHeight = menu.height();
7
+ //menuHeight = menu.height();
8
8
 
9
9
  $(pull).on('click', function (e) {
10
10
  menu.slideToggle();
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: type-on-strap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylhare
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-12-31 00:00:00.000000000 Z
12
+ date: 2018-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -102,6 +102,7 @@ files:
102
102
  - _includes/tags_list.html
103
103
  - _layouts/bootstrap.html
104
104
  - _layouts/default.html
105
+ - _layouts/feed.xml
105
106
  - _layouts/home.html
106
107
  - _layouts/page.html
107
108
  - _layouts/post.html
@@ -244,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
245
  version: '0'
245
246
  requirements: []
246
247
  rubyforge_project:
247
- rubygems_version: 2.5.1
248
+ rubygems_version: 2.6.14
248
249
  signing_key:
249
250
  specification_version: 4
250
251
  summary: A simple and responsive jekyll theme template