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.
main
Edward Loveall 2021-08-15 15:01:18 -04:00
rodzic 05c18f6451
commit 6baba80309
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 789A4AE983AC8901
1 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -2,6 +2,14 @@ class Articles::ShowPage < MainLayout
needs page : Page
def content
mount PageContent, page: page
h1 page.title
if subtitle = page.subtitle
para subtitle, class: "subtitle"
end
article do
section do
mount PageContent, page: page
end
end
end
end