George Cushen
12b7ad9f01
feat(assets): update MermaidJS to 8.8.0
...
8.7.0 introduced new theming system. However, appears no changes necessary as they state "Site-wide themes are still declared via initialize" - see http://mermaid-js.github.io/mermaid/tutorials-and-community/CHANGELOG.html#870-2020-08-09
See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/1860
2020-09-28 01:46:51 +01:00
George Cushen
7158a80983
feat(assets): update LeafletJS to 1.7.1
...
See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/1860
Close https://github.com/wowchemy/wowchemy-hugo-modules/issues/1857
2020-09-28 01:38:29 +01:00
George Cushen
27e2b41b3b
feat(assets): update LazysizesJS to 5.2.2
...
See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/1860
2020-09-28 01:33:47 +01:00
George Cushen
b78a4eace1
feat(assets): update HighlightJS to 10.2.0
...
See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/1860
2020-09-28 01:29:43 +01:00
George Cushen
b8aa71372a
feat(assets): update Academicons to 1.9.0
...
See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/1860
Close https://github.com/wowchemy/wowchemy-hugo-modules/issues/1818
2020-09-28 01:28:06 +01:00
George Cushen
85d629124e
feat(assets): update AnchorJS to 4.2.2
...
See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/1860
2020-09-28 01:23:50 +01:00
George Cushen
217538023f
fix(scss): case where invisible text on dark button hover/focus
...
Affects .dark a .btn :hover/focus
For example, with red button and red link color, led to red button with (invisible) red text on button hover/focus.
2020-09-27 00:35:09 +01:00
George Cushen
170204126a
feat(shortcode): add cta shortcode for call to action buttons
...
Examples
Main button CTA:
{{< cta cta_link="https://..." cta_new_tab="true" cta_text="emoji 🚀 " >}}
Alternative text CTA:
{{< cta cta_alt_link="./my-page/" cta_alt_text="Go to my page" >}}
Main button CTA and alternative text CTA:
{{< cta cta_link="https://..." cta_new_tab="true" cta_text="emoji 🚀 " cta_alt_link="./my-page/" cta_alt_text="Go to my page" >}}
2020-09-27 00:19:35 +01:00
George Cushen
b585d9207b
feat(archetype): add template for new book pages
2020-09-26 23:50:54 +01:00
George Cushen
c67339ac16
refactor: update remaining Academic refs
2020-09-26 23:16:52 +01:00
George Cushen
514d7a0e55
fix: wrong sort order for book folder named updates
...
Use descending title name order in menu for book folder named `updates`.
Fixes `updates` sidebar sort order in Wowchemy docs site.
Fix #1839
2020-09-26 17:56:25 +01:00
George Cushen
66d1d207fd
chore: move monorepo files to theme
2020-09-26 14:48:44 +01:00
George Cushen
2376fb5177
chore: move monorepo files to theme
2020-09-26 14:47:36 +01:00
George Cushen
bcf6297b11
feat(shortcode): add callout
...
Add warning that Alert shortcode will be deprecated and replaced with Callout.
Also fix some old Academic refs.
2020-09-26 14:38:39 +01:00
zertrin
841053c6c8
feat(widget): update Mapbox API due to classic style deprecation
...
Since June 1, 2020, the Mapbox classic styles are deprecated and may be removed in the future.
This change updates the Leaflet code to use the currently supported Mapbox style API according to the official documentation at https://docs.mapbox.com/help/troubleshooting/migrate-legacy-static-tiles-api/
See #1854
2020-09-25 16:28:21 +01:00
George Cushen
d325991ffb
feat(shortcode): enable cross-referencing audio
...
Adds id param to audio shortcode
Hashes are prefixed in the form `#audio-<ID>`
E.g. add `id="my-talk"` when calling the audio shortcode and then reference it using [link to my talk audio](#audio-my-talk)
2020-09-22 23:02:24 +01:00
George Cushen
6789c8948f
docs: edit readme
2020-09-20 22:44:45 +01:00
George Cushen
ec6c60ba64
refactor: footer styles
2020-09-20 15:42:22 +01:00
George Cushen
c4ce9f5bd3
feat(menu): change palette icon to moon + add option to hide search
...
- a static moon icon is currently commonly used by popular sites such as Facebook and Reddit to represent a light/dark chooser
- fix automatic light/dark theming when the chooser is hidden with `show_day_night` set to `false`
- add boolean `show_search` option to `main_menu` in `params.toml` to hide search button from main (still accessible from the standard / keyboard shortcut)
2020-09-20 14:26:29 +01:00
George Cushen
73d157ece0
feat(menu): option to hide day/night chooser
...
In params.toml, head to `main_menu` options and set `show_day_night=false` to hide the day/night chooser and theme automatically according to the user's day/night preference for their device.
2020-09-03 22:29:26 +01:00
George Cushen
7455541b48
build: move module config to module
2020-09-03 22:22:29 +01:00
George Cushen
86da39719c
refactor: hugo-academic to wowchemy sub-module
2020-09-02 20:59:27 +01:00
George Cushen
e5e24fc55c
refactor: Go mod name
2020-09-02 20:55:09 +01:00
George Cushen
3623959e65
feat: add support for widget container config
...
Requires widget to have corresponding config file at `widgets/<name>-config.html`
2020-09-02 20:35:06 +01:00
George Cushen
182c09f49d
fix(docs): menu Z->A sort order
...
Fixes issue with using Docs layout for sections that need reverse menu sorting, such as updates (v5, v4.9, ..).
Affected Docs site prior to conversion to Books layout.
2020-09-02 20:33:07 +01:00
George Cushen
514907d534
feat(seo): add default robots.txt with sitemap
...
Help automate adding new site to Google Search Console
2020-09-02 20:28:21 +01:00
George Cushen
70861b33c8
feat: add optional fullscreen class for widgets
2020-09-02 20:26:34 +01:00
George Cushen
07facf5828
perf: pre-connect to Google Fonts if using Google Fonts
...
Increase performance.
2020-08-31 17:36:30 +01:00
George Cushen
d8367bbe52
fix: v5-dev error when using dark themes where light = false
...
Fix #1825
Fix https://github.com/sourcethemes/academic-kickstart/issues/115
2020-08-27 13:17:04 +01:00
George Cushen
ffca5924ec
fix: page flickers when user's dark/light pref differs to theme's default
...
Fixes typo calling canChangeTheme().
Fix eb8748ff17
Fix #1601
2020-08-26 10:00:04 +01:00
George Cushen
e034f7782e
fix: page flickers when user's dark/light pref differs to theme's default
...
Fixes typo calling canChangeTheme().
Fix eb8748ff17
Fix #1601
2020-08-26 09:59:13 +01:00
George Cushen
70cbc5b90a
fix: page flickers when user's dark/light pref differs to theme's default
...
Add check that admin enabled Light/Dark chooser (Params.day_night).
Fix eb8748ff17
Fix #1601
2020-08-25 22:02:38 +01:00
George Cushen
31dff55e7f
demo: add demo resume pdf
2020-08-24 23:59:21 +01:00
George Cushen
05c4cf673c
feat: add data visualization feature
...
Adds chart shortcode with support for Plotly JSON chart format.
Given Plotly formatted line-chart.json in page bundle, use
{{< chart data="line-chart" >}}
Close #1673
2020-08-24 20:36:03 +01:00
George Cushen
464a10d947
demo: convert home/ from TOML to YAML (WIP)
2020-08-24 18:29:12 +01:00
Julen Etxaniz
88060814a4
i18n: add missing eu translations ( #1810 )
2020-08-24 16:02:42 +01:00
Bangyou Zheng
bb19e13adb
fix(book): hide sidebar menu when printing ( #1820 )
2020-08-24 16:01:40 +01:00
George Cushen
c0f0326de7
fix: $media_dir edge case for shortcode instance within widget
2020-08-24 13:21:29 +01:00
George Cushen
aa22bcefd8
demo: update pre-computed resources
2020-08-24 00:21:05 +01:00
George Cushen
eb8748ff17
fix: page flickers when user's dark/light pref differs to theme's default
...
Fix by setting dark/light theme as soon as body tag exists.
Highlight JS and Mermaid JS theming must still occur later during page load.
Opportunity to refactor this fix and existing OnReady theme code to avoid duplicate JS and reuse code.
Fix #1601
2020-08-23 20:24:15 +01:00
George Cushen
173f6a7f60
i18n(zh): add light/dark translations
2020-08-23 20:14:32 +01:00
George Cushen
d953106116
fix: case where main menu toggle and title not visible in dark mode
...
Apply new SCSS $sta-dark-menu-* vars
Fix #1819
2020-08-23 19:57:50 +01:00
George Cushen
34a16bef39
fix: two active links at the same time in navbar
...
Caused when `/` rather than an anchor or blank string used to represent homepage URL in a menu link.
Note: further improvement possible such as by applying similar logic to non-root widget pages which have menu links to root widget page and its anchors.
Fix #1812
2020-08-23 19:54:28 +01:00
George Cushen
1f6d31c93a
refactor: move params.toml>address_formats --> data/address_formats.toml
...
BREAKING CHANGE:
Possible breaking change for sites using custom address formats.
Override `address_formats.toml` to add custom address formats for a site.
2020-08-23 19:43:36 +01:00
George Cushen
fef46cfbe0
fix: paragraph margin for para within list
...
Note: Goldmark appears to occasionally render paragraphs within lists even if it's unnecessary.
Fix #1816
2020-08-19 17:30:42 +01:00
George Cushen
05bfd7c48d
fix: Pages archive link
...
For case where *not* using content.archive.link to customize link.
2020-08-15 11:17:47 +01:00
George Cushen
6f36c1624c
fix: btn style
2020-08-12 18:27:55 +01:00
George Cushen
0a8cbcb8d9
fix: word wrap long lines on mobile
2020-08-12 00:44:30 +01:00
George Cushen
bfa72389cd
fix: hybrid dark nav on mobile
...
FIx 37d247911c
2020-08-12 00:22:44 +01:00
George Cushen
cdcd83f724
feat: experimental support for single column Pages and Contact widgets
...
Enable single column centered layout for Pages and Contact widgets.
To use this feature, add the following to the widget front matter:
[design]
columns = "1"
See #984
2020-08-11 23:36:29 +01:00