Re: Custom style on title/heading element?
Posted by
thoraxe on
URL: https://discuss.asciidoctor.org/Solved-Custom-style-on-title-heading-element-tp4543p4553.html
Thanks!
Still having a little trouble here.
https://gist.github.com/thoraxe/4f2faf61b0a20f983de01efae16d85bdIt doesn't appear that the template is being used/rendered. I don't see "foo" anywhere.
Here's the current middleman config stuff:
:asciidoc = {:safe=>:safe,
:template_dir=>"/templates",
:attributes=>
["showtitle",
"env=middleman",
"env-middleman",
"middleman-version=3.4.1",
"imagesdir=/img"],
:base_dir=>"/home/thoraxe/Red_Hat/openshift/discoverycenter/source"}(Default: {:safe=>:safe, :backend=>:html5, :attributes=>["env=middleman", "env-middleman", "middleman-version=3.4.1"]})
Directory structure:
find source/templates/
source/templates/
source/templates/helpers.rb
source/templates/.section.html.haml.swp
source/templates/section.html.haml
I also tried it the way I had poked around:
set :asciidoc_attributes, %w(source-highlighter=coderay coderay-css=style template_dir=/templates)
This also does not work :(
I even tried using pry as documented here:
https://github.com/asciidoctor/asciidoctor-reveal.js/blob/master/HACKING.adoc#interactively-debug-a-templateBut I never get INTO pry, which means the template file is definitely not being evaluated/loaded.