Commit Graph
24 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 4efb4d3ab0 refactor: link page summary block rather than text
Enables the visitor to easily click anywhere on the summary (even between lines) rather than having to click exactly on the text.

Close #1751
2020-06-17 19:14:02 +01:00
George Cushen 033e1bd32c feat: link page summary to page
Provides an experience similar to popular blogging platforms.

Make it easier for the visitor to click through and more obvious that it's just a excerpt of the page.

Close #1751
2020-06-17 18:47:01 +01:00
Alison Presmanes Hill 7abfbcdb05 style: use consistent pre and code bg colors
See #1740
2020-06-14 23:19:33 +01:00
George Cushen 1af6a8d46e refactor: rename icons.scss to _icons.scss 2020-06-14 23:02:58 +01:00
George Cushen 0f6f9b9d70 refactor: rename _footer to _footer.scss 2020-06-14 22:59:23 +01:00
George Cushen 0db000a841 feat: add options to add author notes + highlight superuser
To highlight the site author (superuser) in author lists, set the following in `params.toml`:

highlight_superuser = true

Author notes can be added to a page's front matter in the form:

author_notes:
- "Equal contribution"
- "Equal contribution"
2020-06-07 20:02:12 +01:00
George Cushen a357b09682 feat: enable emoji and custom SVG icons in Featurette widget
# To use emoji icons.
[[feature]]
  icon = "😄"
  icon_pack = "emoji"
  name = "Emojiness"
  description = "100%"

# To use custom SVG icons.
# Place custom SVG icon in `assets/images/icon-pack/`, creating folders if necessary.
[[feature]]
  icon = "beach-sunset"
  icon_pack = "svg"
  name = "Surfing"
  description = "90%"

Close #1149
Close #1692
2020-05-14 23:42:44 +01:00
George Cushen b4901e3fd2 feat: add copyright license option
Enables adding Creative Commons copyright licenses on both site wide and per page basis with the new option:

`copyright_license = {enable = false, allow_derivatives = false, share_alike = true, allow_commercial = false, notice = "This work is licensed under {license}"}`

Close #1670
2020-05-14 22:45:23 +01:00
George Cushen bd8062f5cb feat: add initial style for RTL languages
See #1639
2020-05-05 20:08:45 +01:00
George Cushen ea84a0c392 fix(navbar): prevent language + theme selectors rendering off page
See https://github.com/gcushen/hugo-academic/issues/1596#issuecomment-599515919
See #1596
2020-03-16 19:46:11 +00:00
George Cushen eceb8b6312 feat: clarify day/night modes in appearance chooser
Rather than a 3-way icon-based toggle through light, dark, and automatic modes, present the user with a dropdown list of modes displayed in full textual representation.

Adds language pack options for translating `theme_light`, `theme_dark`, and `theme_auto`.

See #1596
2020-03-15 21:40:00 +00:00
George Cushen c3faa9439d fix: color of back to top arrow in dark mode
Fix #1560
2020-03-06 21:07:12 +00:00
George 4f2daafe51 fix: inconsistent breakpoints for body margin-top and navbar height
Breakpoints for dynamic navbar height and corresponding body margin-top offset differed slightly.

Fix #1577
2020-03-05 20:04:46 +00:00
George Cushen 55228b7ade fix: lazy loading causing inaccurate anchor scrolling + link highlighting
As of a recent update, gallery and figure images are lazy loaded. However, lazy loading without initial sizes defined can lead to inaccurate anchor scrolling and active link highlighting as the anchor offset changes after an uncached image occurring before the anchor is lazily loaded.

See https://github.com/gcushen/hugo-academic/issues/1199#issuecomment-577293818
Fix #1199
2020-01-23 23:44:08 +00:00
George Cushen 1a3efac296 feat: add support for displaying square avatars
Also, make About widget avatar responsive, appearing larger on large devices.

BREAKING CHANGE:
`gravatar` option moved under new `[avatar]` section in `params.toml`.
`shape` option added under new `[avatar]` section in `params.toml`.

Close #1509
2020-01-12 14:27:27 +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 6d97e95942 feat: add support for Hugo v0.60 2019-12-07 19:58:43 +00:00
George Cushen 981704c0d8 fix: navbar logo is too big on Firefox
Fix #1449
2019-12-07 16:22:17 +00:00
George Cushen 197b5d1f06 fix: off-centre logo on mobile
Fix #1436
Close #1437
2019-11-24 14:16:21 +00:00
George Cushen d7749fdaa8 fix: theme's menu_text_active stopped working
Fix #1430
2019-11-18 23:11:01 +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
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 f30d3252a7 refactor: rename sass folder to scss 2019-10-19 20:53:42 +01:00