miniscule 0.1.7 → 0.1.9

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: 9f325bb4179ee5948bae4cbe8955d366a131bebf
4
- data.tar.gz: 748afe1e122c61a5e137421c45e93cfbe55e5768
3
+ metadata.gz: fb76a5ad51149779c23052e68aee8a4c257e5967
4
+ data.tar.gz: fd0b85b4521e0f9bdc0e394999375faa9a41544b
5
5
  SHA512:
6
- metadata.gz: 33d8d274dd6bd388c1967bc6a040346bd04cae4f101e8f388ace5d6b8de719d55164eb86bc84fd0d465472d7f63bc936289a59ac459c7d95635571fbd54d6304
7
- data.tar.gz: 9bfe23d15e2d91dc97ce52b6d2a5a3dd3fe6770e807ff490b43bce71f0a0f93a97b48b724ccb90c5052eaf301e4bcc5bca18ad57ee501b463fc681d7818a5023
6
+ metadata.gz: 79a5022d631dd6a69d86b7eedca72e4ae6dc6517c131202452a74a8b322b2a396da178c95a746a516256ff75330d51e99dfdbc426770723642952d0faeecbfe1
7
+ data.tar.gz: 336faa76cde802b509d169e05b1903ac0a8915c3ce08270c296ebb2a63f13c49bcac8d1691849d000255b3eb28180b8af7af6a3e672777c4085372ed5edca7f3
@@ -5,6 +5,7 @@
5
5
  {%- seo -%}
6
6
  <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
7
7
  {%- feed_meta -%}
8
+ {%- include open-graph-tags.html -%}
8
9
  {%- if jekyll.environment == 'production' and site.google_analytics -%}
9
10
  {%- include google-analytics.html -%}
10
11
  {%- endif -%}
@@ -15,8 +16,8 @@
15
16
  <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
16
17
  <link rel="manifest" href="/site.webmanifest">
17
18
  <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
18
- <!-- https://fonts.google.com/?selection.family=Anton|Bitter|Lora|Merriweather -->
19
- <link href="https://fonts.googleapis.com/css?family=Merriweather&display=swap" rel="stylesheet">
19
+ <!-- https://fonts.google.com/ -->
20
+ <link href="https://fonts.googleapis.com/css?family=Merriweather|Nunito&display=swap" rel="stylesheet">
20
21
  <meta name="msapplication-TileColor" content="#da532c">
21
22
  <meta name="theme-color" content="#ffffff">
22
23
  </head>
@@ -4,38 +4,40 @@
4
4
  {%- endif -%}
5
5
 
6
6
  <div class="cover-image">
7
- </div>
8
- <div class="wrapper">
9
- {%- assign default_paths = site.pages | map: "path" -%}
10
- {%- assign page_paths = site.header_pages | default: default_paths -%}
11
- {%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
12
- <a class="site-title" rel="author" href="{{ "/" | relative_url }}">
13
- <img src="{{ site.logo | default: "assets/default-profile.jpg" | relative_url }}" class="site-logo">
14
- </a>
15
- <a class="site-title" rel="author" href="{{ "/" | relative_url }}" style="margin-top: 9px;">
16
- {{ site.title | escape }}
17
- </a>
7
+ <div class="wrapper">
8
+ <a class="site-title" rel="author" href="{{ "/" | relative_url }}">
9
+ <img src="{{ site.logo | default: "assets/default-profile.jpg" | relative_url }}" class="site-logo">
10
+ </a>
11
+ <a class="site-title" rel="author" href="{{ "/" | relative_url }}" style="margin-top: 9px;">
12
+ {{ site.title | escape }}
13
+ </a>
14
+
15
+ {%- assign default_paths = site.pages | map: "path" -%}
16
+ {%- assign page_paths = site.header_pages | default: default_paths -%}
17
+ {%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
18
18
 
19
- {%- if titles_size > 0 -%}
20
- <nav class="site-nav no-print">
21
- <input type="checkbox" id="nav-trigger" class="nav-trigger" />
22
- <label for="nav-trigger">
23
- <span class="menu-icon">
24
- <svg viewBox="0 0 18 15" width="18px" height="15px">
25
- <path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
26
- </svg>
27
- </span>
28
- </label>
19
+ {%- if titles_size > 0 -%}
20
+ <nav class="site-nav no-print">
21
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
22
+ <label for="nav-trigger">
23
+ <span class="menu-icon">
24
+ <svg viewBox="0 0 18 15" width="18px" height="15px">
25
+ <path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
26
+ </svg>
27
+ </span>
28
+ </label>
29
29
 
30
- <div class="trigger no-print">
31
- {%- for path in page_paths -%}
32
- {%- assign my_page = site.pages | where: "path", path | first -%}
33
- {%- if my_page.title -%}
34
- <a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
35
- {%- endif -%}
36
- {%- endfor -%}
37
- </div>
38
- </nav>
39
- {%- endif -%}
30
+ <div class="trigger no-print">
31
+ {%- for path in page_paths -%}
32
+ {%- assign my_page = site.pages | where: "path", path | first -%}
33
+ {%- if my_page.title -%}
34
+ <a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
35
+ {%- endif -%}
36
+ {%- endfor -%}
37
+ </div>
38
+ </nav>
39
+ {%- endif -%}
40
+ </div>
40
41
  </div>
42
+
41
43
  </header>
@@ -0,0 +1,2 @@
1
+ <!-- https://ogp.me/ -->
2
+ <meta property="og:image" content="{{ site.logo | default: "assets/default-profile.jpg" | relative_url }}" />
@@ -0,0 +1,6 @@
1
+ <div class="share-linkedin">
2
+ Share to LinkedIn:
3
+ <script src="https://platform.linkedin.com/in.js" type="text/javascript">lang: en_US</script>
4
+ <script type="IN/Share" data-url="{{ page.url | absolute_url }}"></script>
5
+ </div>
6
+
@@ -14,7 +14,6 @@
14
14
  </main>
15
15
 
16
16
  {%- include footer.html -%}
17
-
18
17
  </body>
19
18
 
20
19
  </html>
@@ -10,7 +10,6 @@ layout: default
10
10
  {{ content }}
11
11
 
12
12
  {%- if site.posts.size > 0 -%}
13
- <h2>Blog posts</h2>
14
13
  <ul class="post-list">
15
14
  {%- for post in site.posts -%}
16
15
  <li>
@@ -4,7 +4,7 @@ layout: default
4
4
  <article class="post">
5
5
 
6
6
  <header class="post-header">
7
- <h1 class="post-title">{{ page.title | escape }}</h1>
7
+ <h1 class="post-title">{{ page.display_title | default: page.title | escape }}</h1>
8
8
  </header>
9
9
 
10
10
  <div class="post-content">
@@ -19,6 +19,8 @@ layout: default
19
19
  {{ content }}
20
20
  </div>
21
21
 
22
+ {%- include share-linkedin.html -%}
23
+
22
24
  {%- if site.disqus.shortname -%}
23
25
  {%- include disqus_comments.html -%}
24
26
  {%- endif -%}
@@ -249,7 +249,7 @@ table {
249
249
  }
250
250
  }
251
251
  th, td {
252
- padding: ($spacing-unit / 3) ($spacing-unit / 2);
252
+ padding: ($spacing-unit / 4) ($spacing-unit / 3);
253
253
  }
254
254
  th {
255
255
  background-color: lighten($grey-color-light, 3%);
@@ -25,8 +25,8 @@
25
25
 
26
26
  .site-nav {
27
27
  position: absolute;
28
- top: 9px;
29
- right: $spacing-unit / 2;
28
+ top: 17px;
29
+ right: 15px;
30
30
  background-color: $background-color;
31
31
  border: 1px solid $grey-color-light;
32
32
  border-radius: 5px;
@@ -70,7 +70,7 @@
70
70
  }
71
71
 
72
72
  .page-link {
73
- color: $text-color;
73
+ color: black;
74
74
  line-height: $base-line-height;
75
75
  display: block;
76
76
  padding: 5px 10px;
@@ -106,6 +106,7 @@
106
106
 
107
107
  .page-link {
108
108
  display: inline;
109
+ color: white;
109
110
  padding: 0;
110
111
 
111
112
  &:not(:last-child) {
@@ -5,30 +5,35 @@
5
5
  @import "minima";
6
6
 
7
7
  .cover-image {
8
- background-image: url("{{ site.cover_image | default: "assets/default-background.jpg" | relative_url }}");
9
- height: 200px;
8
+ // background-image: url("{{ site.cover_image | default: "assets/default-background.jpg" | relative_url }}");
9
+ background-color: skyblue;
10
10
  background-size: cover;
11
11
  background-position: center left;
12
12
  background-repeat: no-repeat;
13
+ padding: 10px 0;
14
+ border-bottom: 1px solid #e8e8e8;
13
15
  }
14
16
 
15
17
  .site-logo {
16
- width: 100px;
17
- height: 100px;
18
+ width: 50px;
19
+ height: 50px;
18
20
  vertical-align: middle;
19
21
  border-radius: 50%;
20
- position: relative;
21
- top: -50px;
22
- border: solid white 3px;
22
+ border: solid white 2px;
23
23
  }
24
24
 
25
- .site-header .wrapper {
26
- margin-bottom: -40px;
25
+ .site-title,
26
+ .site-title:active,
27
+ .site-title:visited {
28
+ font-family: 'Nunito', sans-serif;
29
+ font-weight: bold;
30
+ color: white;
31
+ margin-left: 0.5em;
27
32
  }
28
33
 
29
- .site-title, h2 {
30
- font-family: "Avenir Next W01", "Avenir Next", "Avenir", helvetica, arial, sans-serif;
31
- font-weight: bold;
34
+ h1, h2 {
35
+ font-family: 'Nunito', sans-serif;
36
+ font-weight: bold;
32
37
  }
33
38
 
34
39
  .trigger {
@@ -80,3 +85,27 @@ article.post img {
80
85
  display: block;
81
86
  margin: 20px auto;
82
87
  }
88
+
89
+ .badge {
90
+ display: inline-block;
91
+ padding: .25em .4em;
92
+ font-size: 75%;
93
+ /* font-weight: 700; */
94
+ line-height: 1;
95
+ text-align: center;
96
+ white-space: nowrap;
97
+ vertical-align: baseline;
98
+ border-radius: .25rem;
99
+
100
+ color: #fff;
101
+ background-color: #6c757d;
102
+ }
103
+
104
+ .share-linkedin {
105
+ vertical-align: middle;
106
+ text-align: right;
107
+ border: beige;
108
+ font-size: small;
109
+ font-weight: normal;
110
+ font-style: italic;
111
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miniscule
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ronen Agranat
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-08 00:00:00.000000000 Z
11
+ date: 2019-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -85,6 +85,8 @@ files:
85
85
  - _includes/icon-github.svg
86
86
  - _includes/icon-twitter.html
87
87
  - _includes/icon-twitter.svg
88
+ - _includes/open-graph-tags.html
89
+ - _includes/share-linkedin.html
88
90
  - _includes/social.html
89
91
  - _layouts/default.html
90
92
  - _layouts/home.html