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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -14
  3. data/assets/config.yml +7 -29
  4. data/assets/includes/archive-post.html +3 -4
  5. data/assets/includes/index-post.html +6 -6
  6. data/assets/includes/post-nav.html +4 -4
  7. data/assets/includes/search/google.html +1 -1
  8. data/assets/includes/site-header.html +2 -2
  9. data/assets/layouts/base.html +1 -2
  10. data/assets/layouts/post.html +8 -8
  11. data/assets/stylesheets/_entry.scss +29 -20
  12. data/assets/stylesheets/_layout.scss +2 -1
  13. data/assets/stylesheets/_sizes.scss +1 -1
  14. data/assets/stylesheets/_typography.scss +1 -6
  15. data/assets/stylesheets/index.scss +3 -1
  16. data/assets/{pages/archive.html → templates/post_archive.html} +1 -6
  17. data/assets/templates/post_index.html +9 -0
  18. data/lib/{octopress-genesis → octopress-genesis-theme}/version.rb +1 -1
  19. data/lib/octopress-genesis-theme.rb +23 -0
  20. metadata +64 -75
  21. data/.gitignore +0 -25
  22. data/Gemfile +0 -4
  23. data/LICENSE.txt +0 -22
  24. data/Rakefile +0 -2
  25. data/assets/includes/feed/entry.xml +0 -30
  26. data/assets/includes/feed/head.xml +0 -9
  27. data/assets/pages/feed-articles.xml +0 -14
  28. data/assets/pages/feed-links.xml +0 -14
  29. data/assets/pages/feed.xml +0 -12
  30. data/assets/pages/index.html +0 -11
  31. data/demo/Gemfile +0 -5
  32. data/demo/_config.yml +0 -7
  33. data/demo/_plugins/theme/config.yml +0 -0
  34. data/demo/_plugins/theme/stylesheets/_colors.scss +0 -16
  35. data/demo/_plugins/theme/stylesheets/_entry.scss +0 -85
  36. data/demo/_plugins/theme/stylesheets/_header.scss +0 -51
  37. data/demo/_plugins/theme/stylesheets/_post-nav.scss +0 -38
  38. data/demo/_plugins/theme/stylesheets/_sizes.scss +0 -17
  39. data/demo/_plugins/theme/stylesheets/_typography.scss +0 -91
  40. data/demo/_plugins/theme/stylesheets/index.scss +0 -16
  41. data/demo/_posts/2014-08-03-dang-that-was-fast.md +0 -18
  42. data/demo/_posts/2014-08-03-hi-guys.markdown +0 -8
  43. data/demo/images/panorama.jpg +0 -0
  44. data/demo/page.html +0 -175
  45. data/lib/octopress-genesis/category-generator.rb +0 -177
  46. data/lib/octopress-genesis.rb +0 -27
  47. data/octopress-genesis.gemspec +0 -38
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32d5f7e9176584bfaa80812d9fb84ad4bb6be3dc
4
- data.tar.gz: cb5829a501b655dac1f4a24c4039b91111100192
3
+ metadata.gz: 6c24ab057d5e870e250f5db02d9912b47bc88d62
4
+ data.tar.gz: a2179152ee3d08bd1fa4817a3ad605a51c6f62c2
5
5
  SHA512:
6
- metadata.gz: f519acee6b7401d5feaacbabe2dfe4c2a863b3362db2c7e9ca944d4b4a5de5ae14a3442807d3e9db9fd814f039c6979ca1a25ac717de8dd5ef41de7b18e91a52
7
- data.tar.gz: da333c5ad070fb023d6be6472198bbcfd2198040e1571ca25ec8d84e38367db51587c7e013e0249472ac4407fa0e518e361c0e20e3b0ef30deeed75e407a6087
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
- Add this line to your application's Gemfile:
9
+ If you're using bundler add this gem to your site's Gemfile in the `:jekyll_plugins` group:
10
10
 
11
- gem 'octopress-genesis-theme'
11
+ group :jekyll_plugins do
12
+ gem 'octopress-genesis-theme'
13
+ end
12
14
 
13
- And then execute:
15
+ Then install the gem with Bundler
14
16
 
15
17
  $ bundle
16
18
 
17
- Or install it yourself as:
19
+ To install manually without bundler:
18
20
 
19
21
  $ gem install octopress-genesis-theme
20
22
 
21
- Next add it to your gems list in Jekyll's `_config.yml`
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
- header:
43
- title: My Octopress Blog
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
- center-headings: true
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
- header:
3
- title: My Octopress Blog
4
- subtitle:
2
+ title: My Octopress Blog
3
+ subtitle:
5
4
 
6
5
  # Links for main navigation
7
6
  nav:
8
- - { url: '/', title: 'Home' }
7
+ - { url: '/', title: 'Posts' }
9
8
  - { url: '/archive/', title: 'Archive' }
10
- - { url: '/feed/', title: 'RSS' }
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: true
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
- <h1 class="archive-entry-title">{{ post.title_link }}</h1>
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
- {% if categories and categories != '' %}
14
- <span class="article-categories">posted in {{ categories }}</span>
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.post-index.excerpt-articles ? post.excerpt : post.content) %}
2
- {% assign excerpted = true if post_content != post.content %}
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 {{ classnames }}" role="article">
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'>&larr;</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'>&rarr;</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="q" value="site:{{ site.url | strip_url_protocol }}">
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&hellip;" 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.header.title}}</a></h1>
3
- {% if theme.header.subtitle %}<p class='site-subtitle'>{{ theme.header.subtitle }}</p>{% endif %}
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>
@@ -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>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: theme:default
3
3
  ---
4
- <article class="post entry {{ page.class }} {% return 'graphic-title' if page.title-graphic %} {% return 'linkpost' if entry.linkpost %}" role="article">
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 %}<p class="entry-subtitle">{{ page.subtitle }}</p>{% endif %}
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
- <p class="entry-meta">
21
+ <div class="entry-meta">
22
22
  {% yield footer %}
23
23
  {% assign author = page.author || site.author %}
24
24
  {% if author %}
25
- <div class='author-credit'>Written by: {{ author }}</div>
25
+ <span class='author-credit'>Written by {{ author }}</span> &mdash;
26
26
  {% endif %}
27
- <div class='posted-date'>Published: {{ page.date_time_html }}</div>
28
- {% if page.categories %}
29
- <div class="categories">Categories: {{ page.categories | category_links }}</div>
27
+ <span class='posted-date'>{{ page.date_time_html }}</span>
28
+ {% if page.categories.size > 0 %}
29
+ &mdash; <span class="categories">{{ page.categories | category_links }}</span>
30
30
  {% endif %}
31
- </p>
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: 4em; bottom: 4em; }
2
+ margin: { top: 4rem; bottom: 4rem; }
3
3
  + .entry {
4
- border-top: 1px solid $page-border;
5
- padding-top: 2em;
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
- &.light-title {
67
- .entry-header, .entry-meta {
68
- color: #fff;
69
- text-shadow: rgba(#000, .5) 0 1px 1px;
70
- }
71
- .entry-header {
72
- position: relative;
73
- &:after {
74
- content: "";
75
- position: absolute;
76
- z-index: 0;
77
- left: 0;
78
- top: 0;
79
- bottom: 0;
80
- right: 0;
81
- background: rgba(#000, .08);
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
  }
@@ -56,11 +56,12 @@ html, body, .site {
56
56
  }
57
57
  }
58
58
 
59
+ .limit-width,
59
60
  .entry-title,
60
- .entry-meta,
61
61
  .entry-subtitle,
62
62
  .entry-social,
63
63
  .entry-content,
64
+ header .entry-meta,
64
65
  .post-nav,
65
66
  .entry-footer {
66
67
  max-width: $main-content-max;
@@ -8,7 +8,7 @@ $max: 1080px;
8
8
 
9
9
  // Item widths
10
10
  $main-sidebar-width: 300px;
11
- $main-content-max: 900px;
11
+ $main-content-max: 800px;
12
12
  $content-pad: 20px;
13
13
 
14
14
  $h-pad-box: 5%, 40px;
@@ -80,11 +80,6 @@ blockquote {
80
80
  hr {
81
81
  border: none;
82
82
  background: none;
83
- width: 100%;
83
+ margin: 2.65rem auto;
84
84
  border-bottom: 1px solid $page-border;
85
- &.dark {
86
- border-bottom: 1px solid $gray;
87
- }
88
- &.thick {
89
- }
90
85
  }
@@ -1,6 +1,8 @@
1
+ ---
2
+ ---
1
3
  // Theme settings
2
4
 
3
- $center-headings: {{ theme.center-headings }};
5
+ $center-headings: {{ theme.center_headings }};
4
6
 
5
7
  // Stylesheets
6
8
  @import "colors";
@@ -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,9 @@
1
+ ---
2
+ layout: theme:default
3
+ paginate: true
4
+ ---
5
+ <div class="post-index">
6
+ {% for post in paginator.posts %}
7
+ {% include theme:index-post.html %}
8
+ {% endfor %}
9
+ </div>
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Genesis
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
@@ -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
+ })