Commit Graph

7 Commits

Author SHA1 Message Date
Martin Taillefer 9f353c69a6
Improve hugo perf a bit. (#6001)
- Improve efficiency of some lookups and loops.

- Stop generating spurious feed.xml files all over the
hierarchy.
2019-12-05 16:08:10 -08:00
mtail 664bcb81af Remove extraneous linefeed that was leading to extra whitespace in the HTML. 2019-07-05 04:31:34 -07:00
Martin Taillefer 7e6a81bddc
Site improvements (#4048)
- Remove unnecessary ratio= attributes used with the image shortcode

- Make it so the gloss shortcode doesn't depend on the location of the glossary
within the content tree.

- Make it so the image shortcode understands languages. It will now look in the current
language's content tree, and then callback to the English tree if not found.

- Leverage the above to simplify the Chinese content and remove many absolute references from the
Chinese content to the English content.
2019-04-25 17:20:14 -07:00
Martin Taillefer dd0ecdf9ab
Site improvements (#3430)
- Add linter support to detect internal links to aliases. Those are now flagged as
bad links so the source needs to be updated to point to the real destination,
avoiding the user a redirect.

- Fixed occurences of links to aliases.

- Now only load popper.js on pages that use popups in order to improve
load times.
2019-02-28 13:58:54 -08:00
Martin Taillefer 2dac7e0ff3
Site infra cleanup. (#3281)
- Refactor script code into smaller more manageable files.

- Use consistent naming style in script code.

- Stop using Bootstrap's dropdowns and popovers in favor of custom implementation.
There are only a few uses of Bootstrap to purge before I can ditch
the dependency on the Bootstrap & JQuery libraries, which will speed
up page loads.

- Find a few more static strings that should come from the xlation
dictionary instead.
2019-02-18 07:35:37 -08:00
mtail e2aec3458e Improve the glossary popovers so they work better on mobile. 2019-02-10 20:36:25 -08:00
Martin Taillefer c32db038ed
Introduce support for glossary term highlighting. (#3211)
- You can now mark a word as being a glossary term. This will trigger special rendering inviting the
user to click on the item in order to get a popup window showing the glossary text for the term. This
is very nice when introducing a new term within a page.

- Updated our dependency  on Bootstrap and ClipboardJS to the latest versions.
2019-02-08 07:29:38 -08:00