Commit Graph
856 Commits
Author SHA1 Message Date
Dawid Gosławski 577eeeaca2 i18n: update Polish translation (#1501)
Translate missing Polish translations from English.
2019-12-29 21:47:34 +00:00
George Cushen ce75013228 feat: automatically generate website icons
See #1439
2019-12-28 23:48:40 +00:00
Slashdoom 6c86640af4 fix(widget): tag cloud max size calculation (#1497)
Calculate max value first since the list is mutable to Hugo's `Reverse` function - i.e. Hugo's `Reverse` function currently appears to operate in-place.
2019-12-28 20:44:44 +00:00
Julian Pawlowski 30b6d5c7e5 demo: Germany and France address format should be the same (#1487) 2019-12-28 20:30: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
Märt Põder 41d3bf8aa7 i18n: add Estonian translation (#1482) 2019-12-16 19:36:57 +00:00
George Cushen 949e15d19a demo: simplify inline math example for Goldmark 2019-12-16 11:49:06 +00:00
George Cushen 03af4df12a fix: workaround Hugo GetPage/urlize bug with non-ASCII usernames
Attempt to use anchorize rather than urlize for fetching user profiles for users with non-ASCII usernames. Apparently `anchorize` does not perform URL encoding unlike `urlize`, so may be better suited for use with `GetPage`.

See https://github.com/gohugoio/hugo/issues/5687
2019-12-15 16:16:09 +00:00
George Cushen 5c6c8770b1 feat: add support for Hugo v0.60
Slides now work correctly in Hugo v0.60.

Close #1479
2019-12-15 15:52:53 +00:00
George Cushen 45c6e7027d chore: update thumbnail 2019-12-12 21:48:45 +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 42defb4684 fix: highlight active ToC item for Goldmark (Hugo v0.60)
Equivalent to previous workaround for Hugo's Blackfriday ToC in ea2a98a2c3

See ea2a98a2c3
2019-12-09 18:29:06 +00:00
Russell J. Hewett 4e893ca29e fix(widget): Portfolio responsive breakpoint (#1462)
Make Portfolio responsive breakpoint consistent with other widgets.

Likely this specific code was missed in the migration from Bootstrap 3 to 4.
2019-12-09 16:33:43 +00:00
Emilia Trollros b5b5f125e9 i18n: add Swedish language pack (#1457) 2019-12-08 01:33:23 +00:00
George Cushen ea2a98a2c3 feat: add support for Hugo v0.60 - remove Blackfriday TOC workaround 2019-12-07 20:37:26 +00:00
George Cushen aa4c95277c feat: add support for Hugo v0.60 2019-12-07 20:02:54 +00:00
George Cushen 6d97e95942 feat: add support for Hugo v0.60 2019-12-07 19:58:43 +00:00
Samuel Guay 023a9fef27 feat: add a template (archetype) for adding new authors
I thought this would be useful for people who need to create many authors. Instead of copying and pasting the `admin/_index.md`, they can simply use the hugo command `hugo new authors/FIRSTNAME-LASTNAME` and have an empty but commented _index.md file ready to be filled in for each author.

Close #1445
2019-12-07 16:40:35 +00:00
Florian Pöhler bba41637a0 feat: add option to use self hosted Commento
If you are using the Commento cloud service, you do not need to
change anything, but if you want to use a self hosted instance, you can now
 provide the base url to your Commento instance.

Close #1446
2019-12-07 16:38:25 +00:00
George Cushen cdf5ef1096 chore: bump version 2019-12-07 16:36:16 +00:00
Ronny Chevalier c7b71e6c4b fix: console error when highlight disabled (#1455)
If "hightlight" was disabled, the following error appeared in the
console:

    Uncaught ReferenceError: code_highlighting is not defined
2019-12-07 16:25:33 +00:00
Arto Bendiken b631115926 i18n: fix typos in Russian translation (#1456) 2019-12-07 16:23:51 +00:00
George Cushen 981704c0d8 fix: navbar logo is too big on Firefox
Fix #1449
2019-12-07 16:22:17 +00:00
Arto Bendiken 3508912fd0 i18n: add Ukrainian translation (#1444) 2019-11-30 13:17:56 +00:00
George Cushen 6d92b0e8ab chore: bump version 2019-11-24 14:25:11 +00:00
George Cushen 197b5d1f06 fix: off-centre logo on mobile
Fix #1436
Close #1437
2019-11-24 14:16:21 +00:00
Jacob Peacock ef4ec47722 docs: fix semi-broken link (#1438)
Old link redirected to correct page but missing hash after redir.

Close #1435
2019-11-24 11:53:54 +00:00
George Cushen c3c4d9560a fix: "Edit Page" links for multilingual sites
Fix #1232
Fix sourcethemes/academic-www#14
2019-11-24 11:47:26 +00:00
George Cushen 15e00e60de fix: "Edit Page" links for multilingual sites
Fix #1232
Fix https://github.com/sourcethemes/academic-www/issues/14
2019-11-24 11:05:55 +00:00
George Cushen 037d75f6da fix: race condition between HighlightJS and Mermaid
In some cases, the race condition could prevent Mermaid diagrams from being rendered.

Fix #1434
See #1298
2019-11-21 21:41:58 +00:00
wusphinx fc0d15d0d7 i18n: update Chinese (#1431)
Adjust Chinese translation for minute_read
2019-11-19 18:31:24 +00:00
George Cushen b45d4c5432 chore: bump version 2019-11-19 00:19:39 +00:00
George Cushen 74688bad25 docs: add contributing guide 2019-11-19 00:09:38 +00:00
George Cushen d7749fdaa8 fix: theme's menu_text_active stopped working
Fix #1430
2019-11-18 23:11:01 +00:00
Bertrand Thierry b9bba28813 feat: add French address format
Close #1428
2019-11-18 13:49:10 +00:00
Michael Rennecke fd1a7e71a2 fix: typo leading to braces displayed in talk address
Fix e6eb27deee
Close #1429
2019-11-18 13:46:31 +00:00
George Cushen 51c0d87e54 fix: dropdowns broken in main menu
Also fixed dropdown style.

In order to fix, temporarily disabled horizontal scrolling of menu item overflow.

Fix 766c559
Fix #1425
2019-11-18 00:55:31 +00:00
auntiehuat d6b44a4e02 docs: fix typo in comment (#1426) 2019-11-17 21:16:49 +00:00
Marc Schulder 01740917be feat: add German address format
Close #1427
2019-11-17 21:14:30 +00:00
George Cushen a1f5a3cdd0 chore: bump version 2019-11-16 18:03:00 +00:00
George Cushen e6eb27deee feat: enable semantic address format to be localised
For example, US sites can use the US address format and Chinese sites can use the Chinese address format.

A default address_format can be set in params.toml, which can be overriden on a per page basis using a parameter of the same name in a page's front matter. Optionally, multilingual sites may wish to add a default format for each site in languages.toml.

BREAKING CHANGES
- list_delimiter removed from params.toml
- address_format added to params.toml
- [address_formats] added to params.toml

Close #1344
2019-11-16 17:55:17 +00:00
Simone Rossi d0fb759153 feat: add Mention shortcode to mention people
To mention someone, type `{{% mention "username" %}}` where `username` corresponds to a user account in Academic. This will create a link to the user's profile page.

Close #1421
2019-11-16 16:14:08 +00:00
George Cushen 9cbf5f8ffc chore: commit pre-computed resources for demo on Hugo Themes Site
See https://github.com/gohugoio/hugoThemes/issues/761
2019-11-16 15:49:47 +00:00
George Cushen 766c559e50 feat: improve mobile-first menu
- On mobile, position toggle on left and logo in centre (adopt standard)
- Show Search, Day/Night, and Language icons in mobile menu bar
- Add option to align menu items to left, centre, or right
- Add option to remove logo image/text from menu
- Complete navbar SCSS redesign, making use of Bootstrap vars
- Add automatic menu dropdowns on mouseover (for desktop)

Also,
- Apply live day/night update on system prefs change (no need for refresh)
- Add Mermaid security level on init - a req. for latest Mermaid version

BREAKING CHANGES:
menu_align_right option removed from params.toml
main_menu option added to params.toml

Close #1418
2019-11-16 15:42:31 +00:00
George Cushen 24bfa6fa4d feat: recognize env via -e argument in addition to HUGO_ENV
Also, see https://github.com/gohugoio/hugo/issues/6456#issuecomment-546524056
2019-10-30 13:20:25 +00:00
George Cushen 5abeaaac7e fix(widget): allow spaces in filters in Pages and Featured widgets
Fix #1388
2019-10-19 21:15:18 +01:00
Bertrand Thierry bbda2cce0f feat(talk): do not require event
Close #1397
2019-10-19 21:06:55 +01:00
George Cushen f30d3252a7 refactor: rename sass folder to scss 2019-10-19 20:53:42 +01: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