octopress / genesis-theme Goto Github PK
View Code? Open in Web Editor NEWA Jekyll theme build on Octopress Ink
License: MIT License
A Jekyll theme build on Octopress Ink
License: MIT License
I'm trying to add the theme to a Jekyll project, but I get the following error. Anyone knows what's causing this?
Configuration file: /home/ubuntu/workspace/_config.yml
/usr/local/rvm/gems/ruby-2.1.1@rails4/gems/jekyll-2.4.0/lib/jekyll/plugin_manager.rb:28:in `require': cannot load such file -- octopress-genesis-theme (LoadError)
from /usr/local/rvm/gems/ruby-2.1.1@rails4/gems/jekyll-2.4.0/lib/jekyll/plugin_manager.rb:28:in `block in require_gems'
from /usr/local/rvm/gems/ruby-2.1.1@rails4/gems/jekyll-2.4.0/lib/jekyll/plugin_manager.rb:26:in `each'
from /usr/local/rvm/gems/ruby-2.1.1@rails4/gems/jekyll-2.4.0/lib/jekyll/plugin_manager.rb:26:in `require_gems'
from /usr/local/rvm/gems/ruby-2.1.1@rails4/gems/jekyll-2.4.0/lib/jekyll/plugin_manager.rb:19:in `conscientious_require'
from /usr/local/rvm/gems/ruby-2.1.1@rails4/gems/jekyll-2.4.0/lib/jekyll/site.rb:74:in `setup'
from /usr/local/rvm/gems/ruby-2.1.1@rails4/gems/jekyll-2.4.0/lib/jekyll/site.rb:36:in `initialize'
from /usr/local/rvm/gems/ruby-2.1.1@rails4/gems/jekyll-2.4.0/lib/jekyll/commands/build.rb:28:in `new'
from /usr/local/rvm/gems/ruby-2.1.1@rails4/gems/jekyll-2.4.0/lib/jekyll/commands/build.rb:28:in `process'
from /usr/local/rvm/gems/ruby-2.1.1@rails4/gems/jekyll-2.4.0/lib/jekyll/commands/build.rb:17:in `block (2 levels) in init_with_program'
from /usr/local/rvm/gems/ruby-2.1.1@rails4/gems/mercenary-0.3.4/lib/mercenary/command.rb:220:in `call'
from /usr/local/rvm/gems/ruby-2.1.1@rails4/gems/mercenary-0.3.4/lib/mercenary/command.rb:220:in `block in execute'
from /usr/local/rvm/gems/ruby-2.1.1@rails4/gems/mercenary-0.3.4/lib/mercenary/command.rb:220:in `each'
from /usr/local/rvm/gems/ruby-2.1.1@rails4/gems/mercenary-0.3.4/lib/mercenary/command.rb:220:in `execute'
from /usr/local/rvm/gems/ruby-2.1.1@rails4/gems/mercenary-0.3.4/lib/mercenary/program.rb:35:in `go'
from /usr/local/rvm/gems/ruby-2.1.1@rails4/gems/mercenary-0.3.4/lib/mercenary.rb:22:in `program'
from /usr/local/rvm/gems/ruby-2.1.1@rails4/gems/jekyll-2.4.0/bin/jekyll:18:in `<top (required)>'
from /usr/local/rvm/gems/ruby-2.1.1@rails4/bin/jekyll:23:in `load'
from /usr/local/rvm/gems/ruby-2.1.1@rails4/bin/jekyll:23:in `<main>'
from /usr/local/rvm/gems/ruby-2.1.1@rails4/bin/ruby_executable_hooks:15:in `eval'
from /usr/local/rvm/gems/ruby-2.1.1@rails4/bin/ruby_executable_hooks:15:in `<main>'
#1. Error like this,
$ jekyll build
Configuration file: /Users/seraph/code/ruby-space/blog/_config.yml
Source: /Users/seraph/code/ruby-space/blog
Destination: /Users/seraph/code/ruby-space/blog/_site
Generating...
jekyll 2.5.3 | Error: undefined method 'docs' for [<Post: /2016/12/15/my-title>]:Array
2. Gemfile
source 'https://ruby.taobao.org/'
gem 'octopress', '~> 3.0.4'
group :jekyll_plugins do
gem 'octopress-genesis-theme'
end
3. _config.yml
post_ext: markdown
page_ext: html
post_layout: theme:post
page_layout: theme:page
titlecase: true
post_template: post
page_template: page
draft_template: draft
I'm trying to bundle the following Gemfile
:
gem 'jekyll'
group :jekyll_plugins do
gem 'octopress', '~> 3.0'
gem 'octopress-genesis-theme'
end
Should the <title>
tag be in includes/head.html
?
If you set center_headings
to false
in the config, the centers are left aligned (correct) but the meta data (posted date) remains centered.
Proposed solution (I'll add a PR later):
.entry-meta
should be centered only if .entry-title
is.
When using octopress-codefence, octopress-codeblock, plain old Jekyll {% hightlight %} tags, etc. with the theme, the code gets the appropriate HTML tags and CSS classes, but no CSS gets included to style it.
If I switch from "layout: theme:post" to "layout: default", the syntax highlighting comes back. I will grant that I might be doing something wrong, but if that's the case then my failure could hopefully inform documentation needs.
when I add the gem to my Jekyll configuration,and running jekyll build
the console show errror: Configuration file: /Users/tianliwei/blog/_config.yml jekyll 2.5.3 | Error: undefined method
each' for "-octopress-genesis-theme":String`
Hi,
On Windows, I got the following error when executing jekyll build
:
Liquid Exception: incompatible character encodings: CP850 and UTF-8 in feed-articles.xml
It works if I execute chcp 65001
before, as mentionned in http://jekyll-windows.juthilo.com/5-running-jekyll/
With Octopress 2, the command was automatically executed on Windows when doing rake generate
:
C:\Users\TiTi\Desktop\octo2>rake generate
## Set the codepage to 65001 for Windows machines
## Generating Site with Jekyll
write source/stylesheets/screen.css
Configuration file: C:/Users/TiTi/Desktop/octopress/_config.yml
Source: source
Destination: public
Generating...
done.
Auto-regeneration: disabled. Use --watch to enable.
C:\Users\TiTi\Desktop\octo2>
Could it be possible to also execute this command with Octopress 3, when using jekyll build
?
I suppose this is more a Jekyll issue, but it could be nice to have that included rather than using a .bat to build the site...
Hi,
I'm trying to use the genesis-theme for Octopress 3.0 on windows, but it doesn't build out of the box because of a SASS / variable issue :
C:\Users\TiTi\Desktop\octo3>jekyll build
WARN: Unresolved specs during Gem::Specification.reset:
jekyll-watch (~> 1.1)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
Configuration file: C:/Users/TiTi/Desktop/octo4/_config.yml
Source: C:/Users/TiTi/Desktop/octo4
Destination: C:/Users/TiTi/Desktop/octo4/_site
Generating...
jekyll 2.5.3 | Error: Invalid CSS after "$center-headings: ": expected expression (e.g. 1px, bold), was ";"
C:\Users\TiTi\Desktop\octo3>
Note: I had to reference octopress-genesis
rather than octopress-genesis-theme
to bypass a first error, see #9 :
gems:
- octopress-genesis
I tried to octopress ink copy theme
and edit files to go further.
I've edited _plugins\theme\stylesheets\index.scss
to force :
$center-headings: true;
(despite the fact it is already setted to true in theme\config.yml)
And yep that's it, jekyll build
is now working correctly.
So I guess the variable {{ theme.center-headings }}
isn't available for some reason...
I created a new Jekyll site, added the gem to the config file and then set index.html to theme: theme:page
and ran jekyll s
, that works correctly. Then I updated the default post to theme: theme:post
and received the following error:
Liquid Exception: incompatible character encodings: UTF-8 and IBM437 in _layouts/default.html
jekyll 2.5.3 | Error: incompatible character encodings: UTF-8 and IBM437
I found this issue: imathis/octopress#413 and added the suggested encoding: UTF-8
to the _config.yml
but to no avail.
Opening up includes\post_meta.html
I see the encoding is UTF-8 w/o BOM
, saving the post file with that encoding then results in the following error:
Error: undefined method `titlecase!' for nil:NilClass
Error: Run jekyll build --trace for more information.
Any ideas how to get the posts to render with the theme?
This is on Windows 7x64
Bundle list:
λ bundle list
DL is deprecated, please use Fiddle
Gems included by the bundle:
* autoprefixer-rails (2.2.0.20140804)
* blankslate (2.1.2.4)
* bundler (1.9.9)
* celluloid (0.16.0)
* classifier-reborn (2.0.3)
* coffee-script (2.4.1)
* coffee-script-source (1.9.1.1)
* colorator (0.1)
* execjs (2.5.2)
* fast-stemmer (1.0.2)
* ffi (1.9.8)
* hitimes (1.2.2)
* jekyll (2.5.3)
* jekyll-coffeescript (1.0.1)
* jekyll-gist (1.2.1)
* jekyll-paginate (1.1.0)
* jekyll-sass-converter (1.3.0)
* jekyll-watch (1.2.1)
* json (1.8.2)
* kramdown (1.7.0)
* liquid (2.6.2)
* listen (2.10.0)
* mercenary (0.3.5)
* octopress (3.0.6)
* octopress-autoprefixer (1.0.1)
* octopress-date-format (3.0.3)
* octopress-deploy (1.2.4)
* octopress-escape-code (2.0.6)
* octopress-filters (1.3.3)
* octopress-hooks (2.6.1)
* octopress-include-tag (1.1.3)
* octopress-ink (1.1.4)
* octopress-solarized (1.1.2)
* octopress-tag-helpers (1.0.8)
* parslet (1.5.0)
* posix-spawn (0.3.11)
* pygments.rb (0.6.3)
* rb-fsevent (0.9.5)
* rb-inotify (0.9.5)
* redcarpet (3.2.3)
* rubypants-unicode (0.2.5)
* safe_yaml (1.0.4)
* sass (3.4.14)
* timers (4.0.1)
* titlecase (0.1.1)
* toml (0.1.2)
* uglifier (2.7.1)
* wdm (0.1.0)
* yajl-ruby (1.2.1)
Hi,
First off, thanks for a great project. Octopress really simplify deploying my Jekyll blogs.
I have a question on overriding/adding custom stylesheets to the genesis-theme. In the README
you mention that this is possible:
You can also easily overwrite stylesheets, layouts, partials and basically everything about this plugin by adding a copy of that file in the
_plugins/theme
directory. More on that later.
How does this work exactly?
I want to override index.scss
, and I tried to place my new file at _plugins/theme/index.scss
and _plugins/theme/assets/stylesheets/index.scss
but it does not seem to have any effect.
I've followed the installation instructions and I can apply the theme to archive page / pages / posts, but how do I apply it to the main index page ?
The main / archives page still shows the default jekyll style.
It seems the line
{% include theme:post_meta.html | join_lines %}
in layouts/post.html is causing problems. When I run 'jekyll server' I get the error 'Liquid Exception: no implicit conversion of String into Hash in _layouts/post.html'. If I remove the line everything works fine.
These are my gems:
Bundler could not find compatible versions for gem "octopress-date-format":
In Gemfile:
octopress-genesis-theme (>= 0) ruby depends on
octopress-date-format (~> 2.0) ruby
octopress-genesis-theme (>= 0) ruby depends on
octopress-ink (>= 0) ruby depends on
octopress-date-format (~> 3.0) ruby
An easy workaround to mitigate risks like this would be to remove the explicit dependency on octopress-date-format
, or widen the range of allowed values of course but that just risks semantic breakage down the road.
A more rigorous adherence to SemVer might help a bit, but I think at the end of the day the only real solution to this is to be very active in considering the impact of updating when you have lopsided loop dependencies like this.
Also, I'd love to try fixing and contributing but without some sort of toe-hold for onboarding with the new Octopress it's becoming a time-sink for me to even try. Do you have a scaffold Octopress 3.0.x project in a working state, using this theme, that I could perhaps try?
Thoughts?
Not exactly sure how to troubleshoot this, but it looks like my configuration for the genesis-theme
might not be set up right. Every page in my site is using the default jekyll theme jekyll-new except for the Archive page. Every page is including genesis-theme
header, just not the proper assets or layout. Also, the _plugins/theme/config.yml
title and subtitle are not being picked up.
I installed the genesis-theme gem after generating the jekyll site with octopress new
, which might have created this issue?
Using a brand new Octopress (with multilingual plugin; in case it impacts).
The layout and style of the theme works great, except when one browses to:
http://127.0.0.1:4000/archive/index.html
Where it renders old-school style; and also seems to ignore the settings of _config.yml
, as it shows:
My Octopress Blog
title in the headerCopyright © 2015 - Powered by Octopress
in the footerset_lang
.Is there an online demo of the theme or is the only way to preview the theme to install a Jekyll site locally and use the theme?
I used the templates/post_index.html
and added a cover_image
.
Because the cover_image is set on the entry-header
-class and the index_post.html
has a bunch of them, the same cover_image is used for every single entry.
In includes/base.html
there is the following line:
{% yield footer_scripts %}
I assume it waits for a content_for
block, where I could put a Google Analytics script for example. Where should I put it?
Hey guys,
I've tried to build blog here but while I hit bundle install
, I got error because of being mismatch between debugger
& ruby 2.1.x. Here's error output:
Using debugger-linecache 1.2.0
Using debugger-ruby_core_source 1.3.5
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/home/ekrem/.rbenv/versions/2.1.2/bin/ruby -r ./siteconf20140817-19412-xy89e6.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
While searching reasons for this error, I've faced this comment, from debugger
s owner. In short, he recommends us to choose either byebug
or debugger2
for debuggging in ruby 2.x
The documentation says: "Also you will be able to set theme configurations for each language. For example to configure theme settings for your German pages, you'd create a plugins/theme/config[lang].yml and add whatever settings you want to override."
I cannot reproduce this functionality even if the file "plugins/theme/config_de.yml" is loaded (jekyll breaks if file-format is wrong). On my testsystem I do this:
_config.yml:
my_var: "this is cool"
lang: de
gems:
- octopress-multilingual
- octopress-genesis-theme
plugins/theme/config_de.yml:
my_var: "dieses ist cool"
index.html:
---
layout: default
lang: de
---
{{ site.my_var }}
The output is always "this is cool". For "de" it should be "dieses ist cool". Any suggestions?
3.2.19 wasnt enough to render the files part of octopress/this theme. sass 3.4.13 on the other hand worked.
While using this theme, I've run into an error when running jekyll serve
:
jekyll serve
Configuration file: /Users/username/username.io/_config.yml
Source: /Users/username/username.io
Destination: public
Generating...
Error reading file /Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/layouts/base.html: No such file or directory @ rb_sysopen - /Users/username/username.io/Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/layouts/base.html
Error reading file /Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/layouts/category-feed.html: No such file or directory @ rb_sysopen - /Users/username/username.io/Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/layouts/category-feed.html
Error reading file /Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/layouts/category-index.html: No such file or directory @ rb_sysopen - /Users/username/username.io/Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/layouts/category-index.html
Error reading file /Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/layouts/default.html: No such file or directory @ rb_sysopen - /Users/username/username.io/Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/layouts/default.html
Error reading file /Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/layouts/page.html: No such file or directory @ rb_sysopen - /Users/username/username.io/Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/layouts/page.html
Error reading file /Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/layouts/paginated-posts.html: No such file or directory @ rb_sysopen - /Users/username/username.io/Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/layouts/paginated-posts.html
Error reading file /Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/layouts/post.html: No such file or directory @ rb_sysopen - /Users/username/username.io/Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/layouts/post.html
Error reading file /Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/pages/.DS_Store: No such file or directory @ rb_sysopen - /Users/username/username.io/Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/pages/.DS_Store
Error reading file /Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/pages/archive.html: No such file or directory @ rb_sysopen - /Users/username/username.io/Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/pages/archive.html
Error reading file /Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/pages/feed-articles.xml: No such file or directory @ rb_sysopen - /Users/username/username.io/Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/pages/feed-articles.xml
Error reading file /Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/pages/feed-links.xml: No such file or directory @ rb_sysopen - /Users/username/username.io/Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/pages/feed-links.xml
Error reading file /Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/pages/feed.xml: No such file or directory @ rb_sysopen - /Users/username/username.io/Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/pages/feed.xml
Error reading file /Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/pages/post-index.html: No such file or directory @ rb_sysopen - /Users/username/username.io/Users/username/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/bundler/gems/genesis-theme-ee69a01cea5d/assets/pages/post-index.html
jekyll 2.5.2 | Error: undefined method `encode!' for nil:NilClass
Not sure if this is an error from rbenv or octopress/octopress-ink. I receive similar results when using the gem octopress-feeds, which I think also requires octopress-ink.
The issue seems to be an error in referencing the files. i.e., /Users/username/username.io/ is prepended to the location of the gem.
NOTE: username.io is the site.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.