jekyll-swiss 0.1.1 → 0.2.0

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: 273ec99eb9f1ef9bf268f994c8f5fba140408289
4
- data.tar.gz: 7da2365226e0ea4a7092397bfb9f049d2369476f
3
+ metadata.gz: 000b65521be4ae8b4e97a46a11c3abebdb6a70e8
4
+ data.tar.gz: 3c89dc6e1e23bcca009ad5648e5fb25eeeb25d6b
5
5
  SHA512:
6
- metadata.gz: dbe6f6f499264e1501e779e94f268466d39b0496990c270c9c2ea2d4322ae7aafbb4e7d07e123923fc21fae3ec27c2b29eafd506488d0d575ca44cee85113721
7
- data.tar.gz: 02ef1f88c8026f03e8ef384b235413ac77f70a22c534077909befa55cd20c604898107737f99950392458d7be6af2a5b01639b128f6e7202f9f671e34e8d5991
6
+ metadata.gz: 05674a17f10b02d8ed5d47047bf87897347732392c9d399e000c7b6015988fb24c4f7c6b9656cb4756ec9e5e826c1d22580a26d71f1212a4a300f4ae3a8bfb11
7
+ data.tar.gz: 8ec12bdb0f1e3d6c1c98415e99f5efbd1d050d0c6665aa1995dd270026a30da0debd00d132b06334787ae1a403126d3d219be54517083baf83bc29482545162a
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Swiss Jekyll Theme
1
+ # :construction: WIP :construction: Swiss Jekyll Theme
2
2
 
3
3
  Swiss is a bold Jekyll theme inspired by Swiss design and the works of Massimo Vignelli. This theme lends itself well to sites heavy on written content.
4
4
 
@@ -1,4 +1,4 @@
1
- <a href="https://dribbble.com/{{ site.dribbble_username }}" title="Follow me on Dribbble" class="link-social block">
1
+ <a href="https://dribbble.com/{{ site.social_username }}" title="Follow me on Dribbble" class="link-social block">
2
2
  <svg height="32" class="header-social" version="1.1" width="32" viewBox="0 0 16 16" aria-hidden="true" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414">
3
3
  <path d="M8 16c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm6.747-6.905c-.234-.074-2.115-.635-4.257-.292.894 2.456 1.258 4.456 1.328 4.872 1.533-1.037 2.624-2.68 2.93-4.58zM10.67 14.3c-.102-.6-.5-2.688-1.46-5.18l-.044.014C5.312 10.477 3.93 13.15 3.806 13.4c1.158.905 2.614 1.444 4.194 1.444.947 0 1.85-.194 2.67-.543zm-7.747-1.72c.155-.266 2.03-3.37 5.555-4.51.09-.03.18-.056.27-.08-.173-.39-.36-.778-.555-1.16C4.78 7.85 1.47 7.807 1.17 7.8l-.003.208c0 1.755.665 3.358 1.756 4.57zM1.31 6.61c.307.005 3.122.017 6.318-.832-1.132-2.012-2.353-3.705-2.533-3.952-1.912.902-3.34 2.664-3.784 4.785zM6.4 1.368c.188.253 1.43 1.943 2.548 4 2.43-.91 3.46-2.293 3.582-2.468C11.323 1.827 9.736 1.176 8 1.176c-.55 0-1.087.066-1.6.19zm6.89 2.322c-.145.194-1.29 1.662-3.816 2.694.16.325.31.656.453.99.05.117.1.235.147.352 2.274-.286 4.533.172 4.758.22-.015-1.613-.59-3.094-1.543-4.257z"/>
4
4
  </svg>
@@ -6,7 +6,7 @@
6
6
  <title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
7
7
  <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
8
8
 
9
- <link rel="stylesheet" href="{{ "/css/styles.css" | prepend: site.baseurl }}">
9
+ <link rel="stylesheet" href="{{ "/assets/style.css" | prepend: site.baseurl }}">
10
10
 
11
11
  <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
12
12
  <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
@@ -1,4 +1,4 @@
1
- <a href="https://www.instagram.com/{{ site.instagram_username }}" title="Follow me on Instagram" class="link-social block">
1
+ <a href="https://www.instagram.com/{{ site.social_username }}" title="Follow me on Instagram" class="link-social block">
2
2
  <svg height="32" class="header-social" version="1.1" width="32" viewBox="0 0 16 16" aria-hidden="true">
3
3
  <g>
4
4
  <path d="M11.9,5.1c-0.1-0.2-0.2-0.4-0.4-0.6s-0.3-0.3-0.6-0.4C10.8,4,10.5,4,10,3.9c-0.5,0-0.7,0-2,0s-1.5,0-2,0
@@ -1,4 +1,4 @@
1
- <a href="https://medium.com/@{{ site.medium_username }}" title="Follow me on Medium" class="link-social block">
1
+ <a href="https://medium.com/@{{ site.social_username }}" title="Follow me on Medium" class="link-social block">
2
2
  <svg height="32" class="header-social" version="1.1" width="32" viewBox="0 0 16 16" aria-hidden="true">
3
3
  <path d="M8,0C3.6,0,0,3.6,0,8s3.6,8,8,8s8-3.6,8-8S12.4,0,8,0z M6.3,12.1c0,0.2-0.1,0.3-0.3,0.3c-0.1,0-0.1,0-0.2-0.1l-2.6-1.3
4
4
  C3.1,11.1,3,10.9,3,10.7V4.3c0-0.2,0.1-0.3,0.2-0.3c0,0,0.1,0,0.2,0l0.1,0h0l2.9,1.4c0,0,0,0,0,0V12.1z M9.3,10.8L9,10.7L7,9.6v-3
@@ -1,7 +1,9 @@
1
1
  <!-- Use if you want to show previous and next for all posts. -->
2
+ {% assign user_url = site.url | append: site.baseurl %}
3
+ {% assign full_base_url = user_url | default: site.github.url %}
2
4
  {% if page.previous.url %}
3
5
  <div class="col-4 sm-width-full left mr-lg-4 mt-3">
4
- <a class="no-underline border-top-thin py-1 block" href="{{page.previous.url}}">
6
+ <a class="no-underline border-top-thin py-1 block" href="{{ page.previous.url | prepend: full_base_url }}">
5
7
  <span class="h5 bold text-accent">Previous</span>
6
8
  <p class="bold h3 link-primary mb-1">{{ page.previous.title }}</p>
7
9
  <p>{{ page.previous.content | strip_html | truncatewords:20 }}</p>
@@ -10,7 +12,7 @@
10
12
  {% endif %}
11
13
  {% if page.next.url %}
12
14
  <div class="col-4 sm-width-full left mt-3">
13
- <a class="no-underline border-top-thin py-1 block" href="{{page.next.url}}">
15
+ <a class="no-underline border-top-thin py-1 block" href="{{ page.next.url | prepend: full_base_url }}">
14
16
  <span class="h5 bold text-accent">Next</span>
15
17
  <p class="bold h3 link-primary mb-1">{{ page.next.title }}</p>
16
18
  <p>{{ page.next.content | strip_html | truncatewords:20 }}</p>
@@ -17,9 +17,11 @@
17
17
  {% endif %}
18
18
  {% endfor %}
19
19
  {% endif %}
20
+ {% assign user_url = site.url | append: site.baseurl %}
21
+ {% assign full_base_url = user_url | default: site.github.url %}
20
22
  {% if prev_post %}
21
23
  <div class="col-4 sm-width-full left mr-lg-4 mt-3">
22
- <a class="no-underline border-top-thin py-1 block" href="{{ prev_post.url }}">
24
+ <a class="no-underline border-top-thin py-1 block" href="{{ prev_post.url | prepend: full_base_url }}">
23
25
  <span class="h5 bold text-accent">Previous</span>
24
26
  <p class="bold h3 link-primary mb-1">{{ prev_post.title }}</p>
25
27
  <p>{{ page.previous.content | strip_html | truncatewords:20 }}</p>
@@ -28,7 +30,7 @@
28
30
  {% endif %}
29
31
  {% if next_post %}
30
32
  <div class="col-4 sm-width-full left mt-3">
31
- <a class="no-underline border-top-thin py-1 block" href="{{ next_post.url }}">
33
+ <a class="no-underline border-top-thin py-1 block" href="{{ next_post.url | prepend: full_base_url }}">
32
34
  <span class="h5 bold text-accent">Next</span>
33
35
  <p class="bold h3 link-primary mb-1">{{ next_post.title }}</p>
34
36
  <p>{{ page.next.content | strip_html | truncatewords:20 }}</p>
@@ -1,4 +1,4 @@
1
- <a href="https://twitter.com/{{ site.twitter_username }}" title="Follow me on twitter" class="link-social block">
1
+ <a href="https://twitter.com/{{ site.social_username }}" title="Follow me on twitter" class="link-social block">
2
2
  <svg height="32" class="header-social" version="1.1" width="32" viewBox="0 0 16 16" aria-hidden="true">
3
3
  <path d="M8,0C3.6,0,0,3.6,0,8s3.6,8,8,8s8-3.6,8-8S12.4,0,8,0z M12,6c0,0.1,0,0.2,0,0.3c0,2.7-2.1,5.8-5.8,5.8
4
4
  c-1.2,0-2.2-0.3-3.1-0.9c0.2,0,0.3,0,0.5,0c1,0,1.8-0.3,2.5-0.9c-0.9,0-1.7-0.6-1.9-1.4c0.1,0,0.3,0,0.4,0c0.2,0,0.4,0,0.5-0.1
@@ -3,10 +3,69 @@
3
3
 
4
4
  {% include head.html %}
5
5
 
6
- <body>
6
+ <body>
7
7
 
8
8
  <div>
9
- {{ content }}
9
+
10
+ <header class="header-background">
11
+
12
+ <div class="clearfix border-bottom-thick header-border">
13
+ <ul class="list-reset right py-1 header-text font-smoothing">
14
+ {% for my_page in site.pages %}
15
+ {% if my_page.title %}
16
+ <li class="inline-block">
17
+ <a class="align-middle link-primary header-link mr-2" href="{{ my_page.url | prepend: site.baseurl }}">{{ my_page.title }}</a>
18
+ </li>
19
+ {% endif %}
20
+ {% endfor %}
21
+ </ul>
22
+ </div>
23
+
24
+ <div class="container mx-auto px-2 mb-2 clearfix header-text">
25
+ <h1 class="h0 inline-block col-9 sm-width-full py-4 mt-3 header-title">{{ site.title }}</h1>
26
+
27
+ <div class="clearfix mb-4 py-1">
28
+ <div class="col-4 sm-width-full left border-top-thin">
29
+ <div class="table">
30
+ <div class="inline-block mt-3 mr-1">
31
+ {% include dot-accent.html %}
32
+ </div>
33
+ <div class="inline-block mt-3 mr-1">
34
+ {% include dot-accent.html %}
35
+ </div>
36
+ <div class="inline-block mt-3">
37
+ {% include github.html %}
38
+ </div>
39
+ </div>
40
+ <!-- Set site description in config.yml -->
41
+ <p class="h4 lh-condensed font-smoothing mt-2 py-1">{{ site.description }}</p>
42
+ </div>
43
+
44
+ <div class="col-4 sm-width-full left border-top-thin mt-3 mt-lg-0 ml-lg-4 table">
45
+ <div class="inline-block mt-3 mr-1">
46
+ {% include dot.html %}
47
+ </div>
48
+ <div class="inline-block mt-3">
49
+ {% include {{ site.social_link | default: "twitter" }}.html %}
50
+ </div>
51
+ </div>
52
+ </div>
53
+
54
+ </div>
55
+ </header>
56
+
57
+ <div class="container mx-auto py-4 px-2">
58
+ {% for post in site.posts %}
59
+ <div class="py-2 mb-2 prose mx-auto">
60
+ <a class="no-underline h5 bold text-accent" title="{{ post.url | prepend: site.baseurl }}" href="{{ post.url | prepend: site.baseurl }}">{{ post.date | date: "%b %-d, %Y" }}</a>
61
+ <h2 class="h1 lh-condensed mt-0">
62
+ <a class="link-primary" title="{{ post.url | prepend: site.baseurl }}" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
63
+ </h2>
64
+ <p>{{ post.content | strip_html | truncatewords:30 }}</p>
65
+ </div>
66
+ {% endfor %}
67
+ </div>
68
+
10
69
  </div>
11
70
 
12
71
  {% include footer.html %}
@@ -21,3 +21,11 @@ $color-primary-link: $red !default;
21
21
  -webkit-font-smoothing: antialiased;
22
22
  -moz-osx-font-smoothing: grayscale;
23
23
  }
24
+
25
+ // Import sass partials (used in all themes)
26
+ @import
27
+ "variables",
28
+ "base",
29
+ "components",
30
+ "utilities"
31
+ ;
@@ -21,3 +21,11 @@ $color-primary-link: $blue !default;
21
21
  -webkit-font-smoothing: antialiased;
22
22
  -moz-osx-font-smoothing: grayscale;
23
23
  }
24
+
25
+ // Import sass partials (used in all themes)
26
+ @import
27
+ "variables",
28
+ "base",
29
+ "components",
30
+ "utilities"
31
+ ;
@@ -17,3 +17,12 @@ $color-text-accent: $gray-light !default;
17
17
  $color-code: $gray-light !default;
18
18
  $color-nav-link: $gray !default;
19
19
  $color-primary-link: $gray-light !default;
20
+
21
+
22
+ // Import sass partials (used in all themes)
23
+ @import
24
+ "variables",
25
+ "base",
26
+ "components",
27
+ "utilities"
28
+ ;
@@ -15,3 +15,11 @@ $color-text-accent: $magenta !default;
15
15
  $color-code: $magenta !default;
16
16
  $color-nav-link: $black !default;
17
17
  $color-primary-link: $magenta !default;
18
+
19
+ // Import sass partials (used in all themes)
20
+ @import
21
+ "variables",
22
+ "base",
23
+ "components",
24
+ "utilities"
25
+ ;
@@ -16,3 +16,12 @@ $color-code: $gray !default;
16
16
  $color-nav-link: $white !default;
17
17
  $color-primary-link: $orange !default;
18
18
  $color-border: $orange;
19
+
20
+
21
+ // Import sass partials (used in all themes)
22
+ @import
23
+ "variables",
24
+ "base",
25
+ "components",
26
+ "utilities"
27
+ ;
@@ -3,7 +3,7 @@
3
3
  // Color variables
4
4
  $black: #181818;
5
5
  $red: #E74727;
6
- $red-small: #DC3918;
6
+ $red-dark: #DC3918;
7
7
  $white: #fff;
8
8
 
9
9
  // Config
@@ -12,7 +12,15 @@ $color-dot-accent: $black !default;
12
12
  $color-foreground: $black !default;
13
13
  $color-title: $white !default;
14
14
  $color-body-text: $black !default;
15
- $color-text-accent: $red !default;
16
- $color-code: $red-small !default;
15
+ $color-text-accent: $red-dark !default;
16
+ $color-code: $red-dark !default;
17
17
  $color-nav-link: $white !default;
18
18
  $color-primary-link: $red !default;
19
+
20
+ // Import sass partials (used in all themes)
21
+ @import
22
+ "variables",
23
+ "base",
24
+ "components",
25
+ "utilities"
26
+ ;
@@ -4,15 +4,25 @@
4
4
  $black: #181818;
5
5
  $red: #E74727;
6
6
  $red-dark: #DC3918;
7
- $gray: #f5f5f5;
7
+ $gray-light: #f5f5f5;
8
+ $white: #fff;
8
9
 
9
10
  // Config
10
- $color-background: $gray !default;
11
+ $color-background: $gray-light !default;
11
12
  $color-dot-accent: $red !default;
12
13
  $color-foreground: $black !default;
13
14
  $color-title: $black !default;
14
15
  $color-body-text: $black !default;
15
- $color-text-accent: $red !default;
16
+ $color-text-accent: $red-dark !default;
16
17
  $color-code: $red-dark !default;
17
- $color-nav-link: $red !default;
18
- $color-primary-link: $red !default;
18
+ $color-nav-link: $red-dark !default;
19
+ $color-primary-link: $red-dark !default;
20
+
21
+
22
+ // Import sass partials (used in all themes)
23
+ @import
24
+ "variables",
25
+ "base",
26
+ "components",
27
+ "utilities"
28
+ ;
@@ -18,3 +18,12 @@ $color-code: $gray !default;
18
18
  $color-nav-link: $white !default;
19
19
  $color-primary-link: $gray !default;
20
20
  $color-border: $yellow;
21
+
22
+
23
+ // Import sass partials (used in all themes)
24
+ @import
25
+ "variables",
26
+ "base",
27
+ "components",
28
+ "utilities"
29
+ ;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-swiss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - broccolini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-14 00:00:00.000000000 Z
11
+ date: 2016-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll