Skip to content

Conversation

@robbystk
Copy link
Contributor

@robbystk robbystk commented Jun 2, 2017

This adds a space to h1's to take the place of the nbsp's. This would normally affect the title, which is also in an h1, but the title is now derived from the title in the YAML header of the .md file and is in the header of the page instead of the body. The title of the web page (in the head) is now "<page title> --- The Tectonic Typesetting System" if page title is defined, or just "The Tectonic Typesetting System" otherwise. That is the only change to the look of the site, the layout is completely unchanged (though I only tested it in firefox).

robbystk added 3 commits June 2, 2017 15:24
Margin can be added to h1's instead of using nbsp's, but the title of
the page is also in an h1 and doesn't need such space.  A hacky solution
is to modify the layout to include the title in an h1 with a new class,
and add a css rule for that class to remove the extra space.  Then the
space can be added to all other h1's.  This means that the title heading
and nbsp's can be removed from the markdown files.

This does slightly break the title of the web page.  Before the page
titles were <page title> --- The Tectonic Project, but now they are just
<page title>.  Fixing this is the next step.
Margin & padding are 0.8em instead of 2em, because ems are bigger
because the font is bigger.  The spacing comes out to the same size.
@pkgw
Copy link
Contributor

pkgw commented Jun 3, 2017

Nice, thanks! The Installation page might be a bit of a special case so maybe we will end up not wanting this CSS behavior to be the general case, but we can always change things later if it becomes an issue.

@pkgw pkgw merged commit 6761ade into tectonic-typesetting:master Jun 3, 2017
@robbystk robbystk deleted the nbsps branch June 5, 2017 13:16
@robbystk
Copy link
Contributor Author

robbystk commented Jun 5, 2017

Yeah, I think just reverting the first commit will restore the h1 spacing. Thanks for the merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants