miniscule 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +23 -0
- data/_includes/footer.html +7 -33
- data/_includes/social.html +11 -11
- data/_layouts/home.html +19 -12
- data/_layouts/post.html +6 -0
- data/_sass/minima/_layout.scss +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d31143680de3ab5e8fd3a2d82015f7ba6b14eb6d67cfbe3a02c90104a489d33
|
4
|
+
data.tar.gz: d025c5c795c8aaf390570e8f38ed8ae188b0dc4c973e611b964d1f83bbb7af7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed7ecf79d5c7fef9bb994ee0371ef8892c0b73e4b3e1dfe9dc677a2f7941c4685479310b8cf9a5403c5554a3f8c6794836eed010ea424e400957496b11d55b63
|
7
|
+
data.tar.gz: fa8ba3e13d282f7092245a4ce98cf8a9acadcbdfff91917a0677665d16e6391bcc0629066ee5a50b5a8e10dd23aca60d877e5d601d040271a5d7da2f4efe2da4
|
data/README.md
CHANGED
@@ -100,6 +100,29 @@ fork_me_url: https://example.com
|
|
100
100
|
show_fork_me: true
|
101
101
|
```
|
102
102
|
|
103
|
+
## Build and publish
|
104
|
+
|
105
|
+
Normal build:
|
106
|
+
|
107
|
+
```
|
108
|
+
bundle install
|
109
|
+
bundle exec jekyll build
|
110
|
+
bundle exec jekyll serve
|
111
|
+
```
|
112
|
+
|
113
|
+
Should show sample blog.
|
114
|
+
|
115
|
+
### Releasing gem:
|
116
|
+
|
117
|
+
Bump version in miniscule.gemspec
|
118
|
+
|
119
|
+
```
|
120
|
+
gem build miniscule.gemspec
|
121
|
+
gem push miniscule-XXX.gemspec
|
122
|
+
```
|
123
|
+
|
124
|
+
Note that the rubygems creds are required
|
125
|
+
|
103
126
|
## License
|
104
127
|
|
105
128
|
The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/_includes/footer.html
CHANGED
@@ -3,40 +3,14 @@
|
|
3
3
|
|
4
4
|
<div class="wrapper">
|
5
5
|
<div class="footer-col-wrapper no-print">
|
6
|
-
<div
|
7
|
-
<
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
{%- if site.email -%}
|
14
|
-
<li><h2 class="footer-heading">{{ site.title | escape }}</li>
|
15
|
-
<li><a class="u-email" href="mailto:{{ site.email }}">{{ site.email }}</a></li>
|
16
|
-
{%- endif -%}
|
17
|
-
<li><p class="feed-subscribe" style="padding-top: 1em"><svg class="svg-icon orange"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg><a href="{{ "/feed.xml" | relative_url }}">Subscribe</a></p></li>
|
18
|
-
</ul>
|
19
|
-
</div>
|
20
|
-
|
21
|
-
<div class="footer-col footer-col-2">
|
22
|
-
{%- include social.html -%}
|
23
|
-
</div>
|
24
|
-
|
25
|
-
<div class="footer-col footer-col-3">
|
26
|
-
<p>{{- site.description | escape -}}</p>
|
27
|
-
<p>
|
28
|
-
{%- if site.show_fork_me && site.fork_me_url -%}
|
29
|
-
<a href={{ site.fork_me_url }}>Like this website? Make your own!</a>
|
30
|
-
{%- endif -%}
|
31
|
-
</p>
|
6
|
+
<div style="display: flex; flex-direction: row; justify-content: space-between; flex-wrap: wrap;">
|
7
|
+
<div style="max-width: 20em; margin-right: 5px;">
|
8
|
+
{{- site.description | escape -}}
|
9
|
+
</div>
|
10
|
+
<div>
|
11
|
+
{%- include social.html -%}
|
12
|
+
</div>
|
32
13
|
</div>
|
33
14
|
</div>
|
34
|
-
{%- if site.url -%}
|
35
|
-
<div class="print-only" style="margin: auto; width: 100%; text-align: center">
|
36
|
-
<small>
|
37
|
-
<strong>{{ site.url | escape }}</strong></a>
|
38
|
-
</small>
|
39
|
-
</div>
|
40
|
-
{%- endif -%}
|
41
15
|
</div>
|
42
16
|
</footer>
|
data/_includes/social.html
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
<ul class="social-media-list">
|
2
|
-
{%- if site.dribbble_username -%}<li><a href="https://dribbble.com/{{ site.dribbble_username| cgi_escape | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#dribbble' | relative_url }}"></use></svg> <span class="username"
|
3
|
-
{%- if site.facebook_username -%}<li><a href="https://www.facebook.com/{{ site.facebook_username| cgi_escape | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#facebook' | relative_url }}"></use></svg> <span class="username"
|
4
|
-
{%- if site.flickr_username -%}<li><a href="https://www.flickr.com/photos/{{ site.flickr_username| cgi_escape | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#flickr' | relative_url }}"></use></svg> <span class="username"
|
5
|
-
{%- if site.github_username -%}<li><a href="https://github.com/{{ site.github_username| cgi_escape | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#github' | relative_url }}"></use></svg> <span class="username"
|
6
|
-
{%- if site.instagram_username -%}<li><a href="https://www.instagram.com/{{ site.instagram_username| cgi_escape | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#instagram' | relative_url }}"></use></svg> <span class="username"
|
7
|
-
{%- if site.linkedin_username -%}<li><a href="https://www.linkedin.com/in/{{ site.linkedin_username| cgi_escape | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#linkedin' | relative_url }}"></use></svg> <span class="username"
|
8
|
-
{%- if site.pinterest_username -%}<li><a href="https://www.pinterest.com/{{ site.pinterest_username| cgi_escape | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#pinterest' | relative_url }}"></use></svg> <span class="username"
|
9
|
-
{%- for mst in site.mastodon -%}{%- if mst.username and mst.instance -%}<li><a rel="me" href="https://{{ mst.instance| cgi_escape | escape}}/@{{mst.username}}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#mastodon' | relative_url }}"></use></svg> <span class="username"
|
10
|
-
{%- if site.twitter_username -%}<li><a href="https://twitter.com/{{ site.twitter_username| cgi_escape | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#twitter' | relative_url }}"></use></svg> <span class="username"
|
11
|
-
{%- if site.youtube_username -%}<li><a href="https://www.youtube.com/{{ site.youtube_username| cgi_escape | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#youtube' | relative_url }}"></use></svg> <span class="username"
|
2
|
+
{%- if site.dribbble_username -%}<li><a href="https://dribbble.com/{{ site.dribbble_username| cgi_escape | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#dribbble' | relative_url }}"></use></svg> <span class="username"></span></a></li>{%- endif -%}
|
3
|
+
{%- if site.facebook_username -%}<li><a href="https://www.facebook.com/{{ site.facebook_username| cgi_escape | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#facebook' | relative_url }}"></use></svg> <span class="username"></span></a></li>{%- endif -%}
|
4
|
+
{%- if site.flickr_username -%}<li><a href="https://www.flickr.com/photos/{{ site.flickr_username| cgi_escape | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#flickr' | relative_url }}"></use></svg> <span class="username"></span></a></li>{%- endif -%}
|
5
|
+
{%- if site.github_username -%}<li><a href="https://github.com/{{ site.github_username| cgi_escape | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#github' | relative_url }}"></use></svg> <span class="username"></span></a></li>{%- endif -%}
|
6
|
+
{%- if site.instagram_username -%}<li><a href="https://www.instagram.com/{{ site.instagram_username| cgi_escape | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#instagram' | relative_url }}"></use></svg> <span class="username"></span></a></li>{%- endif -%}
|
7
|
+
{%- if site.linkedin_username -%}<li><a href="https://www.linkedin.com/in/{{ site.linkedin_username| cgi_escape | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#linkedin' | relative_url }}"></use></svg> <span class="username"></span></a></li>{%- endif -%}
|
8
|
+
{%- if site.pinterest_username -%}<li><a href="https://www.pinterest.com/{{ site.pinterest_username| cgi_escape | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#pinterest' | relative_url }}"></use></svg> <span class="username"></span></a></li>{%- endif -%}
|
9
|
+
{%- for mst in site.mastodon -%}{%- if mst.username and mst.instance -%}<li><a rel="me" href="https://{{ mst.instance| cgi_escape | escape}}/@{{mst.username}}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#mastodon' | relative_url }}"></use></svg> <span class="username"></span></a></li>{%- endif -%}{%- endfor -%}
|
10
|
+
{%- if site.twitter_username -%}<li><a href="https://twitter.com/{{ site.twitter_username| cgi_escape | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#twitter' | relative_url }}"></use></svg> <span class="username"></span></a></li>{%- endif -%}
|
11
|
+
{%- if site.youtube_username -%}<li><a href="https://www.youtube.com/{{ site.youtube_username| cgi_escape | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#youtube' | relative_url }}"></use></svg> <span class="username"></span></a></li>{%- endif -%}
|
12
12
|
{%- if site.youtube_channel -%}<li><a href="https://www.youtube.com/channel/{{ site.youtube_channel| cgi_escape | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#youtube' | relative_url }}"></use></svg><span class="username">{%- if site.youtube_channel_name -%}{{ site.youtube_channel_name | escape }}{%- else -%}YouTube{%- endif -%}</span></a></li>{%- endif -%}
|
13
13
|
{%- if site.telegram_username -%}<li><a href="https://t.me/{{ site.telegram_username| cgi_escape | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#telegram' | relative_url }}"></use></svg> <span class="username">{{ site.telegram_username| escape }}</span></a></li>{%- endif -%}
|
14
14
|
{%- if site.microdotblog_username -%}<li><a href="https://micro.blog/{{ site.microdotblog_username| cgi_escape | escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#microdotblog' | relative_url }}"></use></svg> <span class="username">{{ site.microdotblog_username| escape }}</span></a></li>{%- endif -%}
|
15
15
|
{%- if site.googleplus_username -%}<li><a href="https://plus.google.com/{{ site.googleplus_username| escape }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#googleplus' | relative_url }}"></use></svg> <span class="username">{{ site.googleplus_username| escape }}</span></a></li>{%- endif -%}
|
16
|
-
|
16
|
+
<li><a href="{{ "/feed.xml" | relative_url }}"><svg class="svg-icon grey"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg></a></li>
|
17
17
|
</ul>
|
data/_layouts/home.html
CHANGED
@@ -12,18 +12,25 @@ layout: default
|
|
12
12
|
{%- if site.posts.size > 0 -%}
|
13
13
|
<div style="display: flex; flex-direction: row; justify-content: flex-start; flex-wrap: wrap;" class="post-list">
|
14
14
|
{%- for post in site.posts -%}
|
15
|
-
<
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
15
|
+
<a href="{{ post.url | relative_url }}">
|
16
|
+
<div style="border: #f0f0f0 solid 1px; margin: 5px; max-width: 150px; min-height: 220px; border-radius: 3px;">
|
17
|
+
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
|
18
|
+
{%- if post.image -%}
|
19
|
+
<div style="padding:0;margin:0; text-align: center;">
|
20
|
+
<img src="{{ post.image | relative_url }}" style="border-radius: 3px; max-width: 150px; margin: auto;" />
|
21
|
+
</div>
|
22
|
+
{%- endif -%}
|
23
|
+
<div style="padding: 7px">
|
24
|
+
<h3>
|
25
|
+
{{ post.title | escape }}
|
26
|
+
</h3>
|
27
|
+
<span class="post-meta">{{ post.date | date: date_format }}</span>
|
28
|
+
{%- if site.show_excerpts -%}
|
29
|
+
{{ post.excerpt }}
|
30
|
+
{%- endif -%}
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
</a>
|
27
34
|
{%- endfor -%}
|
28
35
|
</div>
|
29
36
|
|
data/_layouts/post.html
CHANGED
@@ -16,6 +16,12 @@ layout: default
|
|
16
16
|
</header>
|
17
17
|
|
18
18
|
<div class="post-content e-content" itemprop="articleBody">
|
19
|
+
{%- if page.image -%}
|
20
|
+
<div style="text-align: center; padding: 0; margin: 0;">
|
21
|
+
<img src="{{ page.image | relative_url }}" />
|
22
|
+
</div>
|
23
|
+
{%- endif -%}
|
24
|
+
|
19
25
|
{{ content }}
|
20
26
|
</div>
|
21
27
|
|
data/_sass/minima/_layout.scss
CHANGED
@@ -138,6 +138,10 @@
|
|
138
138
|
margin-left: 0;
|
139
139
|
}
|
140
140
|
|
141
|
+
.social-media-list li {
|
142
|
+
display: inline;
|
143
|
+
}
|
144
|
+
|
141
145
|
.footer-col-wrapper {
|
142
146
|
@include relative-font-size(0.9375);
|
143
147
|
color: $grey-color;
|
@@ -161,6 +165,7 @@
|
|
161
165
|
.footer-col-3 {
|
162
166
|
width: -webkit-calc(100% - (#{$spacing-unit} / 2));
|
163
167
|
width: calc(100% - (#{$spacing-unit} / 2));
|
168
|
+
text-align: right;
|
164
169
|
}
|
165
170
|
|
166
171
|
@media screen and (min-width: $on-large) {
|
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.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ronen Agranat
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|