Re: Custom style on title/heading element?

Posted by mojavelinux on
URL: https://discuss.asciidoctor.org/Solved-Custom-style-on-title-heading-element-tp4543p4563.html

I've updated the sample project I created for using AsciiDoc with Middleman that includes the correct configuration. You can study it to see what is missing. That project works for me.

https://github.com/opendevise/middleman-asciidoc-example

Note that I put templates in:

source/_templates

And I configured AsciiDoc as follows:

set :asciidoc, {
  safe: :safe,
  template_dir: 'source/_templates',
  attributes: %W(showtitle env=middleman env-middleman middleman-version=#{Middleman::VERSION})
}
set :asciidoc_attributes, %w(icons=font source-highlighter=coderay coderay-css=style)

-Dan

On Tue, Mar 29, 2016 at 2:54 PM, thoraxe [via Asciidoctor :: Discussion] <[hidden email]> wrote:
No change. None of the following work:

set :asciidoc, {
  safe: :safe,
  template_dir: 'templates',
  attributes: %W(showtitle env=middleman env-middleman middleman-version=#{Middleman::VERSION})
}

set :asciidoc, {
  safe: :safe,
  templates_dir: 'templates',
  attributes: %W(showtitle env=middleman env-middleman middleman-version=#{Middleman::VERSION})
}

Nor does the old syntax:

set :asciidoc_attributes, %w(source-highlighter=coderay coderay-css=style template_dir=templates)

:(


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Custom-style-on-title-heading-element-tp4543p4560.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen