Add option to enable typography on individual pages
This commit is contained in:
parent
c0f206db18
commit
d32b60e750
1 changed files with 6 additions and 0 deletions
6
Rules
6
Rules
|
@ -146,6 +146,12 @@ end
|
||||||
compile '/**/*.erb' do
|
compile '/**/*.erb' do
|
||||||
filter :erb
|
filter :erb
|
||||||
|
|
||||||
|
# Apply typographic improvements if required by the page. Use this on text-heavy pages,
|
||||||
|
# such has the history page.
|
||||||
|
if @item[:typography]
|
||||||
|
filter :typogruby
|
||||||
|
end
|
||||||
|
|
||||||
layout '/generic.*'
|
layout '/generic.*'
|
||||||
layout '/default.*'
|
layout '/default.*'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue