Commit Graph
62 Commits
Author SHA1 Message Date
George Cushen 34cf1f0957 fix: when toggling day/night mode, also toggle code highlighting theme
Fix case where code highlighting can be difficult to read after night
mode is toggled by user as the highlight theme remained unchanged.
2019-02-05 18:07:55 +00:00
George Cushen e913aacb34 refactor: restructure config and front matter parameters
- contact widget: support custom contact links with `contact_links`
- talks: add `all_day`
- custom_css/js -> plugins_css/js
- load custom css/js from `assets/` dir instead of `static/`
- minify custom css/js
- convert publication types from config params to i18n translations
- projects: always list child items (config option deprecated)

BREAKING CHANGES: Refer to issue below.

See #867
2019-01-26 20:36:15 +00:00
George Cushen 0a78ba6856 feat: hide page modification date for talks and publications
Having both talk/pub. date and page modification date displayed may
cause confusion.

Close #891
2019-01-22 18:22:06 +00:00
George Cushen ab7e896227 feat(user): add author profile system
- Add author taxonomy to config
- Restructure user data
- Add user profile pages
- Refactor author profile box
- Refactor author link in page metadata to point to author profile page
- Enable About widget to be re-used for different users

BREAKING CHANGES
See issue below and v4 release note for details

See #752
2019-01-20 00:10:03 +00:00
George Cushen 935e31470d fix: fix(sharing): use small Twitter card for small images
This commit fixes 929d500d44

Fix #813
2018-11-29 16:57:46 +00:00
George Cushen 929d500d44 fix(sharing): use small Twitter card for small images
Also, check for featured image and avatar image when computing optimal
image to use in Twitter card.

Fix #813
2018-11-29 16:32:27 +00:00
George Cushen e95405f79a feat(search): add search icon to navbar to open new search dialog
* Search icon added to navbar if search enabled in config
* New search dialog added which overlays current page when searching
* The docs search box now opens the new search dialog instead of
  displaying results within the docs page itself

Close #784

BREAKING CHANGE:

Search widget is deprecated and `content/home/search.md` should be
removed
2018-11-17 22:42:27 +00:00
Thom Wiggers edb547e64e Properly quote the Google Fonts URL (#736) 2018-10-18 22:23:48 +01:00
George Cushen f754e4c7e5 CSS: Prevent Hugo encoding Google Fonts and fix docs sidebar toggle bg
Close #707
2018-09-23 18:28:50 +01:00
Daniel Roy 9c0d14cda4 Support custom site description and thumbnail image for SEO and sharing (#696)
* Add  `description` to config
* Add `sharing_image` to config
2018-09-18 19:53:13 +01:00
George Cushen 179c7f7331 Revise table of contents for docs layout and top navbar
- Add title to Table of Contents (add `on_this_page` i18n)
- Add back to top link in Table of Contents (add `back_to_top` i18n)
- Enable custom HTML in Table of Contents
  (create `layouts/partials/docs_toc_foot.html`)
- Revised alert shortcode style
- Enable icons as menu items in main navbar (use HTML in `Name` field)
- Enable `[[menu.main_right]]` options for having both left and right
  aligned main menu links
2018-09-16 16:57:32 +01:00
George Cushen 99e0edf9bb config: Allow twitter social icon to be commented out
Breaking change:
`twitter` option added to `config.toml` for social sharing metadata
2018-09-10 19:50:54 +01:00
George Cushen 5115b1fa23 Store theme version in a data file
Close #593
2018-08-12 22:04:49 +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
Dominik Schürmann c777bbdbad Allow a summary to be specified for widget pages (#611)
Enable `summary = "your page summary"` to be set in a widget page's `_index.md`.

This metadata will then be used to enrich SEO, social sharing, and Academic's search.
2018-08-01 23:33:17 +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
George Cushen bb3adc1781 Add search engine widget
Close #169
2018-07-23 19:25:39 +01:00
George Cushen 3b15254f18 metadata: If set, use the summary parameter for og:description
Close #518
2018-07-23 12:45:43 +01:00
Prateek Kumar 7f744f022b Disable Google Analytics in development mode (#569) 2018-06-28 11:32:30 +01:00
George Cushen 6988b4074b header: Fix OG metadata for image path when URL contains sub-dirs 2018-05-08 22:26:18 +01:00
George Cushen c22d653c43 Add Privacy Pack
- To enable, set `privacy_pack = true` in `config.toml`
- Show a cookie consent message to visitors
- Anonymize IP in Google Analytics (if enabled)

See #507
2018-04-21 12:07:57 +01:00
George Cushen 72c793b179 Add gallery shortcode (#398) 2018-01-13 15:19:59 +00:00
George Cushen ad19aa52d3 header: Improve metadata for page description
See discussion in #428
2018-01-02 16:31:14 +00:00
George Cushen 09daca6b7d Add support for Chrome theme color
See https://developers.google.com/web/fundamentals/design-and-ux/browser-customization/#meta_theme_color_for_chrome_and_opera

Close #402
2017-12-31 12:05:28 +00:00
George Cushen cf6d923c90 multilingual: Fix styles.css link when defaultContentLanguageInSubdir = true
Fix #412
2017-12-17 20:08:33 +00:00
George Cushen 71feb4ed7e head: Enable scrollspy support for fixed table of contents 2017-11-19 16:36:03 +00:00
George Cushen baad8468cc Fix web manifest for sub-dirs
See #312
2017-11-11 19:09:37 +00:00
George Cushen b9ee3b4a6f Add web manifest
Close #312
2017-11-11 19:04:26 +00:00
George Cushen 09b91845a0 themes: Add dark theme
To use, set `color_theme = "dark"` in `config.toml`.

See #299 and #139
2017-11-11 17:55:42 +00:00
Alexander 5db7a8f5c4 Add hreflang metadata to page header (#374) 2017-11-09 21:36:26 +00:00
Alexander Minges d48bcdf30a Add OpenStreetMap-based alternative to Google Maps (#360)
* add leaflet JS as alternative to gmap JS
* changes to `config.toml`:
  * add `zoom = 15`
  * add `map = 0` (`map` sets the map provider - refer to comments)
  * change `google_maps_api_key` to `map_api_key`
2017-11-02 21:14:26 +00:00
Adrien nayrat 73f8fac2b5 Add Twitter card and Open Graph metadata (#358) 2017-10-26 22:06:32 +01:00
Ronny Chevalier bf483fcd48 header: Do not generate RSS links if RSS disabled (Fix #318) 2017-10-16 19:29:35 +01:00
George Cushen e7fa40b1c6 Fix theme system 2017-10-03 20:06:12 +01:00
George Cushen 32252083fa Improve versioning and SRI for dependencies
- Parameterize JS and CSS versions (no longer hardcoded)
- Highlight.js version moved from `config.toml` to `data/sri.toml`
- SRI applied to Highlight.js
2017-09-30 21:23:37 +01:00
George Cushen 66ca3fca75 Add theme system
- Add `color_theme` option to config
- Add `font` option to config
- Add 3 themes
- Add 2 font styles
- Add documentation to Getting Started post
2017-09-30 16:26:19 +01:00
George Cushen ef0568deb7 icons: Update Academicons to v1.8.1 2017-08-30 02:13:35 +01:00
Myles Johnson cfc36c28d2 Improve Google Analytics (#209)
* Move Google Analytics to the head
* Use async JS loading
* Add autotrack.js to replace custom JS for tracking events
2017-06-13 09:10:35 +01:00
Myles Johnson df8d4f987c Update JS libs and pull icon packs from cdnjs (#208)
* Update version of imagesLoaded, tweenMax, and mathJax
* Pull academicons and font-awesome from cdnjs
* Delete `fonts` folder
2017-06-12 22:33:30 +01:00
Ronny Chevalier b53076e1f8 layouts: Add Subresource Integrity (SRI) (#162) 2017-06-12 01:04:20 +01:00
Ronny Chevalier 5f91263ed6 header: Encode pipe character in Google Fonts url (#158) 2017-04-15 17:45:09 +01:00
appleby b3c73acdc8 Add config options for customizing highlight.js (#66)
This commit adds the following config options to allow the user to
enable / disable and otherwise customize source code highlighting with
highlight.js:

- hljs: enable / disable highlighting
- hljs_languages: include highlighting for additional languages
- hljs_style: choose CSS style for highlighting
- hljs_version: choose highlight.js version

* Change hljs_ prefix to highlight_ and update hljs version to 9.9.0

Per code review comments in #66. The github.min.css style hasn't
changed, hence no diff for highlight.min.css in this commit.
2017-01-17 01:31:39 +00:00
George Cushen ee331055ef Highlight active navigation item + various improvements.
Highlight active navigation item using Scrollspy.
Prevent navbar hiding initial content when jumping to in-page anchor.
Use material style for navbar shadow.
Change color of links in alert boxes for better visibility.
2016-11-11 06:13:11 +00:00
George Cushen a4bcb6cbf4 Update website icon using latest standards 2016-10-19 21:46:26 +01:00
George Cushen a65279eb5d header: Add option for including custom HTML
Allows for integrating third party plugins.
2016-10-06 00:13:48 +01:00
Stephan Kulla 20318d1543 Use Hugo function relURL to make URLs relative (#39)
Signed-off-by: Stephan Kulla <git.mail@kulla.me>
2016-10-01 01:36:41 +01:00
Stephan Kulla 9c5205097a header.html: Add .Site.RSSLink as default RSS feed. (#38)
Signed-off-by: Stephan Kulla <git.mail@kulla.me>
2016-09-30 11:45:31 +01:00
Stephan Kulla ec969a0052 header.html: Use "default" to specify the language. (#37)
Signed-off-by: Stephan Kulla <git.mail@kulla.me>
2016-09-29 13:51:18 +01:00