octopress-genesis-theme 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -0
- data/assets/config.yml +14 -0
- data/assets/includes/{archive-post.html → archive_post.html} +0 -0
- data/assets/includes/category_links.html +2 -0
- data/assets/includes/head.html +0 -1
- data/assets/includes/index_post.html +20 -0
- data/assets/includes/post_meta.html +6 -0
- data/assets/includes/{post-nav.html → post_nav.html} +4 -6
- data/assets/includes/{primary-nav.html → primary_nav.html} +0 -0
- data/assets/includes/{site-footer.html → site_footer.html} +0 -0
- data/assets/includes/{site-header.html → site_header.html} +0 -0
- data/assets/includes/social/comments.html +1 -0
- data/assets/includes/social/scripts.html +5 -0
- data/assets/includes/social/sharing.html +14 -0
- data/assets/includes/tag_links.html +2 -0
- data/assets/layouts/base.html +3 -0
- data/assets/layouts/default.html +3 -3
- data/assets/layouts/page.html +4 -2
- data/assets/layouts/paginated-posts.html +1 -1
- data/assets/layouts/post.html +9 -22
- data/assets/stylesheets/_entry.scss +31 -5
- data/assets/stylesheets/_grid.scss +22 -9
- data/assets/stylesheets/_layout.scss +1 -3
- data/assets/stylesheets/_sizes.scss +1 -1
- data/assets/stylesheets/_social.scss +135 -0
- data/assets/stylesheets/index.scss +1 -0
- data/assets/{layouts/category-feed.html → templates/category_feed.xml} +0 -0
- data/assets/templates/category_index.html +18 -0
- data/assets/templates/post_archive.html +1 -1
- data/assets/templates/post_index.html +1 -1
- data/lib/octopress-genesis-theme.rb +1 -1
- data/lib/octopress-genesis-theme/version.rb +1 -1
- metadata +18 -14
- data/assets/includes/index-post.html +0 -20
- data/assets/includes/social/page-header.html +0 -1
- data/assets/includes/social/post-footer.html +0 -1
- data/assets/includes/social/post-header.html +0 -1
- data/assets/layouts/category-index.html +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c11f79f4233565fbc2cf97abe1084ed08fc1654a
|
4
|
+
data.tar.gz: c37e437cb6465c09f85224b80dd044fabb723500
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1b1eff397b22188a99d5d4bc4670fdc9347ce843e69202dcfd547db12fc4b32c0c81fca1936fadf4a7bf2233c826ec8cd65ae7797a0dedb7ddb79b0e32965ed
|
7
|
+
data.tar.gz: e26698a6890fe02855f717aba333a3838630ecc21a7b2ad3c2b3c30b1fd36863a0072bd7243c091c70810799163b0c6ca314d67e56e220b743c1e64fa352b4bb
|
data/README.md
CHANGED
@@ -64,6 +64,21 @@ You can also easily overwrite stylesheets, layouts, partials and basically every
|
|
64
64
|
this plugin by adding a copy of that file in the `_plugins/theme` directory. More on that
|
65
65
|
later.
|
66
66
|
|
67
|
+
## Multilingual Support
|
68
|
+
|
69
|
+
If you're going to be building a multilingual site, be sure to
|
70
|
+
install [octopress-multilingual](https://github.com/octopress/multilingual) and this theme will automatically generate language specific pages for your:
|
71
|
+
|
72
|
+
- Posts index
|
73
|
+
- Archive page
|
74
|
+
- Category indexes (if you use them)
|
75
|
+
- Tag indexes (if you use them)
|
76
|
+
|
77
|
+
Also you will be able to set theme configurations for each language.
|
78
|
+
For example to configure theme settings for your German pages,
|
79
|
+
you'd create a `_plugins/theme/config_[lang].yml` and add
|
80
|
+
whatever settings you want to override.
|
81
|
+
|
67
82
|
## Contributing
|
68
83
|
|
69
84
|
1. Fork it ( https://github.com/octopress/genesis-theme/fork )
|
data/assets/config.yml
CHANGED
@@ -8,6 +8,7 @@ nav:
|
|
8
8
|
- { url: '/archive/', title: 'Archive' }
|
9
9
|
- { url: '/feed/', title: 'Subscribe' }
|
10
10
|
|
11
|
+
# Link labels
|
11
12
|
permalink_label: "Permalink"
|
12
13
|
read_more_label: "Continue Reading →"
|
13
14
|
|
@@ -16,4 +17,17 @@ excerpt_index: false
|
|
16
17
|
|
17
18
|
search: google
|
18
19
|
|
20
|
+
sharing:
|
21
|
+
- facebook
|
22
|
+
- twitter
|
23
|
+
- gplus
|
24
|
+
- email
|
25
|
+
|
26
|
+
share_with: buttons # or buttons
|
27
|
+
comments: false
|
28
|
+
excerpt_posts: true
|
29
|
+
excerpt_linkposts: false
|
30
|
+
|
31
|
+
|
19
32
|
center_headings: true
|
33
|
+
|
File without changes
|
data/assets/includes/head.html
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
{% if post.excerpted and ((post.linkpost == false and theme.excerpt_posts) or (post.linkpost and theme.excerpt_linkposts)) %}
|
2
|
+
{% assign excerpted = true %}
|
3
|
+
{% else %}{% assign excerpted = false %}{% endif %}
|
4
|
+
|
5
|
+
{% assign post_content = (excerpted ? post.excerpt : post.content) %}
|
6
|
+
{% assign permalink_label = (excerpted ? theme.read_more_label : theme.permalink_label) %}
|
7
|
+
|
8
|
+
<article class="entry {% return 'excerpted' if excerpted %}" role="article">
|
9
|
+
<header class="entry-header">
|
10
|
+
<h2 class="entry-title">{{ post.title_link }}</h2>
|
11
|
+
{% if post.subtitle %}<h2 class="entry-subtitle">{{ post.subtitle }}</h2>{% endif %}
|
12
|
+
<div class="entry-meta"><a href="{{ page.title_url }}">{{ post.date_html }}</a></div>
|
13
|
+
</header>
|
14
|
+
|
15
|
+
<div class="entry-content">{{ post_content }}</div>
|
16
|
+
|
17
|
+
<footer class='entry-footer'>
|
18
|
+
<a class='permalink' rel="full-article" href="{{ post.url }}">{{ permalink_label }}</a>
|
19
|
+
</footer>
|
20
|
+
</article>
|
@@ -1,17 +1,15 @@
|
|
1
1
|
{% if page.previous.url or page.next.url %}
|
2
2
|
<nav role="pagination" class="post-nav">
|
3
3
|
{% if page.previous.url %}
|
4
|
-
<a class="previous-post" href="{{ page.previous.url }}" title="Previous Article: {{ page.previous.
|
4
|
+
<a class="previous-post" href="{{ page.previous.url }}" title="Previous Article: {{ page.previous.title }}">
|
5
5
|
<div class='previous-post-marker'><span class='previous-post-arrow'>←</span> Previous Article</div>
|
6
|
-
<h6 class='previous-post-title'>{{ page.previous.
|
7
|
-
<div class="previous-post-date">{{ page.previous.date_html }}</div>
|
6
|
+
<h6 class='previous-post-title'>{{ page.previous.title }}</h6>
|
8
7
|
</a>
|
9
8
|
{% endif %}
|
10
9
|
{% if page.next.url %}
|
11
|
-
<a class="next-post" href="{{ page.next.url }}" title="Next Article: {{ page.next.
|
10
|
+
<a class="next-post" href="{{ page.next.url }}" title="Next Article: {{ page.next.title }}">
|
12
11
|
<div class='next-post-marker'>Next Article <span class='next-post-arrow'>→</span></div>
|
13
|
-
<h6 class='next-post-title'>{{ page.next.
|
14
|
-
<div class="next-post-date">{{ page.next.date_html }}</div>
|
12
|
+
<h6 class='next-post-title'>{{ page.next.title }}</h6>
|
15
13
|
</a>
|
16
14
|
{% endif %}
|
17
15
|
</nav>
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
{% if theme.comments == 'facebook' %}{% facebook_comments %}{% endif %}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
{% if theme.share_with == 'buttons' %}
|
2
|
+
{% if theme.sharing contains 'twitter' %}{% twitter_script_tag %}{% endif %}
|
3
|
+
{% if theme.sharing contains 'facebook' or theme.comments == 'facebook' %}{% facebook_script_tag %}{% endif %}
|
4
|
+
{% if theme.sharing contains 'gplus' %}{% gplus_script_tag %}{% endif %}
|
5
|
+
{% elsif theme.comments == 'facebook' %}{% facebook_script_tag %}{% endif %}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
{% if theme.sharing and page.sharing != false %}<span class="entry-social-sharing {% if theme.share_with == 'buttons' %}social-buttons{% else %}social-links{% endif %}">
|
2
|
+
{% if theme.share_with == 'buttons' %}
|
3
|
+
{% if theme.sharing contains 'twitter' %}{% tweet_button %}{% endif %}
|
4
|
+
{% if theme.sharing contains 'facebook' %}{% facebook_like_button %}{% endif %}
|
5
|
+
{% if theme.sharing contains 'gplus' %}{% gplus_one_button %}{% endif %}
|
6
|
+
{% elsif theme.share_with == 'links' %}
|
7
|
+
{% if theme.sharing contains 'twitter' %}{% tweet_link %}{% endif %}
|
8
|
+
{% if theme.sharing contains 'facebook' %}{% facebook_share_link %}{% endif %}
|
9
|
+
{% if theme.sharing contains 'gplus' %}{% gplus_share_link %}{% endif %}
|
10
|
+
{% endif %}
|
11
|
+
{% if theme.sharing contains 'email' %}
|
12
|
+
{% email_share_link %}
|
13
|
+
{% endif %}
|
14
|
+
</span>{% endif %}
|
data/assets/layouts/base.html
CHANGED
@@ -2,11 +2,14 @@
|
|
2
2
|
<html class="{{ page.class }}" lang="{% return page.lang || site.lang || 'en' %}" >
|
3
3
|
<head>
|
4
4
|
{% include theme:head.html | expand_urls %}
|
5
|
+
{% yield head %}
|
5
6
|
</head>
|
6
7
|
<body>
|
7
8
|
<div class="site">
|
8
9
|
<div class="site-content">{{ content | expand_urls }}</div>
|
9
10
|
{% js_asset_tag %}
|
10
11
|
</div>
|
12
|
+
{% include theme:social/scripts.html %}
|
13
|
+
{% yield footer_scripts %}
|
11
14
|
</body>
|
12
15
|
</html>
|
data/assets/layouts/default.html
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
layout: theme:base
|
3
3
|
---
|
4
4
|
<div class="site-top"><div class="site-top-content">
|
5
|
-
{% include theme:
|
6
|
-
{% include theme:
|
5
|
+
{% include theme:site_header.html | compact_newlines %}
|
6
|
+
{% include theme:primary_nav.html | compact_newlines %}
|
7
7
|
</div></div>
|
8
8
|
<div class="site-main">
|
9
9
|
<div class="main {% return 'with-sidebar' if sidebar %}">
|
@@ -11,5 +11,5 @@ layout: theme:base
|
|
11
11
|
</div>
|
12
12
|
</div>
|
13
13
|
<div class="site-bottom"><div class="site-bottom-content">
|
14
|
-
{% include theme:
|
14
|
+
{% include theme:site_footer.html %}
|
15
15
|
</div></div>
|
data/assets/layouts/page.html
CHANGED
@@ -5,12 +5,14 @@ layout: theme:default
|
|
5
5
|
<header class="entry-header">
|
6
6
|
<h1 class="entry-title">{{ page.title_html }}</h1>
|
7
7
|
<div class="entry-meta">{{ page.date_html }}</div>
|
8
|
-
|
8
|
+
{% wrap include theme:social/sharing.html if theme.sharing and page.sharing == true %}
|
9
|
+
<div class="entry-social top">{{ yield }}</div>
|
10
|
+
{% endwrap %}
|
9
11
|
</header>
|
10
12
|
|
11
13
|
<div class="entry-content">{{ content }}</div>
|
12
14
|
|
13
15
|
</article>
|
14
|
-
{% wrap include theme:comments
|
16
|
+
{% wrap include theme:social/comments.html if theme.comments and page.comments == true %}
|
15
17
|
<div class='entry-comments'>{{ yield }}</div>
|
16
18
|
{% endwrap %}
|
data/assets/layouts/post.html
CHANGED
@@ -1,38 +1,25 @@
|
|
1
1
|
---
|
2
2
|
layout: theme:default
|
3
3
|
---
|
4
|
-
<article class="post entry {% return 'graphic-title' if page.title-graphic %} {% return 'linkpost' if
|
5
|
-
|
6
|
-
|
7
|
-
{% else %}
|
8
|
-
<header class="entry-header">
|
9
|
-
{% endif %}
|
4
|
+
<article class="post entry {% return 'graphic-title' if page.title-graphic %} {% return 'linkpost' if page.linkpost %}" role="article">
|
5
|
+
|
6
|
+
<header class="entry-header {% if page.title-graphic %} graphic-entry-header" style="background-image: url('{{ page.title-graphic }}'){% endif %}">
|
10
7
|
{% assign title = (page.linkpost ? page.title_link : page.title_html) %}
|
11
8
|
<h1 class="entry-title">{{ title }}</h1>
|
12
9
|
{% if page.subtitle %}<h2 class="entry-subtitle">{{ page.subtitle }}</h2>{% endif %}
|
13
|
-
<div class="entry-meta">{{ page.date_html }}</div>
|
14
|
-
<div class="entry-social header">{% include theme:social/post-header.html %}</div>
|
15
10
|
{% yield header %}
|
16
11
|
</header>
|
17
12
|
|
18
13
|
<div class="entry-content">{{ content }}</div>
|
19
14
|
|
20
15
|
<footer class='entry-footer' role='contentinfo'>
|
21
|
-
|
22
|
-
{% yield footer %}
|
23
|
-
{% assign author = page.author || site.author %}
|
24
|
-
{% if author %}
|
25
|
-
<span class='author-credit'>Written by {{ author }}</span> —
|
26
|
-
{% endif %}
|
27
|
-
<span class='posted-date'>{{ page.date_time_html }}</span>
|
28
|
-
{% if page.categories.size > 0 %}
|
29
|
-
— <span class="categories">{{ page.categories | category_links }}</span>
|
30
|
-
{% endif %}
|
31
|
-
</div>
|
32
|
-
<div class="entry-social footer">{% include theme:social/post-footer.html %}</div>
|
16
|
+
{% yield footer %}
|
33
17
|
</footer>
|
18
|
+
|
19
|
+
{% include theme:post_meta.html | join_lines %}
|
20
|
+
|
34
21
|
</article>
|
35
|
-
{% include theme:
|
36
|
-
{% wrap include theme:comments
|
22
|
+
{% include theme:post_nav.html %}
|
23
|
+
{% wrap include theme:social/comments.html if theme.comments and page.comments != false %}
|
37
24
|
<div class='entry-comments'>{{ yield }}</div>
|
38
25
|
{% endwrap %}
|
@@ -12,6 +12,9 @@
|
|
12
12
|
top: -2rem;
|
13
13
|
}
|
14
14
|
}
|
15
|
+
a {
|
16
|
+
text-decoration: none;
|
17
|
+
}
|
15
18
|
}
|
16
19
|
|
17
20
|
.article-link {
|
@@ -30,10 +33,6 @@
|
|
30
33
|
|
31
34
|
.entry-title {
|
32
35
|
margin-bottom: 0;
|
33
|
-
font-size: 2.4rem;
|
34
|
-
@include at-least($medium) {
|
35
|
-
font-size: 2.8rem;
|
36
|
-
}
|
37
36
|
}
|
38
37
|
|
39
38
|
.entry-meta {
|
@@ -59,7 +58,7 @@
|
|
59
58
|
z-index: 1;
|
60
59
|
}
|
61
60
|
.entry-subtitle {
|
62
|
-
font-size: 1.
|
61
|
+
font-size: 1.15em;
|
63
62
|
margin-top: 0;
|
64
63
|
}
|
65
64
|
|
@@ -92,3 +91,30 @@
|
|
92
91
|
}
|
93
92
|
}
|
94
93
|
}
|
94
|
+
|
95
|
+
.entry-meta {
|
96
|
+
display: block;
|
97
|
+
text-align: center;
|
98
|
+
.entry-header + & {
|
99
|
+
margin: 2em auto;
|
100
|
+
}
|
101
|
+
a {
|
102
|
+
color: $light-text-color;
|
103
|
+
&:hover {
|
104
|
+
color: $link-color;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
.entry-social-sharing {
|
110
|
+
display: block;
|
111
|
+
margin: 2em auto;
|
112
|
+
}
|
113
|
+
|
114
|
+
.entry-categories, .entry-tags {
|
115
|
+
&:before {
|
116
|
+
content: "•";
|
117
|
+
padding: 0 8px;
|
118
|
+
opacity: .4;
|
119
|
+
}
|
120
|
+
}
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/* ==========================================================================
|
2
|
-
* Grid core - Based on Griddle, Heavily customized.
|
3
|
-
* ========================================================================== */
|
4
|
-
|
5
1
|
@mixin destroy-margins {
|
6
2
|
@include destroy-top-margins;
|
7
3
|
@include destroy-bottom-margins;
|
@@ -24,6 +20,9 @@
|
|
24
20
|
@include destroy-margins;
|
25
21
|
}
|
26
22
|
|
23
|
+
/* ==========================================================================
|
24
|
+
* Grid core
|
25
|
+
* ========================================================================== */
|
27
26
|
|
28
27
|
$grid-gutter: 4%;
|
29
28
|
$margin: 30px;
|
@@ -140,14 +139,28 @@ $cell-sizes: (1:one, 2:two, 3:three, 4:four, 5:five, 6:six);
|
|
140
139
|
.#{map-get($cell-sizes, $i)}-of-#{map-get($cell-sizes, $num)} {
|
141
140
|
width: 100%*$i/$num;
|
142
141
|
}
|
142
|
+
.small-#{map-get($cell-sizes, $i)}-of-#{map-get($cell-sizes, $num)} {
|
143
|
+
@include at-least($small) {
|
144
|
+
width: 100%*$i/$num;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
.medium-#{map-get($cell-sizes, $i)}-of-#{map-get($cell-sizes, $num)} {
|
148
|
+
@include at-least($medium) {
|
149
|
+
width: 100%*$i/$num;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
.large-#{map-get($cell-sizes, $i)}-of-#{map-get($cell-sizes, $num)} {
|
153
|
+
@include at-least($medium) {
|
154
|
+
width: 100%*$i/$num;
|
155
|
+
}
|
156
|
+
}
|
143
157
|
}
|
144
158
|
}
|
145
159
|
|
146
|
-
@include grid-cell(6);
|
147
|
-
@include grid-cell(5);
|
148
|
-
@include grid-cell(4);
|
149
|
-
@include grid-cell(3);
|
150
160
|
@include grid-cell(2);
|
161
|
+
@include grid-cell(3);
|
162
|
+
@include grid-cell(4);
|
163
|
+
@include grid-cell(5);
|
164
|
+
@include grid-cell(6);
|
151
165
|
.small-golden { width: 38.2%; }
|
152
166
|
.large-golden { width: 61.8%; }
|
153
|
-
|
@@ -59,9 +59,8 @@ html, body, .site {
|
|
59
59
|
.limit-width,
|
60
60
|
.entry-title,
|
61
61
|
.entry-subtitle,
|
62
|
-
.entry-social,
|
63
62
|
.entry-content,
|
64
|
-
|
63
|
+
.entry-meta,
|
65
64
|
.post-nav,
|
66
65
|
.entry-footer {
|
67
66
|
max-width: $main-content-max;
|
@@ -69,4 +68,3 @@ header .entry-meta,
|
|
69
68
|
padding-right: $content-pad;
|
70
69
|
margin: { left: auto; right: auto; }
|
71
70
|
}
|
72
|
-
|
@@ -0,0 +1,135 @@
|
|
1
|
+
%social-link {
|
2
|
+
transition: all .3s ease-in-out;
|
3
|
+
display: inline-block;
|
4
|
+
font-size: 0;
|
5
|
+
background: {
|
6
|
+
repeat: no-repeat;
|
7
|
+
position: center center;
|
8
|
+
size: 60% 55%;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
|
12
|
+
%social-share-link {
|
13
|
+
@extend %social-link;
|
14
|
+
width: 55px;
|
15
|
+
height: 35px;
|
16
|
+
&:first-child {
|
17
|
+
border-top-left-radius: 4px;
|
18
|
+
border-bottom-left-radius: 4px;
|
19
|
+
}
|
20
|
+
&:last-child {
|
21
|
+
border-top-right-radius: 4px;
|
22
|
+
border-bottom-right-radius: 4px;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
%social-profile-link {
|
27
|
+
@extend %social-link;
|
28
|
+
width: 55px;
|
29
|
+
height: 55px;
|
30
|
+
}
|
31
|
+
|
32
|
+
%twitter-logo {
|
33
|
+
background-image: url('data:image/svg+xml;utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="18" height="14.6"%3E%3Cpath fill="%23fff" d="M15.9 2.3c.8-.5 1.3-1.2 1.6-2-.8.4-1.6.7-2.4.9C14.4.4 13.6 0 12.5 0c-1 0-1.9.4-2.6 1.1-.8.7-1.1 1.6-1.1 2.6 0 .3 0 .6.1.8C5.8 4.4 3.3 3.1 1.3.7.9 1.3.7 1.9.7 2.5c0 1.3.5 2.3 1.6 3.1-.5-.1-1.1-.2-1.6-.5 0 .9.3 1.7.8 2.4s1.3 1.1 2.1 1.3c-.2.1-.6.1-.9.1-.3 0-.5 0-.7-.1.2.8.7 1.4 1.3 1.8.6.5 1.3.7 2.2.7-1.3 1-2.9 1.6-4.6 1.6H0c1.7 1.1 3.6 1.6 5.7 1.6s4-.5 5.7-1.6c1.6-1.1 2.9-2.4 3.6-4 .8-1.6 1.2-3.2 1.2-4.9v-.4C17 3 17.6 2.4 18 1.7c-.7.3-1.4.5-2.1.6z"/%3E%3C/svg%3E');
|
34
|
+
}
|
35
|
+
%facebook-logo {
|
36
|
+
background-image: url('data:image/svg+xml;utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="9" height="16"%3E%3Cpath fill="%23fff" d="M6 6h3v3H6v7H3V9H0V6h3V4.7c0-1.2.4-2.7 1.1-3.5C4.9.4 5.8 0 6.9 0H9v3H6.9c-.5 0-.9.4-.9.9V6z"/%3E%3C/svg%3E');
|
37
|
+
}
|
38
|
+
%g-plus-logo {
|
39
|
+
background-image: url('data:image/svg+xml;utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="14.8" height="14.9"%3E%3Cpath fill="%23fff" d="M7.7 8.5L7 8c-.2-.2-.5-.4-.5-.8s.3-.7.6-1c.8-.6 1.7-1.3 1.7-2.8S7.9 1.1 7.4.7h1.2L9.8 0H5.7c-1 0-2.4.2-3.5 1.1C1.4 1.8 1 2.8 1 3.7c0 1.5 1.2 3.1 3.3 3.1h.6c-.1.2-.2.4-.2.7 0 .6.3 1 .6 1.3-.9.1-2.5.2-3.8.9-1.2.7-1.5 1.7-1.5 2.4 0 1.5 1.4 2.8 4.2 2.8 3.4 0 5.2-1.9 5.2-3.7 0-1.3-.8-1.9-1.7-2.7zM5.2 6.3c-1.7 0-2.5-2.2-2.5-3.5 0-.5.1-1 .4-1.5.3-.4.9-.7 1.4-.7C6.1.6 7 2.8 7 4.2c0 .4 0 1-.5 1.4-.3.4-.9.7-1.3.7zm0 7.9c-2.1 0-3.5-1-3.5-2.4s1.3-1.9 1.7-2c.8-.3 1.9-.3 2.1-.3H6c1.5 1.1 2.1 1.6 2.1 2.6 0 1.2-1 2.1-2.9 2.1zM11.8 7h-2V6h2V4.1l1-.1v2h2v1h-2v2h-1V7z"/%3E%3C/svg%3E');
|
40
|
+
}
|
41
|
+
%github-logo {
|
42
|
+
background-image: url('data:image/svg+xml;utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="32.6" height="31.8" %3E%3Cpath fill-rule="evenodd" clip-rule="evenodd" fill="%23fff" d="M16.3 0C7.3 0 0 7.3 0 16.3c0 7.2 4.7 13.3 11.1 15.5.8.1 1.1-.4 1.1-.8v-2.8c-4.5 1-5.5-2.2-5.5-2.2-.7-1.9-1.8-2.4-1.8-2.4-1.5-1 .1-1 .1-1 1.6.1 2.5 1.7 2.5 1.7 1.5 2.5 3.8 1.8 4.7 1.4.1-1.1.6-1.8 1-2.2-3.6-.4-7.4-1.8-7.4-8.1 0-1.8.6-3.2 1.7-4.4-.1-.3-.7-2 .2-4.2 0 0 1.4-.4 4.5 1.7 1.3-.4 2.7-.5 4.1-.5 1.4 0 2.8.2 4.1.5 3.1-2.1 4.5-1.7 4.5-1.7.9 2.2.3 3.9.2 4.3 1 1.1 1.7 2.6 1.7 4.4 0 6.3-3.8 7.6-7.4 8 .6.5 1.1 1.5 1.1 3V31c0 .4.3.9 1.1.8 6.5-2.2 11.1-8.3 11.1-15.5C32.6 7.3 25.3 0 16.3 0z"/%3E%3C/svg%3E')
|
43
|
+
}
|
44
|
+
%email-logo {
|
45
|
+
background-image: url('data:image/svg+xml;utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" width="72.1" height="48.7" viewBox="0 0 72.1 48.7"%3E%3Cg fill="%23fff"%3E%3Cpath d="M71.9 45.7c.1-.4.2-.9.2-1.4v-40c0-.5-.1-.9-.2-1.3L48.4 23.2l23.5 22.5zM36.1 28l6.2-5 3.1-2.6L69 .2c-.4-.1-.8-.2-1.2-.2H4.3c-.4 0-.8.1-1.2.2l23.6 20.2 3.1 2.6 6.3 5zM67.8 48.7c.4 0 .8-.1 1.2-.2L45.2 25.7 36 33.2l-9.2-7.5L3.2 48.5c.4.1.8.2 1.2.2h63.4zM.2 3c-.1.4-.2.9-.2 1.3v40c0 .5.1.9.2 1.4l23.5-22.6L.2 3z"/%3E%3C/g%3E%3C/svg%3E');
|
46
|
+
background-size: 45% 55%;
|
47
|
+
}
|
48
|
+
|
49
|
+
.github-profile-link {
|
50
|
+
@extend %social-profile-link;
|
51
|
+
@extend %github-logo;
|
52
|
+
background-color: #444;
|
53
|
+
&:hover {
|
54
|
+
background-color: #222;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
.twitter-share-link {
|
59
|
+
@extend %social-share-link;
|
60
|
+
@extend %twitter-logo;
|
61
|
+
background-color: #1dadea;
|
62
|
+
&:hover {
|
63
|
+
background-color: darken(#1dadea, 8);
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
.facebook-share-link {
|
68
|
+
@extend %social-share-link;
|
69
|
+
@extend %facebook-logo;
|
70
|
+
background-color: #3c5a96;
|
71
|
+
&:hover {
|
72
|
+
background-color: darken(#3c5a96, 8);
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
.g-plus-share-link {
|
77
|
+
@extend %social-share-link;
|
78
|
+
@extend %g-plus-logo;
|
79
|
+
background-color: #d1493c;
|
80
|
+
&:hover {
|
81
|
+
background-color: darken(#d1493c, 8);
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
.social-links {
|
86
|
+
.email-share-link {
|
87
|
+
@extend %social-share-link;
|
88
|
+
@extend %email-logo;
|
89
|
+
background-color: #ed7a23;
|
90
|
+
&:hover {
|
91
|
+
background-color: darken(#ed7a23, 5);
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
.social-buttons {
|
97
|
+
> * {
|
98
|
+
vertical-align: baseline;
|
99
|
+
margin: 0 .2em;
|
100
|
+
line-height: 0em;
|
101
|
+
}
|
102
|
+
.email-share-link {
|
103
|
+
background-color: #ed7a23;
|
104
|
+
color: #fff;
|
105
|
+
font-size: .7rem;
|
106
|
+
padding: 0 .2em;
|
107
|
+
line-height: 1.1em;
|
108
|
+
border-radius: 2px;
|
109
|
+
margin: 0 .4em;
|
110
|
+
border: 1px solid rgba(#000, .1);
|
111
|
+
display: inline-block;
|
112
|
+
position: relative;
|
113
|
+
top: -.3em;
|
114
|
+
|
115
|
+
&:before {
|
116
|
+
content: "";
|
117
|
+
@extend %email-logo;
|
118
|
+
width: 1em;
|
119
|
+
height: 1em;
|
120
|
+
margin-right: 2px;
|
121
|
+
display: inline-block;
|
122
|
+
position: relative;
|
123
|
+
top: .15em;
|
124
|
+
background: {
|
125
|
+
repeat: no-repeat;
|
126
|
+
position: center center;
|
127
|
+
size: 90% 90%;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
&:hover {
|
131
|
+
color: #fff;
|
132
|
+
background-color: darken(#ed7a23, 5);
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
File without changes
|
@@ -0,0 +1,18 @@
|
|
1
|
+
---
|
2
|
+
layout: theme:default
|
3
|
+
---
|
4
|
+
<div class="page">
|
5
|
+
<div class="category-index">
|
6
|
+
{% for post in site.categories[page.category] %}
|
7
|
+
{% assign post_year = post.date | date: "%Y" %}
|
8
|
+
{% if post_year != current_year %}
|
9
|
+
{% if current_year %}</div>{% endif %}
|
10
|
+
{% assign current_year = post_year %}
|
11
|
+
<div class='archive-year'>
|
12
|
+
<h2 class='archive-year-heading'>{{ post_year }}</h2>
|
13
|
+
{% endif %}
|
14
|
+
{% include theme:archive_post.html %}
|
15
|
+
{% endfor %}
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</div>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: octopress-genesis-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octopress-ink
|
@@ -165,7 +165,7 @@ dependencies:
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name: octopress-
|
168
|
+
name: octopress-social
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - ">="
|
@@ -257,21 +257,22 @@ extra_rdoc_files: []
|
|
257
257
|
files:
|
258
258
|
- README.md
|
259
259
|
- assets/config.yml
|
260
|
-
- assets/includes/
|
260
|
+
- assets/includes/archive_post.html
|
261
|
+
- assets/includes/category_links.html
|
261
262
|
- assets/includes/head.html
|
262
|
-
- assets/includes/
|
263
|
-
- assets/includes/
|
264
|
-
- assets/includes/
|
263
|
+
- assets/includes/index_post.html
|
264
|
+
- assets/includes/post_meta.html
|
265
|
+
- assets/includes/post_nav.html
|
266
|
+
- assets/includes/primary_nav.html
|
265
267
|
- assets/includes/search/duckduckgo.html
|
266
268
|
- assets/includes/search/google.html
|
267
|
-
- assets/includes/
|
268
|
-
- assets/includes/
|
269
|
-
- assets/includes/social/
|
270
|
-
- assets/includes/social/
|
271
|
-
- assets/includes/social/
|
269
|
+
- assets/includes/site_footer.html
|
270
|
+
- assets/includes/site_header.html
|
271
|
+
- assets/includes/social/comments.html
|
272
|
+
- assets/includes/social/scripts.html
|
273
|
+
- assets/includes/social/sharing.html
|
274
|
+
- assets/includes/tag_links.html
|
272
275
|
- assets/layouts/base.html
|
273
|
-
- assets/layouts/category-feed.html
|
274
|
-
- assets/layouts/category-index.html
|
275
276
|
- assets/layouts/default.html
|
276
277
|
- assets/layouts/page.html
|
277
278
|
- assets/layouts/paginated-posts.html
|
@@ -285,9 +286,12 @@ files:
|
|
285
286
|
- assets/stylesheets/_mixins.scss
|
286
287
|
- assets/stylesheets/_post-nav.scss
|
287
288
|
- assets/stylesheets/_sizes.scss
|
289
|
+
- assets/stylesheets/_social.scss
|
288
290
|
- assets/stylesheets/_theme.scss
|
289
291
|
- assets/stylesheets/_typography.scss
|
290
292
|
- assets/stylesheets/index.scss
|
293
|
+
- assets/templates/category_feed.xml
|
294
|
+
- assets/templates/category_index.html
|
291
295
|
- assets/templates/post_archive.html
|
292
296
|
- assets/templates/post_index.html
|
293
297
|
- lib/octopress-genesis-theme.rb
|
@@ -1,20 +0,0 @@
|
|
1
|
-
{% if !post.linkpost %}
|
2
|
-
{% assign post_content = (theme.excerpt_index ? post.excerpt : post.content) %}
|
3
|
-
{% else %}{% assign post_content = post.content %}{% endif %}
|
4
|
-
{% assign permalink_label = (post.excerpted ? theme.read_more_label : theme.permalink_label) %}
|
5
|
-
|
6
|
-
<article class="entry {% return 'excerpted' if excerpted %}" role="article">
|
7
|
-
<header class="entry-header">
|
8
|
-
<h1 class="entry-title">{{ post.title_link }}</h1>
|
9
|
-
{% if post.subtitle %}<h2 class="entry-subtitle">{{ post.subtitle }}</h2>{% endif %}
|
10
|
-
<div class="entry-meta">{{ post.date_html }}</div>
|
11
|
-
</header>
|
12
|
-
|
13
|
-
<div class="entry-content">{{ post_content }}</div>
|
14
|
-
|
15
|
-
<footer class='entry-footer'>
|
16
|
-
<a class='permalink' rel="full-article" href="{{ post.url }}">{{ permalink_label }}</a>
|
17
|
-
{%_ categories post %}
|
18
|
-
{%_ tags post %}
|
19
|
-
</footer>
|
20
|
-
</article>
|
@@ -1 +0,0 @@
|
|
1
|
-
<!-- Page header social buttons go here -->
|
@@ -1 +0,0 @@
|
|
1
|
-
<!-- Post footer social buttons go here -->
|
@@ -1 +0,0 @@
|
|
1
|
-
<!-- Post header social buttons go here -->
|
@@ -1,16 +0,0 @@
|
|
1
|
-
---
|
2
|
-
layout: theme:default
|
3
|
-
---
|
4
|
-
<div class="category-archive">
|
5
|
-
{% for post in site.categories[page.category] %}
|
6
|
-
{% assign post_year = post.date | date: "%Y" %}
|
7
|
-
{% if post_year != current_year %}
|
8
|
-
{% if current_year %}</div>{% endif %}
|
9
|
-
{% assign current_year = post_year %}
|
10
|
-
<div class='archive-year'>
|
11
|
-
<h2 class='archive-year-heading'>{{ post_year }}</h2>
|
12
|
-
{% endif %}
|
13
|
-
{% include theme:archive-post.html %}
|
14
|
-
{% endfor %}
|
15
|
-
</div>
|
16
|
-
</div>
|