type-on-strap 2.1.2 → 2.2.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
  SHA256:
3
- metadata.gz: 4f273f904ccd3cf3713d2195cf35a0fdefd88dee40e28d383d02a00f010c6b6f
4
- data.tar.gz: 9bd298424e79c4b5d75183c35896b0cc5f5c0da28109aacb6977343ce5d6ced9
3
+ metadata.gz: 96498e8bc639617b5a89ca28b272159ac6bbe0181cf06e4940a8d3e484ab3e9c
4
+ data.tar.gz: 1963b426197beb23d966e2e8de61abd2288b344d764cde9ece68636e8dddc68c
5
5
  SHA512:
6
- metadata.gz: 5cbf3b6b70f12f73cc456fbf3fa0ab478024f48a6e5917bce3b437a459055be074ad810d07703a52765b5739fea107b3c52388028525f5e4985fe63b6d4daa9e
7
- data.tar.gz: 3a4e1cec666fc08f461864c2e8d604b260f54a34397d083df831d28ea88c3bc2fefc2c34012c9131d177a23dcbd34060af7b7905b418b01b332ea871f11c1ae8
6
+ metadata.gz: '09b6df42042eac5648af2d3606fe05dbf1cd811753e7a932ab62de701f999729f7dad969c99a1ca910ff490221648bba03706942395f3d439958d83080d99fd2'
7
+ data.tar.gz: db5215c5227cec136a7b9191040f2fbf06f550499804d03d99ef33b0d736aebbe906523fedaa18bff7f64c7aa26210e3c373448941247c6f7239e8ea7a961b6e
@@ -8,8 +8,12 @@
8
8
 
9
9
  <div class="row">
10
10
  {% for image in images %}
11
- <div {% unless column %}class="column"{% endunless%} style="flex: {{ column }}%" >
12
- <img src="{{ image | prepend: 'assets/img/' | relative_url }}" alt="{{ image | prepend: '/' | split: '/' | last }}">
11
+ <div {% if column %} style="flex: {{ column }}%" {% else %} class="column" {% endif %} >
12
+ <img {% if images.size == 1 %}class="single"{% endif %}
13
+ src="{{ image | prepend: 'assets/img/' | relative_url }}"
14
+ alt="{{ image | prepend: '/' | split: '/' | last }}">
13
15
  </div>
14
16
  {% endfor %}
15
17
  </div>
18
+
19
+ {% assign column = false %}
@@ -1,10 +1,12 @@
1
- <div id="disqus_thread"></div>
2
- <script type="text/javascript">
3
- var disqus_shortname = '{{ site.disqus_shortname }}';
4
- (function() {
5
- var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
6
- dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
7
- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
8
- })();
9
- </script>
10
- <noscript>{{ site.data.language.str_javascript_required_disqus | default: Please enable JavaScript to view comments." }}</noscript>
1
+ <div class="comments">
2
+ <div id="disqus_thread"></div>
3
+ <script type="text/javascript">
4
+ var disqus_shortname = '{{ site.disqus_shortname }}';
5
+ (function() {
6
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
7
+ dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
8
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
9
+ })();
10
+ </script>
11
+ <noscript>{{ site.data.language.str_javascript_required_disqus | default: Please enable JavaScript to view comments." }}</noscript>
12
+ </div>
data/_includes/head.html CHANGED
@@ -58,9 +58,5 @@
58
58
 
59
59
  <!-- seo tags -->
60
60
  {% seo %}
61
- <!-- Manual seo tags -->
62
- <!--
63
- <title>{% if page.title %}{{ page.title }} |{% endif %} {{ site.title }}</title>
64
- <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
65
- -->
61
+ <meta property="og:image" content="{{ '/' | absolute_url }}{% if page.thumbnail %}page.thumbnail{% else %}{{ page.feature-img | default: site.header_feature_image }}{% endif %} " />
66
62
  </head>
data/_layouts/custom.html CHANGED
@@ -1,35 +1,32 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- <article {% if page.feature-img %}class="feature-image"{% endif %} style="padding:0;">
5
- <header id="main" style="background-image: url('{{ page.feature-img | relative_url }}')">
6
- <h1 id="{{ page.title | cgi_escape }}" class="title">{{ page.title }}</h1>
7
- <p class="meta">
8
- {{ page.date | date: "%B %-d, %Y" }}
9
- {% if page.author %} - {{ page.author }}{% endif %}
10
- </p>
11
- </header>
12
- <section class="post-content">{{ content }}</section>
13
-
14
- <div style="display: inline-block;">
15
- <!-- Social media shares -->
16
- {% include share_buttons.html %}
17
-
18
- <!-- Tag list -->
19
- {% capture tag_list %}{{ page.tags | join: "|"}}{% endcapture %}
20
- {% include tags_list.html tags=tag_list %}
4
+
5
+ <article {% if page.feature-img %}class="feature-image" {% endif %} style="padding:0;">
6
+ <header id="main" style="background-image: url('{{ page.feature-img | relative_url }}')">
7
+ <h1 id="{{ page.title | cgi_escape }}" class="title">{{ page.title }}</h1>
8
+ {% if include.is_post %}
9
+ {% include post_info.html author=page.author date=page.date %}
10
+ {% else %}
11
+ </header>
12
+ <section class="post-content">{{ content }}</section>
13
+
14
+ <div style="display: inline-block;">
15
+ <!-- Social media shares -->
16
+ {% if include.is_post %} {% include share_buttons.html %} {% endif %}
17
+
18
+ <!-- Tag list -->
19
+ {% capture tag_list %}{{ page.tags | join: "|"}}{% endcapture %}
20
+ {% include tags_list.html tags=tag_list %}
21
21
  </div>
22
-
22
+
23
23
  </article>
24
24
 
25
25
  <!-- Disqus -->
26
- {% if site.disqus_shortname %}
27
- <div class="comments">
28
- {% include disqus.html %}
29
- </div>
30
- {% endif %}
26
+ {% if site.disqus_shortname or site.theme_settings.disqus_shortname %}
27
+ {% include disqus.html %}{% endif %}
31
28
 
32
29
  <!-- Post navigation -->
33
30
  {% if site.post_navigation %}
34
- {% include post_nav.html %}
31
+ {% include post_nav.html %}
35
32
  {% endif %}
@@ -1,6 +1,6 @@
1
1
  <!DOCTYPE html>
2
2
  <!--
3
- Type on Strap jekyll theme v2.0.0
3
+ Type on Strap jekyll theme v2.2.1
4
4
  Copyright 2016-2019 Sylhare
5
5
  Theme free for personal and commercial use under the MIT license
6
6
  https://github.com/sylhare/Type-on-Strap/blob/master/LICENSE
data/_layouts/home.html CHANGED
@@ -4,11 +4,11 @@ layout: default
4
4
 
5
5
  <div class="home">
6
6
 
7
- <div id="main" class="call-out"
8
- style="background-image: url('{{ site.header_feature_image | relative_url }}')">
9
- <h1> {{ site.header_text | default: "Change <code>header_text</code> in <code>_config.yml</code>"}} </h1>
10
- </div>
7
+ <div id="main" class="call-out"
8
+ style="background-image: url('{{ site.header_feature_image | relative_url }}')">
9
+ <h1> {{ site.header_text | default: "Change <code>header_text</code> in <code>_config.yml</code>"}} </h1>
10
+ </div>
11
+
12
+ {% include blog.html %}
11
13
 
12
- {% include blog.html %}
13
-
14
14
  </div>
data/_layouts/page.html CHANGED
@@ -1,19 +1,18 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- {% include share_thumbnail.html page=page %}
5
4
 
6
5
  <article {% if page.feature-img %}class="feature-image"{% endif %}>
6
+
7
7
  <header id="main" style="background-image: url('{{ page.feature-img | relative_url }}')">
8
8
  <h1 id="{{ page.title | default: "" | cgi_escape }}" class="title">
9
- {{ page.title }}
9
+ {{ page.title }}
10
10
  </h1>
11
-
12
11
  {% if page.subtitle %}
13
12
  <h2 class="subtitle">{{ page.subtitle }}</h2>
14
13
  {% endif %}
15
-
16
14
  </header>
15
+
17
16
  <section class="post-content">
18
17
  {% if page.bootstrap %}
19
18
  <div class="bootstrap-iso">
@@ -23,10 +22,10 @@ layout: default
23
22
  </div>
24
23
  {% endif %}
25
24
  </section>
26
-
27
-
25
+
26
+
28
27
  <!-- Tag list for portfolio -->
29
28
  {% capture tag_list %}{{ page.tags | join: "|"}}{% endcapture %}
30
29
  {% include tags_list.html tags=tag_list %}
31
-
30
+
32
31
  </article>
data/_layouts/post.html CHANGED
@@ -1,15 +1,14 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- {% include share_thumbnail.html page=page %}
5
-
6
4
  <article {% if page.feature-img or page.color %}class="feature-image"{% endif %}>
7
5
  <header id="main" style="">
8
6
  {% unless page.hide_title %}
9
- <h1 id="{{ page.title | cgi_escape }}" class="title">{{ page.title }}</h1>
10
- {% include post_info.html author=page.author date=page.date %}
7
+ <h1 id="{{ page.title | cgi_escape }}" class="title">{{ page.title }}</h1>
8
+ {% include post_info.html author=page.author date=page.date %}
11
9
  {% endunless %}
12
10
  </header>
11
+
13
12
  <section class="post-content">
14
13
  {% if page.bootstrap %}
15
14
  <div class="bootstrap-iso">
@@ -31,10 +30,7 @@ layout: default
31
30
 
32
31
  <!-- Disqus -->
33
32
  {% if site.disqus_shortname or site.theme_settings.disqus_shortname %}
34
- <div class="comments">
35
- {% include disqus.html %}
36
- </div>
37
- {% endif %}
33
+ {% include disqus.html %}{% endif %}
38
34
 
39
35
  <!-- Post navigation -->
40
36
  {% if site.post_navigation or site.theme_settings.post_navigation %}
@@ -44,16 +40,16 @@ layout: default
44
40
  <!-- To change color of links in the page -->
45
41
  <style>
46
42
  {% if page.color %}
47
- .feature-image a { color: {{ page.color }} !important; }
48
- div#post-nav a { color: {{ page.color }} !important; }
49
- footer a { color: {{ page.color }} !important; }
50
- .site-header nav a:hover { color: {{ page.color }} !important; }
51
- header#main { background-color: {{ page.color }} !important; }
43
+ .feature-image a { color: {{ page.color }} !important; }
44
+ div#post-nav a { color: {{ page.color }} !important; }
45
+ footer a { color: {{ page.color }} !important; }
46
+ .site-header nav a:hover { color: {{ page.color }} !important; }
47
+ header#main { background-color: {{ page.color }} !important; }
52
48
  {% endif %}
53
49
 
54
50
  header#main {
55
51
  background-repeat:no-repeat;
56
- {% if page.feature-img %} background-image: url('{{ page.feature-img | relative_url }}');
57
- {% elsif page.color %}background-image: url('{{ site.color_image | relative_url }}'); {% endif %}
52
+ {% if page.feature-img %} background-image: url('{{ page.feature-img | relative_url }}');
53
+ {% elsif page.color %}background-image: url('{{ site.color_image | relative_url }}'); {% endif %}
58
54
  }
59
55
  </style>
@@ -76,6 +76,8 @@ object,
76
76
  video {
77
77
  max-width: 100%;
78
78
  padding: 0 9%;
79
+ margin-left: auto;
80
+ margin-right: auto;
79
81
  }
80
82
 
81
83
  img[align=left] {
@@ -10,7 +10,10 @@ $padding-large: 9%;
10
10
  $padding-medium: 6%;
11
11
  $padding-small: 4%;
12
12
  $padding-x-small: 3%;
13
- $title-padding: 0.5em;
13
+
14
+ // Sepcific Padding
15
+ $title-padding: 1%;
16
+ $feature-image-padding: 10%;
14
17
 
15
18
  // Mobile display
16
19
  $xl-break: 2000px;
@@ -1,6 +1,10 @@
1
+ .title-padder {
2
+ padding: $title-padding;
3
+ }
4
+
1
5
  h1.title {
2
6
  @extend .header-txt-shadow;
3
- padding: $title-padding 0;
7
+ padding: 0.5em 0;
4
8
  }
5
9
 
6
10
  .subtitle {
@@ -9,6 +13,12 @@ h1.title {
9
13
  text-shadow: 1px 1px 2px $text-shadow;
10
14
  }
11
15
 
16
+ //Shared css in _post.scss
17
+
18
+
19
+ /* --- Aligner --- */
20
+ /* within page/posts */
21
+
12
22
  .row {
13
23
  display: flex;
14
24
  flex-wrap: wrap;
@@ -21,6 +31,9 @@ h1.title {
21
31
  width: 100%;
22
32
  min-width: 250px;
23
33
  }
24
- }
25
34
 
26
- //Shared css in _post.scss
35
+ .single {
36
+ width: 50%;
37
+ display: block;
38
+ }
39
+ }
@@ -72,7 +72,7 @@ header {
72
72
 
73
73
  img {
74
74
  border-radius: 1em;
75
- padding: 0px;
75
+ padding: 0;
76
76
  width: 1.5em;
77
77
  height: 100%;
78
78
  margin-right: 0.5em;
@@ -106,6 +106,10 @@ header {
106
106
  @extend %padding-post;
107
107
  padding-top: 0;
108
108
  }
109
+
110
+ .feature-image-padding {
111
+ padding: $feature-image-padding;
112
+ }
109
113
  }
110
114
 
111
115
  /*-- feature-image Responsive scrolling --*/
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: 2.1.2
4
+ version: 2.2.1
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: 2020-05-08 00:00:00.000000000 Z
12
+ date: 2020-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -17,7 +17,7 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '3.5'
20
+ version: '3.8'
21
21
  - - "<"
22
22
  - !ruby/object:Gem::Version
23
23
  version: '5.0'
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - ">="
29
29
  - !ruby/object:Gem::Version
30
- version: '3.5'
30
+ version: '3.8'
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '5.0'
@@ -100,7 +100,6 @@ files:
100
100
  - _includes/post_info.html
101
101
  - _includes/post_nav.html
102
102
  - _includes/share_buttons.html
103
- - _includes/share_thumbnail.html
104
103
  - _includes/tags_list.html
105
104
  - _layouts/custom.html
106
105
  - _layouts/default.html
@@ -1,7 +0,0 @@
1
- {% assign page = include.page %}
2
-
3
- <meta property="og:url" content="{{ page.url }}" />
4
- <meta property="og:type" content="article" />
5
- <meta property="og:title" content="{{ page.title | strip_html | truncate: '250' | escape }}" />
6
- <meta property="og:description" content="{{ page.excerpt | strip_html | truncate: '250' | escape }}" />
7
- <meta property="og:image" content="{{ page.feature-img | default: site.header_feature_image }}" />