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
George Cushen
2548ae2ad2
Refactor HTML indents to 2 spaces and refactor long lines
2016-09-24 19:46:20 +01:00
George Cushen
b21642366e
Add RSS feed
2016-09-13 01:43:47 +01:00
George Cushen
d2b55a6e28
CSS improvements: convert @import to <link ...> for increased speed; add auto-numbering to figure captions; various refactoring.
2016-05-24 15:56:30 +01:00
George Cushen
cd08a0ad00
Fix footer syntax for custom JS and refactor header
2016-05-14 12:37:16 +01:00
George Cushen
1e3879e5a7
Fix smooth scrolling for Home and Back to Top links
2016-05-12 23:43:43 +01:00
George Cushen
280d5ca1d4
Add support for custom CSS and JS assets
2016-05-10 02:20:22 +01:00
George Cushen
099aca03cb
Add code highlight CSS locally for increased speed and ease of overriding highlighting style
2016-05-10 01:57:53 +01:00
George Cushen
a55f766b3a
Fix asset and navbar URLs
2016-05-09 23:13:11 +01:00
George Cushen
5985996691
✨ Update layouts and fix JS
2016-05-08 00:07:40 +01:00
George Cushen
80c7d04015
(1) Add Project feature. (2) Fix exampleSite. (3) Various minor improvements.
2016-04-28 03:22:02 +01:00