This updates the navigation (header and footer) in the WordPress Theme to match the main site and adds tools to make it easier to keep them in sync in future.
The user-visible changes are:
Update the navigation bar and footer to match the design on the new homepage
The font has been changed to Source Sans Pro everywhere for consistency with the new design
The shared theme is implemented as follows:
The templates and styles in the main repository have been split out into components
so that the header and footer can be re-used in the blog.
header.php and footer.php have been changed to be simple wrappers that include
footer.html and header.html which are compiled versions of the corresponding Jinja2
templates from the main repository.
Compiling the relevant assets from the main repository (templates, styles, scripts) is done using
the /assets/vendor/update-hypothesis-shared.py script. This takes a path to a checkout of
the H repo and compiles the relevant styles into an SCSS bundle, the templates are compiled
to plain HTML and the JS is Browserified into a small bundle.
/assets/manifest.json references the compiled bundles
Instructions for updating the theme to reflect any changes in hypothesis/h are in 'update-hypothesis-shared.py'.
This updates the navigation (header and footer) in the WordPress Theme to match the main site and adds tools to make it easier to keep them in sync in future.
The user-visible changes are:
The shared theme is implemented as follows:
header.php
andfooter.php
have been changed to be simple wrappers that includefooter.html
andheader.html
which are compiled versions of the corresponding Jinja2 templates from the main repository./assets/vendor/update-hypothesis-shared.py
script. This takes a path to a checkout of the H repo and compiles the relevant styles into an SCSS bundle, the templates are compiled to plain HTML and the JS is Browserified into a small bundle./assets/manifest.json
references the compiled bundlesInstructions for updating the theme to reflect any changes in
hypothesis/h
are in 'update-hypothesis-shared.py'.