quickstand 0.1.6 → 0.1.7

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
  SHA256:
3
- metadata.gz: 8e3adbd7642194999614aa3c753e2d102a28e2c4675d3f12fd77be5023ffeccf
4
- data.tar.gz: 67d256cdb99bae0c104c59a41914a206d37d07cab0581ce544cab49952697176
3
+ metadata.gz: 03df42ef9bb12f6072fedf4c2f91880d390a60a4cbb26c01ff2c8205d41df428
4
+ data.tar.gz: 1f55c1082697510029d3bd18606a24d892939c12bbe62644e43adc150c02a7a6
5
5
  SHA512:
6
- metadata.gz: e8b3e95494844331897d9291cae1408a6c4520582e58e588ae2b5e91c0f1b4474e6bc3721cfef3b7b5bad020c88331140f00f4086ba671c16cfc14fd9a99bb8c
7
- data.tar.gz: 4b2f729b81f741352a7e077ef7d41540c800adac876a1a0eb521691785d5e97f7eb733b09753596f586b241c223f46b389ce0923a7a33867e511bef157125942
6
+ metadata.gz: 2495f3e9cc773da6c55d57cf2f03040fe35869a5ee9df9ccae1218be1480b6a06f316ff95eeabe29a0e053f0590b4e60a5aba14b471453d56e304c1da644e31d
7
+ data.tar.gz: 6824140202b712422273406a5c21324ff5cb3807eab17822c1095b323bc5404e0ba9645845a0926638d7311a0fe0fe9d1f1f34093987b544bfdae5f1073da14a
data/README.md CHANGED
@@ -54,4 +54,4 @@ To add a custom directory to your theme-gem, please edit the regexp in `quicksta
54
54
 
55
55
  Coming soon
56
56
 
57
- - `rm quickstand-*.gem; jekyll build; gem build quickstand.gemspec`
57
+ - `rm quickstand-*.gem; jekyll build; gem build quickstand.gemspec; gem push quickstand-*.gem`
data/_includes/head.html CHANGED
@@ -1,12 +1,38 @@
1
1
  <head>
2
2
  <meta charset="UTF-8">
3
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
3
4
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
5
 
5
6
  <!-- CSS -->
6
7
  <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
7
8
  <!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400i,700"> -->
9
+ <!-- <link rel="shortcut icon" type="image/png" href="/img/icon-196x196.png"> -->
10
+ <!-- <link rel="shortcut icon" sizes="196x196" href="/img/icon-196x196.png"> -->
11
+ <!-- <link rel="apple-touch-icon" href="/img/icon-196x196.png"> -->
8
12
 
9
13
  <!-- Favicon -->
10
14
  <link rel="icon" href="{{ " site.company.path.favicon | relative_url }}">
11
15
 
16
+ <title>{% if page.title and page.title != 'Home' %}{{ page.title }} | {% endif %}{{ site.title }}</title>
17
+ {% assign pagecontent_description = page.content | markdownify | replace: '.', '. ' | replace: '</h2>', ': ' | replace: '</h3>', ': ' | replace: '</h4>', ': ' | strip_html | strip_newlines | replace: ' ', ' ' | truncate: 160 %}
18
+ <meta name="description" content="{% if pagecontent_description.size > 10 %}{{ pagecontent_description }}{% else %}{{ site.description }}{% endif %}">
19
+
20
+ <!-- Facebook integration -->
21
+ <meta property="og:title" content="{{ page.title }}"/>
22
+ {% if page.image %}<meta property="og:image" content="{{ page.image | prepend: site.baseurl | prepend: site.url }}"/>{% endif %}
23
+ <meta property="og:url" content="{{ page.url | prepend: site.baseurl | prepend: site.url }}"/>
24
+ <meta property="og:type" content="article">
25
+ <meta property="og:site_name" content="{{ site.title }}"/>
26
+ <meta property="og:description" content="{% if pagecontent_description.size > 10 %}{{ pagecontent_description }}{% else %}{{ site.description }}{% endif %}"/>
27
+
28
+ <!-- Twitter integration -->
29
+ <meta name="twitter:card" content="summary">
30
+ {% if site.twitter_url %}<meta name="twitter:site" content="{{ site.twitter_url }}">{% endif %}
31
+ <meta name="twitter:title" content="{{ page.title }}" />
32
+ {% if page.image %}<meta name="twitter:image" content="{{ site.url }}{{ page.image }}" />{% endif %}
33
+ <meta name="twitter:url" content="{{ site.url }}{{ page.url }}" />
34
+ <meta name="twitter:description" content="{% if pagecontent_description.size > 10 %}{{ pagecontent_description }}{% else %}{{ site.description }}{% endif %}" />
35
+
36
+ <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
37
+
12
38
  </head>
@@ -0,0 +1,38 @@
1
+ {% if include.pageurl != nil and include.pageurl != '' %}
2
+ {% assign pageurl = include.pageurl %}
3
+ {% else %}
4
+ {% assign pageurl = page.url %}
5
+ {% endif %}
6
+
7
+ <style>
8
+ #share-buttons {display: inline-block; vertical-align: middle; }
9
+ #share-buttons:after {content: ""; display: block; clear: both;}
10
+ #share-buttons > div {
11
+ position: relative;
12
+ text-align: left;
13
+ height: 36px;
14
+ width: 32px;
15
+ float: left;
16
+ text-align: center;
17
+ }
18
+ #share-buttons > div > svg {height: 16px; fill: #d5d5d5; margin-top: 10px;}
19
+ #share-buttons > div:hover {cursor: pointer;}
20
+ #share-buttons > div.facebook:hover > svg {fill: #3B5998;}
21
+ #share-buttons > div.twitter:hover > svg {fill: #55ACEE;}
22
+ #share-buttons > div.linkedin:hover > svg {fill: #0077b5;}
23
+ #share-buttons > div.mail:hover > svg {fill: #7D7D7D;}
24
+ #share-buttons > div.instagram:hover > svg {fill: #C73B92;}
25
+ #share-buttons > div.facebook > svg {height: 18px; margin-top: 9px;}
26
+ #share-buttons > div.twitter > svg {height: 20px; margin-top: 8px;}
27
+ #share-buttons > div.linkedin > svg {height: 19px; margin-top: 7px;}
28
+ #share-buttons > div.pinterest > svg {height: 20px; margin-top: 9px;}
29
+ #share-buttons > div.gplus > svg {height: 17px; margin-top: 9px; position: relative; left: 1px;}
30
+ #share-buttons > div.mail > svg {height: 14px; margin-top: 11px;}
31
+ </style>
32
+
33
+ <div style="color: silver;">Share on: </span><div id="share-buttons">
34
+ <div class="facebook" title="Share this on Facebook" onclick="window.open('http://www.facebook.com/share.php?u={{ site.url }}{{ pageurl }}');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759h-306v-759h-255v-296h255v-218q0-186 104-288.5t277-102.5q147 0 228 12z"/></svg></div>
35
+ <div class="twitter" title="Share this on Twitter" onclick="window.open('http://twitter.com/home?status={{ site.url }}{{ pageurl }}');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1684 408q-67 98-162 167 1 14 1 42 0 130-38 259.5t-115.5 248.5-184.5 210.5-258 146-323 54.5q-271 0-496-145 35 4 78 4 225 0 401-138-105-2-188-64.5t-114-159.5q33 5 61 5 43 0 85-11-112-23-185.5-111.5t-73.5-205.5v-4q68 38 146 41-66-44-105-115t-39-154q0-88 44-163 121 149 294.5 238.5t371.5 99.5q-8-38-8-74 0-134 94.5-228.5t228.5-94.5q140 0 236 102 109-21 205-78-37 115-142 178 93-10 186-50z"/></svg></div>
36
+ <div class="linkedin" title="Share this on Linkedin" onclick="window.open('https://www.linkedin.com/shareArticle?mini=true&url={{ site.url }}{{ pageurl }}&title=&summary=&source=');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M477 625v991h-330v-991h330zm21-306q1 73-50.5 122t-135.5 49h-2q-82 0-132-49t-50-122q0-74 51.5-122.5t134.5-48.5 133 48.5 51 122.5zm1166 729v568h-329v-530q0-105-40.5-164.5t-126.5-59.5q-63 0-105.5 34.5t-63.5 85.5q-11 30-11 81v553h-329q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5 114.5-15.5q171 0 275 113.5t104 332.5z"/></svg></div>
37
+ <div class="mail" title="Share this through Email" onclick="window.open('mailto:?&body={{ site.url }}{{ pageurl }}');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1792 710v794q0 66-47 113t-113 47h-1472q-66 0-113-47t-47-113v-794q44 49 101 87 362 246 497 345 57 42 92.5 65.5t94.5 48 110 24.5h2q51 0 110-24.5t94.5-48 92.5-65.5q170-123 498-345 57-39 100-87zm0-294q0 79-49 151t-122 123q-376 261-468 325-10 7-42.5 30.5t-54 38-52 32.5-57.5 27-50 9h-2q-23 0-50-9t-57.5-27-52-32.5-54-38-42.5-30.5q-91-64-262-182.5t-205-142.5q-62-42-117-115.5t-55-136.5q0-78 41.5-130t118.5-52h1472q65 0 112.5 47t47.5 113z"/></svg></div>
38
+ </div>
data/_layouts/post.html CHANGED
@@ -14,6 +14,9 @@ layout: default
14
14
  </div>
15
15
 
16
16
  <h1 class="post-title">{{ page.title }}</h1>
17
+
18
+ {% include share_buttons.html %}
19
+
17
20
  <div class="post-line"></div>
18
21
 
19
22
  {{ content }}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quickstand
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Prashant Khanduri
@@ -80,6 +80,7 @@ files:
80
80
  - _includes/footer.html
81
81
  - _includes/head.html
82
82
  - _includes/navigation.html
83
+ - _includes/share_buttons.html
83
84
  - _layouts/default.html
84
85
  - _layouts/home.html
85
86
  - _layouts/page.html