Commit Graph
26 Commits
Author SHA1 Message Date
George Cushen 34dcc6f9d3 feat: preload pages
Preload pages and remove gradual fade in animation on pages to increase performance and make pages appear to load more instantly.
2020-07-23 13:14:32 +01:00
George Cushen 5dbcff6167 fix: jQuery bugs
Improves Lighthouse Best Practices score.
2020-05-28 22:20:32 +01:00
George f8bbd828cb feat: update Mermaid from 8.4.4 to 8.4.8 (#1576) 2020-03-05 20:06:07 +00:00
Daniel Schemmel a14d21f7c8 feat: upgrade highlight.js from 9.15.10 to 9.18.1 (#1553) 2020-03-01 20:05:07 +00:00
George Cushen 2f00beab89 feat: default to fixed width icons with icon shortcode 2020-01-26 00:52:40 +00:00
George Cushen f3c1bed36f feat: update Font Awesome from 5.11.x to 5.12.x
Close #1533
2020-01-25 22:33:29 +00:00
thomase1993 3965252fc5 refactor: define cookie consent assets in assets.toml
Moved the Cookie Consent asset definition to assets.toml so that it's possible for offline site to use local Cookie Consent assets.

Also upgraded Cookie Consent to 3.1.1.

Close #1495
2019-12-28 20:13:15 +00:00
George Cushen 361707f4fd feat: lazy load figures and gallery images
The proportion of image data in the typical payload of a website can be significant. Lazy loading is a solution that lowers initial page payload and load time, without removing content. Non-critical resources are instead loaded at the moment that they are needed.

Also, load MathJax async in head if required, rather than at end of body.

Close #1106
2019-12-18 14:33:22 +00:00
George Cushen ba772f60ce feat: upgrade from Mermaid v8.3.1 to v8.4.3
Close #1419
2019-12-12 20:54:47 +00:00
George Cushen ede8cef959 feat: update vendor assets & refactor custom CSS path
- Upgrade MathJax from v2 to v3
- Updated Highlight, Leaflet, Fancybox, Mermaid, FontAwesome
- Fixed multilingual icon paths in Web App Manifest
- View Demo script now binds to all network I/F to enable testing on
  other physical devices like smart phones

BREAKING CHANGES:
Removed `plugins_css` from `params.toml`.
Override `custom.scss` to add custom styling.

Close #1400
2019-10-19 20:33:56 +01:00
George Cushen f0ad140f07 feat: add support for Google Tag Manager + refactor GA to use gtag.js
GT (gtag.js) and GTM are the modern Google analytics solutions.

New `[marketing]` config section added to `params.toml`.

GT will fall back to site.GoogleAnalytics if the new `[marketing]` param
for GT/GA isn't specified, so currently no breaking changes.

May deprecate site.GoogleAnalytics in future.

Close #1349
2019-09-24 14:00:23 +01:00
George Cushen 27ff391ab1 feat: generate diagrams and flowcharts from text using Mermaid shortcode
To use, add `diagram: true` to a page's YAML front matter and create a
diagram from text in the body of the Markdown file using Mermaid syntax:
https://mermaidjs.github.io

Close #1111
2019-05-27 18:05:17 +01:00
FLaco aeab0b6618 feat(js): update Highlight JS from 9.12.0 to 9.15.6 (#1075)
Adds support for more languages like plaintext and SAS.

See https://github.com/highlightjs/highlight.js/blob/master/CHANGES.md
2019-05-11 15:59:48 +01:00
George Cushen c9cd1afefb demo: change Tutorials to Courses and add List of Courses
Perhaps a more common use case of the docs layout.

See #109
2019-05-06 15:53:16 +01:00
George Cushen 92200d6327 refactor: convert CSS to SCSS
Remove Bootstrap from Header and assets.toml
  Remove Bootstrap JS CDN version in footer and assets.toml
  Add latest Bootstrap v4 SASS files locally
  Include Bootstrap JS locally
  Convert Academic's CSS to SASS (mainly SASS variables + Go templating)
  Convert Academic's theming system to integrate with SASS
  Parse SASS in header using Hugo and convert to CSS
  Minify and md5 fingerprint bundled CSS
  Fix Slider widget (reuses .wg-hero but animation and `clear` removed)
  Add Bootstrap files to repo so that Node is not required

See #680
2019-04-24 23:56:41 +01:00
George Cushen 92c7617ace fix(widget): revert row-based project card view back to masonry 2019-02-18 20:28:49 +00:00
George Cushen 5c0c7f5def feat(icon): update FA from 5.4.1 to 5.6.0 2018-12-12 16:55:02 +00:00
Ryan fbc294cdf2 Update Font Awesome to v5.4.1 (#731) 2018-10-13 23:46:08 +01:00
George Cushen 7919efd7a3 JS: Fix Algolia template and refactor Hero 2018-09-15 17:26:56 +01:00
George Cushen 674bb67364 Add documentation/courses/tutorials layout
- Close #405
- See #681 (improve consistency after #571 Bootstrap 4 migration)
- Add `search_results` to language file
- example site: Add example `tutorial` folder
- example site: Set privacy page to hidden (draft)
2018-09-09 23:28:36 +01:00
Prateek Kumar 965a64ffaa Migrate from Bootstrap v3 to v4 (#571) 2018-09-08 22:50:36 +01:00
Conor Anderson a1989ea25c Upgrade from Font Awesome v4 to v5 (#659)
Require Hugo v0.48+
2018-09-01 18:10:23 +01:00
George Cushen a11d8843bb Add built-in search engine
Complement existing integration of Algolia search engine with
alternative option of built-in search engine based on Fuse.

Setting `engine = 1` in `config.toml` will enable the built-in solution.

Close #635
2018-08-12 15:39:55 +01:00
George Cushen 46ba1bb8e3 Fix highlight style not loaded and fix console error when no search box
Close #614
2018-08-01 22:21:04 +01:00
George Cushen efc201cf0c Attempt to load local copy of third party JS/CSS assets if available
Allows to create an entirely offline site.

To use, concatenate vendor JS to `static/js/vendor/main.min.js` and
concatenate vendor CSS to `static/css/vendor/main.min.css`.

See #489
2018-07-29 12:52:07 +01:00
George Cushen 54dac71022 Rename sri.toml to assets.toml 2018-07-24 21:15:22 +01:00