Display title and subtitle
Also wrap the content in an article for semantic formatting tufte.css requires that content is wrapped in an <article> and at least one <section>. There's no way of determining new semantic sections so there is only one.
This commit is contained in:
parent
05c18f6451
commit
6baba80309
1 changed files with 9 additions and 1 deletions
|
@ -2,6 +2,14 @@ class Articles::ShowPage < MainLayout
|
||||||
needs page : Page
|
needs page : Page
|
||||||
|
|
||||||
def content
|
def content
|
||||||
|
h1 page.title
|
||||||
|
if subtitle = page.subtitle
|
||||||
|
para subtitle, class: "subtitle"
|
||||||
|
end
|
||||||
|
article do
|
||||||
|
section do
|
||||||
mount PageContent, page: page
|
mount PageContent, page: page
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue