Comments (5)
I wish that were possible, unfortunately the way Jekyll generators work, Haml parsing can only occur on pages. I too would prefer to use Haml (for most everything) but currently this isn't possible without forking Jekyll. A much earlier version of Octopress used a Jekyll fork for Haml support, but it became stale, and I realized that being on core Jekyll offered too many advantages compared to forking it. I feel your pain and I hope that someday we'll be able to use Haml with Jekyll for much more, for now unfortunately it only seems to work with pages.
from octopress.
thank you for your honest answer!
from octopress.
How come it's not possible to render haml based layout with jekyll? Did you see this: http://basbossink.github.com/2011-01-16/blog-setup/
from octopress.
@fgro Jekyll doesn't support Haml for layouts. I don't know the reasoning behind that though.
from octopress.
One could easily include samvincent/jekyll-haml and instead of {% include includefile.html %} just use the diff. filter: {% haml includefile.haml %}...
To do this:
Gemfile: add `gem 'jekyll-haml'
plugins/haml.rb: add
require "rubygems"
require "bundler/setup"
Bundler.require(:default)
And for the bottom of this file, change the convert engine to global scope:
# engine = Haml::Engine.new(content)
engine = ::Haml::Engine.new(content)
done.
from octopress.
Related Issues (20)
- Octopress start page is index of this CMS - what I have done wrong
- v3?
- cant jeklly my hyde
- Integrating twitter bootstrap.
- collection.rb: in `sanitize_label': undefined method `gsub' (NoMethodError)
- my github master branch no code when I run the following code
- How to disable category feed generation? HOT 1
- excerpt_separator presents in config but doesn't used in plugins/octopress_filters.rb
- build error while trying to use octopress in windows 8 HOT 1
- rake generate not working
- How to make a post placed at the top
- Except the markdown editor Windows platforms which other useful blog editor
- Issues Jekyll pulling Google Analytics ID (and other variables) from _config.yml. HOT 1
- Octopress 3 Themes: Options? HOT 14
- Where's the documentation for Octopress 3? HOT 2
- Odd Behavior On "Landing" Page HOT 4
- Can't install on windows HOT 1
- icfjirt HOT 1
- rudy_dev on Debian 9
- Trying to port classic theme to Jekyll
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octopress.