miniscule 0.1.2 → 0.1.3

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: e6be731650990ad40c98365ae9b857bb34fd76af
4
- data.tar.gz: 05dbbad46c76fd016ceba485fd535f8ae2c8aba0
3
+ metadata.gz: a4f6838231d817f0233429db27b56c638b392f55
4
+ data.tar.gz: 9a686ee697667134b7c9017178c7fe1b0bc2317b
5
5
  SHA512:
6
- metadata.gz: 5f304a66bd79030f30dd1f0107b6b749766c7f4b384795a77abedb9443dbc90f39c4ccb8832da570d5df324a8c9f11053ebde862b5a21a14f0c8ebc9f6103bdc
7
- data.tar.gz: 58ff7f972d7d13691665145c9ae5bb8fb4d42a9edc5322adc907650c6c8788b370c7a51ba586998f19ab63e5d1affb8bf1fa85aeb8e2a0a5a318ac1c608803e4
6
+ metadata.gz: 4c0b78ff803bfb2c652da26506480def5b57c8b621b197276e31f21c540120a3851722be0d9ba4c6ca1f00ef61028bc9b11eb016d65f1983f26adaa42183a3ac
7
+ data.tar.gz: f8995b97e80a0be1c5b14d1ba2094d5d167ef4825c30f94e72c6a7a2755f743cd780defc4b3f9960732f42195bc322694586502f7871588e01c28ef26fa8b4c9
data/README.md CHANGED
@@ -62,6 +62,18 @@ twitter_username: yourtwitterhandle
62
62
  show_twitter_feed: true
63
63
  ```
64
64
 
65
+ ### Fork me
66
+
67
+ Shows a GitHub 'fork me' link in the top corner of the page, as
68
+ well as a link in the footer.
69
+
70
+ In `_config.yml`:
71
+
72
+ ```yaml
73
+ fork_me_url: https://example.com
74
+ show_fork_me: true
75
+ ```
76
+
65
77
  ## License
66
78
 
67
79
  The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -29,7 +29,9 @@
29
29
  <div class="footer-col footer-col-3">
30
30
  <p>{{- site.description | escape -}}</p>
31
31
  <p>
32
- <a href="https://github.com/ronen-agranat/miniscule">Like this website? Make your own!</a>
32
+ {%- if site.show_fork_me && site.fork_me_url -%}
33
+ <a href={{ site.fork_me_url }}>Like this website? Make your own!</a>
34
+ {%- endif -%}
33
35
  </p>
34
36
  </div>
35
37
  </div>
@@ -1,2 +1,2 @@
1
1
  <!-- http://tholman.com/github-corners/ -->
2
- <a href="https://github.co4/ronen-agranat/miniscule" class="github-corner" aria-label="View source on GitHub"><svg width="40" height="40" viewBox="0 0 250 250" style="fill:#fff; color:#151513; position: absolute; top: 0; border: 0; left: 0; transform: scale(-1, 1);" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
2
+ <a href="{{ site.fork_me_url }}" class="github-corner" aria-label="View source on GitHub"><svg width="40" height="40" viewBox="0 0 250 250" style="fill:#fff; color:#151513; position: absolute; top: 0; border: 0; left: 0; transform: scale(-1, 1);" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a><style>.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}@media (max-width:500px){.github-corner:hover .octo-arm{animation:none}.github-corner .octo-arm{animation:octocat-wave 560ms ease-in-out}}</style>
@@ -1,5 +1,7 @@
1
1
  <header class="site-header">
2
- {%- include fork-me.html -%}
2
+ {%- if site.show_fork_me && site.fork_me_url -%}
3
+ {%- include fork-me.html -%}
4
+ {%- endif -%}
3
5
 
4
6
  <div class="cover-image">
5
7
  </div>
@@ -7,11 +9,9 @@
7
9
  {%- assign default_paths = site.pages | map: "path" -%}
8
10
  {%- assign page_paths = site.header_pages | default: default_paths -%}
9
11
  {%- assign titles_size = site.pages | map: 'title' | join: '' | size -%}
10
- {%- if site.logo -%}
11
- <a class="site-title" rel="author" href="{{ "/" | relative_url }}">
12
- <img src="{{ site.logo | relative_url }}" class="site-logo">
13
- </a>
14
- {%- endif -%}
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
15
  <a class="site-title" rel="author" href="{{ "/" | relative_url }}" style="margin-top: 9px;">
16
16
  {{ site.title | escape }}
17
17
  </a>
Binary file
Binary file
data/assets/main.scss CHANGED
@@ -5,7 +5,7 @@
5
5
  @import "minima";
6
6
 
7
7
  .cover-image {
8
- background-image: url("{{ site.cover_image | relative_url }}");
8
+ background-image: url("{{ site.cover_image | default: "assets/default-background.jpg" | relative_url }}");
9
9
  height: 200px;
10
10
  background-size: cover;
11
11
  background-position: center left;
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ronen Agranat
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-26 00:00:00.000000000 Z
11
+ date: 2018-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -94,6 +94,8 @@ files:
94
94
  - _sass/minima/_base.scss
95
95
  - _sass/minima/_layout.scss
96
96
  - _sass/minima/_syntax-highlighting.scss
97
+ - assets/default-background.jpg
98
+ - assets/default-profile.jpg
97
99
  - assets/main.scss
98
100
  - assets/minima-social-icons.svg
99
101
  homepage: https://github.com/ronen-agranat/miniscule