Repository navigation
Pholio 0.2.0
Added
-
Design tokens and your own CSS.
theme.tokenssets fonts, radii and any
other custom property of the theme for both color schemes, and
theme.custom_cssappends a stylesheet after the theme, for rules such as
@font-face. A site can take on its brand's typography and shapes without
touching the theme. -
Preloading.
head.preloadfetches files such as web fonts before the
stylesheet asks for them, so text doesn't shift when they arrive. -
Code themes of your own.
theme.code.lightandtheme.code.darkchoose
the highlighting themes: a bundled one by name, or a TextMate theme file of
the site, for example a monochrome scheme. -
Markdown code blocks.
markdown(aliasmd) is a bundled language, so a
page can show Markdown and component examples highlighted. Fenced code inside
them is highlighted in its own language. -
Link checks. After the pages are written, every link and image in the
prose and on the start page is checked against the finished site: absolute
and relative paths, fragments against the element ids of the target page, and
absolute links tosite.url. Every broken one is listed with file and line,
and the build exits with code 3.--onlybuilds skip the check, and so does
build --no-link-check, meant for test builds whose content is moved below
another base path.
Changed
- The sidebar ends in a hairline. On wide screens the sidebar is closed off
from the page by a 1 px border in the header's colour, from the header to the
bottom of the window. It no longer draws a scrollbar of its own, which used to
appear over that edge; it still scrolls by wheel, trackpad and keyboard. The
drawer on narrow screens keeps its scrollbar.
Fixed
- The table of contents and
InlineTOClink the generated footnotes heading to
its idfootnote-labelinstead of#footnotesor#footnotes-1, which no
element had.