Commit Graph
275 Commits
Author SHA1 Message Date
George Cushen 6d97e95942 feat: add support for Hugo v0.60 2019-12-07 19:58:43 +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
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
Bertrand Thierry b9bba28813 feat: add French address format
Close #1428
2019-11-18 13:49:10 +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
Marc Schulder 01740917be feat: add German address format
Close #1427
2019-11-17 21:14:30 +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
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 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
George Cushen 9cbf096db5 feat: add bg size, position, and parallax options to Widget Pages
#  Options are `cover` (default), `contain`, or `actual` size.
image_size = "actual"
# Options include `left`, `center` (default), or `right`.
image_position = "right"
# Use a fun parallax-like fixed background effect? true/false
image_parallax = true

See #1377
2019-10-02 21:17:24 +01:00
Bertrand Thierry 02b4ce0e68 fix: no users appear in People widget
Bug caused by search/replace during last People widget update in #1323 .

Also:
- Fix closing div placement
- Hide group if empty

Fix #1360
Close #1372
2019-10-01 19:19:47 +01:00
George Cushen 8e9b045edb refactor: remove GoogleAnalytics from config.toml (moved to Params) 2019-09-24 22:51:20 +01:00
George Cushen dc0407a0e2 feat: add option to disable linking authors to their profile page
`link_authors` option added to `params.toml`.

Close #982
2019-09-24 22:25:16 +01:00
Christophe Bedetti 4b72dba09d feat: add optional social icons to People widget
BREAKING CHANGES

The `user_groups` field has been moved under the new `[content]` front matter section.

See #1345
2019-09-24 22:07:24 +01:00
George Cushen f0ad140f07 feat: add support for Google Tag Manager + refactor GA to use gtag.js
GT (gtag.js) and GTM are the modern Google analytics solutions.

New `[marketing]` config section added to `params.toml`.

GT will fall back to site.GoogleAnalytics if the new `[marketing]` param
for GT/GA isn't specified, so currently no breaking changes.

May deprecate site.GoogleAnalytics in future.

Close #1349
2019-09-24 14:00:23 +01:00
George Cushen 2192b11d04 style: center figure captions
Since figures are now centered.
2019-09-14 19:41:11 +01:00
George Cushen bd2e4ec418 feat: add JSONLD schema for organizations
Forms part of the transition from Microdata to JSON-LD.

BREAKING CHANGES

Upgrades to your `params.toml` file are required:

- Address field has been split into semantic parts
- Latitude and longitude have moved under `coordinates` option
- Map settings have moved under `[map]` section
- Office hours can now be specified more simply, as a list
- Added optional `list_delimiter` option for formatting addresses

See #413
2019-09-11 13:18:49 +01:00
George Cushen e9a7925152 feat: add XS and XL font sizes and change default font size to L 2019-09-09 21:00:56 +01:00
George Cushen ec4f5a11bf feat(talk): add support for event address
Forms part of the transition from Microdata to JSON-LD.

See #413
2019-09-09 17:33:08 +01:00
George Cushen bc85b6800a demo: simplify documentation for writing content in Jupyter 2019-09-05 14:15:23 +01:00
George Cushen 9a2a4d40b9 demo: simplify documentation for writing content in Jupyter 2019-09-05 14:11:15 +01:00
George Cushen 3ee76244e9 demo: remove old theme gallery from post 2019-08-30 13:40:45 +03:00
George Cushen 4a201569f6 refactor: params.toml changes for improved theme system
Rename `color_theme` to `theme`.
Default theme has been renamed from Default to Minimal.
The Font set is now set by the theme unless overrided by user in `params.toml`.
Font size is now set in `params.toml` rather than in the font set.
Options for `font_size` are now s,m, or l.
2019-08-30 13:40:45 +03:00
George Cushen c2650cc239 feat(widget): Tag Cloud: add taxonomy and font size options
Enables the widget to be used for categories etc. and not only tags.

Also fix tag ordering by title rather than by count (d0ec05a).

Fix #1267
Fix d0ec05a
2019-08-03 13:53:30 +01:00
George Cushen d0ec05a65b feat: add max count option to Tags widget
Choose how many tags you would like to display.
2019-08-01 20:09:04 +01:00
George Cushen 0011592861 feat: dynamically generate manifest
Adds name, lang, theme_color and background_color.

Removes 32px icon and adds 512px icon based on latest Google best
practices.
2019-07-27 22:56:26 +01:00
Julian Pawlowski 8688f1d4af demo: disable editing and commenting on Terms & Privacy pages 2019-07-27 22:43:00 +01:00
Julian Pawlowski 835d3d76c0 feat: support commenting for project, publication, and talk pages (#1240)
To use, set `commentable = {page = true, post = true, docs = true, project = true, publication = true, talk = true}` under the Comments section in `params.toml`.
2019-07-27 21:03:50 +01:00
Julian Pawlowski 8272c2c8fb feat: add support for Terms in footer (#1236)
To use, copy `themes/academic/exampleSite/content/terms.md` to `content/terms.md` in your site, add your legal terms, and remove the `draft` option to publish.
2019-07-27 20:51:18 +01:00
George Cushen 3e62662d53 refactor: edit_page.html --> page_edit.html 2019-07-27 20:23:17 +01:00
George Cushen 310357e346 style: fix category icon spacing when --minify used
Fix #1219
2019-07-23 21:57:42 +01:00
Thom Wiggers ee6cef97ca Allow to specify branch of git repository 2019-07-23 09:38:51 +02:00
George Cushen 57ae6c297e demo: fix Hero CTA note 2019-07-22 21:32:46 +01:00
George Cushen a1ba678e79 feat: refactor commenting system + add support for Commento
BREAKING CHANGES
See #1218

Close #1218
2019-07-22 19:50:11 +01:00
George Cushen 96d061bfff bump version 2019-07-22 01:10:46 +01:00
George Cushen 026bb47c72 feat(widget): add Compact view to Portfolio + refactor Portfolio
Also:
- Refactor List view to be consistent with the standard List views.
  - This involved adding support for Project type and external links to
    the standard
  - Now, Portfolio's List and Compact views are just wrappers around the
    standard List and Compact views.
- Fix summary in Showcase view not falling back to use Content.

Fix #1165
2019-07-22 00:36:07 +01:00
George Cushen 255b5e8462 feat: revert Blackfriday math workaround + improve Mmark support
Guidance for using math going forward:
- add `markup: mmark` to front matter
- no longer need to escape inline or block math in body

Also, fix Mmark task lists by removing bullet points.
2019-07-20 19:43:13 +01:00
George Cushen 9a619efaec docs: fix typo 2019-07-18 09:45:02 +01:00
George Cushen 5b4d11825e demo: fix typo 2019-07-18 00:55:24 +01:00
George Cushen 0cffd47aca fix: improve handling of math and diagrams
Block math in body can now be wrapped in "<div>$$...$$</div>" tags
Inline math in body can now be wrapping in "`$...$`" backticks
Diagrams can now be created without shortcodes: "```mermaid ... ```"
2019-07-18 00:45:14 +01:00
George Cushen 0810ee024f feat: enable pages to be edited on GitHub
`edit_page` option can be added to `params.toml`. For example,
`edit_page = {repo_url = "https://github.com/gcushen/hugo-academic", editable = {docs = true}}`

Currently works for GitHub repos and pages using the `docs` layout.
2019-07-08 13:13:32 +01:00
George Cushen 28b4685408 demo: showcase out-set featured image
See #1175
2019-07-01 21:31:46 +01:00
George Cushen 80b3eb6ac4 feat: add placement option for featured images
Placement options: 1 = Full column width, 2 = Out-set, 3 = Screen-width.
Defaults to 1, full column width.
Deprecates the split title/image style that was shown on XL displays.

Close #1175
2019-07-01 18:45:38 +01:00
George Cushen 0562b39893 docs: workaround Hugo bug with non-ASCII characters 2019-06-18 14:00:02 +01:00
George Cushen b6c2aeb497 fix: workaround Hugo bug with non-ASCII characters
See https://github.com/gohugoio/hugo/issues/5687
See #1064
See #1143
2019-06-18 13:55:49 +01:00
George Cushen 2d0de5ad3e docs: update themes 2019-06-17 13:23:59 +01:00
George Cushen 29ce18a050 feat(theme): add Strawberry theme
Also, refactor themes and theme system to replace primary_light and
primary_dark with SCSS lighten/darken funcs.

See #1091
2019-05-19 23:51:32 +01:00
George Cushen 86e7e69ee2 fix: Project archive page is empty
BREAKING CHANGE: Add `layout: docs` to `content/courses/_index.md`.

Fix #1089
2019-05-18 23:29:51 +01:00