octopress-genesis-theme 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -14
- data/assets/config.yml +7 -29
- data/assets/includes/archive-post.html +3 -4
- data/assets/includes/index-post.html +6 -6
- data/assets/includes/post-nav.html +4 -4
- data/assets/includes/search/google.html +1 -1
- data/assets/includes/site-header.html +2 -2
- data/assets/layouts/base.html +1 -2
- data/assets/layouts/post.html +8 -8
- data/assets/stylesheets/_entry.scss +29 -20
- data/assets/stylesheets/_layout.scss +2 -1
- data/assets/stylesheets/_sizes.scss +1 -1
- data/assets/stylesheets/_typography.scss +1 -6
- data/assets/stylesheets/index.scss +3 -1
- data/assets/{pages/archive.html → templates/post_archive.html} +1 -6
- data/assets/templates/post_index.html +9 -0
- data/lib/{octopress-genesis → octopress-genesis-theme}/version.rb +1 -1
- data/lib/octopress-genesis-theme.rb +23 -0
- metadata +64 -75
- data/.gitignore +0 -25
- data/Gemfile +0 -4
- data/LICENSE.txt +0 -22
- data/Rakefile +0 -2
- data/assets/includes/feed/entry.xml +0 -30
- data/assets/includes/feed/head.xml +0 -9
- data/assets/pages/feed-articles.xml +0 -14
- data/assets/pages/feed-links.xml +0 -14
- data/assets/pages/feed.xml +0 -12
- data/assets/pages/index.html +0 -11
- data/demo/Gemfile +0 -5
- data/demo/_config.yml +0 -7
- data/demo/_plugins/theme/config.yml +0 -0
- data/demo/_plugins/theme/stylesheets/_colors.scss +0 -16
- data/demo/_plugins/theme/stylesheets/_entry.scss +0 -85
- data/demo/_plugins/theme/stylesheets/_header.scss +0 -51
- data/demo/_plugins/theme/stylesheets/_post-nav.scss +0 -38
- data/demo/_plugins/theme/stylesheets/_sizes.scss +0 -17
- data/demo/_plugins/theme/stylesheets/_typography.scss +0 -91
- data/demo/_plugins/theme/stylesheets/index.scss +0 -16
- data/demo/_posts/2014-08-03-dang-that-was-fast.md +0 -18
- data/demo/_posts/2014-08-03-hi-guys.markdown +0 -8
- data/demo/images/panorama.jpg +0 -0
- data/demo/page.html +0 -175
- data/lib/octopress-genesis/category-generator.rb +0 -177
- data/lib/octopress-genesis.rb +0 -27
- data/octopress-genesis.gemspec +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c24ab057d5e870e250f5db02d9912b47bc88d62
|
4
|
+
data.tar.gz: a2179152ee3d08bd1fa4817a3ad605a51c6f62c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe10e81531edfde37e0ecccb4bd7ad81acccb0d3d622cdb4d794c97d6aff5eaad1d7f3df528284bcb384014b76a6d782e49ea603d024f541327335f949ec72cd
|
7
|
+
data.tar.gz: 5ba1911ad2b3213919f23af2e4129b4443287467adf8f5c4607bd3522fa959eaa53741c21e00a120f51963eb7a820759b9cd3778fade1c677fdcb775391e3873
|
data/README.md
CHANGED
@@ -6,19 +6,21 @@ Note: This theme is in alpha development. What's left to do? See [the issues](ht
|
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
|
-
|
9
|
+
If you're using bundler add this gem to your site's Gemfile in the `:jekyll_plugins` group:
|
10
10
|
|
11
|
-
|
11
|
+
group :jekyll_plugins do
|
12
|
+
gem 'octopress-genesis-theme'
|
13
|
+
end
|
12
14
|
|
13
|
-
|
15
|
+
Then install the gem with Bundler
|
14
16
|
|
15
17
|
$ bundle
|
16
18
|
|
17
|
-
|
19
|
+
To install manually without bundler:
|
18
20
|
|
19
21
|
$ gem install octopress-genesis-theme
|
20
22
|
|
21
|
-
|
23
|
+
Then add the gem to your Jekyll configuration.
|
22
24
|
|
23
25
|
gems:
|
24
26
|
- octopress-genesis-theme
|
@@ -39,9 +41,8 @@ the defaults.
|
|
39
41
|
|
40
42
|
```yaml
|
41
43
|
# Settings for main header
|
42
|
-
|
43
|
-
|
44
|
-
subtitle: A clever subtitle (optional)
|
44
|
+
title: My Octopress Blog
|
45
|
+
subtitle: A clever subtitle (optional)
|
45
46
|
|
46
47
|
# Links for main navigation
|
47
48
|
nav:
|
@@ -49,18 +50,13 @@ nav:
|
|
49
50
|
- { url: '/archive', title: 'Archive' }
|
50
51
|
- { url: '/feed', title: 'RSS' }
|
51
52
|
|
52
|
-
# Settings for category index generator
|
53
|
-
category:
|
54
|
-
prefix: Category
|
55
|
-
url: category
|
56
|
-
|
57
53
|
post_index:
|
58
54
|
excerpt_posts: true
|
59
55
|
permalink_label: "Permalink"
|
60
56
|
read_more_label: "Continue Reading →"
|
61
57
|
|
62
58
|
# Center the text in post and page headings.
|
63
|
-
|
59
|
+
center_headings: true
|
64
60
|
```
|
65
61
|
|
66
62
|
You can also easily overwrite stylesheets, layouts, partials and basically everything about
|
data/assets/config.yml
CHANGED
@@ -1,40 +1,18 @@
|
|
1
1
|
# Settings for main header
|
2
|
-
|
3
|
-
|
4
|
-
subtitle:
|
2
|
+
title: My Octopress Blog
|
3
|
+
subtitle:
|
5
4
|
|
6
5
|
# Links for main navigation
|
7
6
|
nav:
|
8
|
-
- { url: '/', title: '
|
7
|
+
- { url: '/', title: 'Posts' }
|
9
8
|
- { url: '/archive/', title: 'Archive' }
|
10
|
-
- { url: '/feed/', title: '
|
11
|
-
|
12
|
-
# Settings for category generator
|
13
|
-
category:
|
14
|
-
title: Category
|
15
|
-
dir: 'categories'
|
16
|
-
feeds: false
|
17
|
-
|
18
|
-
# The base url for categories
|
19
|
-
# An empty string means categories will live at the root directory.
|
20
|
-
|
21
|
-
# To add per category feeds, use an array of category names you want feeds for.
|
22
|
-
# for example:
|
23
|
-
# feeds:
|
24
|
-
# - news
|
25
|
-
# - programming
|
9
|
+
- { url: '/feed/', title: 'Subscribe' }
|
26
10
|
|
27
11
|
post_index:
|
28
|
-
excerpt_articles:
|
12
|
+
excerpt_articles: false
|
29
13
|
permalink_label: "Permalink"
|
30
14
|
read_more_label: "Continue Reading →"
|
31
15
|
|
32
|
-
feeds:
|
33
|
-
count: 10
|
34
|
-
main_feed: true
|
35
|
-
linkpost_feed: true
|
36
|
-
article_feed: true
|
37
|
-
excerpt_articles: false
|
38
|
-
|
39
|
-
center_headings: true
|
40
16
|
search: google
|
17
|
+
|
18
|
+
center_headings: false
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<article class="archive {{ post.class }}" role="article">
|
2
2
|
<header class="archive-entry-header">
|
3
|
-
<
|
3
|
+
<h2 class="archive-entry-title">{{ post.title_link }}</h2>
|
4
4
|
<div class="archive-entry-date">{{ post.date_html }}</div>
|
5
5
|
</header>
|
6
6
|
|
@@ -10,9 +10,8 @@
|
|
10
10
|
<p>
|
11
11
|
{% filter join_lines:bullet | compact_newlines %}
|
12
12
|
{{ post.permalink }}
|
13
|
-
{%
|
14
|
-
|
15
|
-
{% endif %}
|
13
|
+
{%_ categories post %}
|
14
|
+
{%_ tags post %}
|
16
15
|
{% endfilter %}
|
17
16
|
</p>
|
18
17
|
</footer>
|
@@ -1,12 +1,10 @@
|
|
1
|
-
{% assign post_content = (theme.
|
2
|
-
{% assign
|
3
|
-
{% assign classnames = post.class | join: " " | classify if post.class %}
|
4
|
-
{% assign classnames += " excerpt" if excerpted %}
|
5
|
-
{% assign permalink_label = (excerpted ? theme.post-index.read_more_label : theme.post-index.permalink-label) %}
|
1
|
+
{% assign post_content = (theme.excerpt_articles ? post.excerpt : post.content) %}
|
2
|
+
{% assign permalink_label = (post.excerpted ? theme.post_index.read_more_label : theme.post_index.permalink_label) %}
|
6
3
|
|
7
|
-
<article class="entry {
|
4
|
+
<article class="entry {% return 'excerpted' if excerpted %}" role="article">
|
8
5
|
<header class="entry-header">
|
9
6
|
<h1 class="entry-title">{{ post.title_link }}</h1>
|
7
|
+
{% if post.subtitle %}<h2 class="entry-subtitle">{{ post.subtitle }}</h2>{% endif %}
|
10
8
|
<div class="entry-meta">{{ post.date_html }}</div>
|
11
9
|
</header>
|
12
10
|
|
@@ -14,5 +12,7 @@
|
|
14
12
|
|
15
13
|
<footer class='entry-footer'>
|
16
14
|
<a class='permalink' rel="full-article" href="{{ post.url }}">{{ permalink_label }}</a>
|
15
|
+
{%_ categories post %}
|
16
|
+
{%_ tags post %}
|
17
17
|
</footer>
|
18
18
|
</article>
|
@@ -1,16 +1,16 @@
|
|
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.title_text}}">
|
4
|
+
<a class="previous-post" href="{{ page.previous.url }}" title="Previous Article: {{ page.previous.title_text }}">
|
5
5
|
<div class='previous-post-marker'><span class='previous-post-arrow'>←</span> Previous Article</div>
|
6
|
-
<h6 class='previous-post-title'>{{page.previous.title_html}}</h6>
|
6
|
+
<h6 class='previous-post-title'>{{ page.previous.title_html }}</h6>
|
7
7
|
<div class="previous-post-date">{{ page.previous.date_html }}</div>
|
8
8
|
</a>
|
9
9
|
{% endif %}
|
10
10
|
{% if page.next.url %}
|
11
|
-
<a class="next-post" href="{{page.next.url}}" title="Next Article: {{page.next.title_text}}">
|
11
|
+
<a class="next-post" href="{{ page.next.url }}" title="Next Article: {{ page.next.title_text }}">
|
12
12
|
<div class='next-post-marker'>Next Article <span class='next-post-arrow'>→</span></div>
|
13
|
-
<h6 class='next-post-title'>{{page.next.title_html}}</h6>
|
13
|
+
<h6 class='next-post-title'>{{ page.next.title_html }}</h6>
|
14
14
|
<div class="next-post-date">{{ page.next.date_html }}</div>
|
15
15
|
</a>
|
16
16
|
{% endif %}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
<form class='site-search' action="https://google.com/search" method="get">
|
2
|
-
<input type="hidden" name="
|
2
|
+
<input type="hidden" name="sitesearch" value="{{ site.url | strip_url_protocol }}">
|
3
3
|
<input class="search-input" type="text" name="q" results="0" placeholder="Search…" accesskey="/">
|
4
4
|
</form>
|
@@ -1,4 +1,4 @@
|
|
1
1
|
<header role="banner" class="site-header">
|
2
|
-
<h1 class="site-title"><a class="site-title-link" href="{% return site.root || '/' %}">{{ theme.
|
3
|
-
{% if theme.
|
2
|
+
<h1 class="site-title"><a class="site-title-link" href="{% return site.root || '/' %}">{{ theme.title }}</a></h1>
|
3
|
+
{% if theme.subtitle %}<p class='site-subtitle'>{{ theme.subtitle }}</p>{% endif %}
|
4
4
|
</header>
|
data/assets/layouts/base.html
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
|
-
<html lang="{% return page.lang || site.lang || 'en' %}">
|
2
|
+
<html class="{{ page.class }}" lang="{% return page.lang || site.lang || 'en' %}" >
|
3
3
|
<head>
|
4
|
-
<title>{% return post.title_text || page.title %}</title>
|
5
4
|
{% include theme:head.html | expand_urls %}
|
6
5
|
</head>
|
7
6
|
<body>
|
data/assets/layouts/post.html
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
layout: theme:default
|
3
3
|
---
|
4
|
-
<article class="post entry {
|
4
|
+
<article class="post entry {% return 'graphic-title' if page.title-graphic %} {% return 'linkpost' if entry.linkpost %}" role="article">
|
5
5
|
{% if page.title-graphic %}
|
6
6
|
<header class="entry-header" style='background-image: url("{{ page.title-graphic }}")'>
|
7
7
|
{% else %}
|
@@ -9,7 +9,7 @@ layout: theme:default
|
|
9
9
|
{% endif %}
|
10
10
|
{% assign title = (page.linkpost ? page.title_link : page.title_html) %}
|
11
11
|
<h1 class="entry-title">{{ title }}</h1>
|
12
|
-
{% if page.subtitle %}<
|
12
|
+
{% if page.subtitle %}<h2 class="entry-subtitle">{{ page.subtitle }}</h2>{% endif %}
|
13
13
|
<div class="entry-meta">{{ page.date_html }}</div>
|
14
14
|
<div class="entry-social header">{% include theme:social/post-header.html %}</div>
|
15
15
|
{% yield header %}
|
@@ -18,17 +18,17 @@ layout: theme:default
|
|
18
18
|
<div class="entry-content">{{ content }}</div>
|
19
19
|
|
20
20
|
<footer class='entry-footer' role='contentinfo'>
|
21
|
-
<
|
21
|
+
<div class="entry-meta">
|
22
22
|
{% yield footer %}
|
23
23
|
{% assign author = page.author || site.author %}
|
24
24
|
{% if author %}
|
25
|
-
<
|
25
|
+
<span class='author-credit'>Written by {{ author }}</span> —
|
26
26
|
{% endif %}
|
27
|
-
<
|
28
|
-
{% if page.categories %}
|
29
|
-
<
|
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
30
|
{% endif %}
|
31
|
-
</
|
31
|
+
</div>
|
32
32
|
<div class="entry-social footer">{% include theme:social/post-footer.html %}</div>
|
33
33
|
</footer>
|
34
34
|
</article>
|
@@ -1,8 +1,16 @@
|
|
1
1
|
.entry {
|
2
|
-
margin: { top:
|
2
|
+
margin: { top: 4rem; bottom: 4rem; }
|
3
3
|
+ .entry {
|
4
|
-
|
5
|
-
|
4
|
+
padding-top: 2rem;
|
5
|
+
&:before {
|
6
|
+
content: "";
|
7
|
+
display: block;
|
8
|
+
max-width: $main-content-max - ($content-pad * 2);
|
9
|
+
border-top: 1px solid $page-border;
|
10
|
+
margin: 0 auto;
|
11
|
+
position: relative;
|
12
|
+
top: -2rem;
|
13
|
+
}
|
6
14
|
}
|
7
15
|
}
|
8
16
|
|
@@ -63,23 +71,24 @@
|
|
63
71
|
padding: { top: 10%; bottom: 10%; }
|
64
72
|
}
|
65
73
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
74
|
+
}
|
75
|
+
|
76
|
+
.light-title {
|
77
|
+
.entry-header, .entry-header .entry-meta {
|
78
|
+
color: #fff;
|
79
|
+
text-shadow: rgba(#000, .5) 0 1px 1px;
|
80
|
+
}
|
81
|
+
.entry-header {
|
82
|
+
position: relative;
|
83
|
+
&:after {
|
84
|
+
content: "";
|
85
|
+
position: absolute;
|
86
|
+
z-index: 0;
|
87
|
+
left: 0;
|
88
|
+
top: 0;
|
89
|
+
bottom: 0;
|
90
|
+
right: 0;
|
91
|
+
background: rgba(#000, .08);
|
83
92
|
}
|
84
93
|
}
|
85
94
|
}
|
@@ -1,9 +1,8 @@
|
|
1
1
|
---
|
2
2
|
title: Archive
|
3
3
|
layout: theme:default
|
4
|
-
permalink: /archive/
|
5
4
|
---
|
6
|
-
<div class="post-archive">
|
5
|
+
<div class="post-archive limit-width">
|
7
6
|
{% for post in site.posts reverse %}
|
8
7
|
{% assign post_year = post.date | date: "%Y" %}
|
9
8
|
{% if post_year != current_year %}
|
@@ -16,7 +15,3 @@ permalink: /archive/
|
|
16
15
|
{% endfor %}
|
17
16
|
</div>
|
18
17
|
</div>
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'octopress-ink'
|
2
|
+
require 'octopress-linkblog'
|
3
|
+
require 'octopress-autoprefixer'
|
4
|
+
require 'octopress-date-format'
|
5
|
+
require 'octopress-comment-tag'
|
6
|
+
require 'octopress-wrap-tag'
|
7
|
+
require 'octopress-assign-tag'
|
8
|
+
require 'octopress-return-tag'
|
9
|
+
require 'octopress-include-tag'
|
10
|
+
require 'octopress-content-for'
|
11
|
+
require 'octopress-filter-tag'
|
12
|
+
require 'octopress-paginate'
|
13
|
+
|
14
|
+
require 'octopress-genesis-theme/version'
|
15
|
+
|
16
|
+
Octopress::Ink.add_theme({
|
17
|
+
name: "Octopress Genesis Theme",
|
18
|
+
gem: "octopress-genesis-theme",
|
19
|
+
path: File.expand_path(File.join(File.dirname(__FILE__), "../")),
|
20
|
+
version: Octopress::Genesis::VERSION,
|
21
|
+
source_url: "https://github.com/octopress/genesis-theme",
|
22
|
+
description: "A minimalist theme for Jekyll sites build on Octopress Ink"
|
23
|
+
})
|