Commit Graph
43 Commits
Author SHA1 Message Date
George Cushen 58c8bc4609 feat: add options to customise length of listing summaries
When `summary` is defined, the full summary text is now shown in listings.

Add `summaryLength = 30` (length in words) to `config.toml` to customise automatic summaries from using `<!--more-->` tag or full content (when `summary` and `abstract` are not defined).

Add `abstract_length = 135` (length in characters) to `params.toml` to customise truncation when `abstract` is used as the summary.

Close #1374
2020-03-06 21:05:17 +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 0cc80f90ee feat: automatically detect logo image
Simplify the process of adding a logo to a site.

BREAKING CHANGE:
Removes param for logo from params.toml. Instead, move logo image to `assets/images/logo.png`, creating the folders if necessary.

See #1439
2019-12-29 22:00:38 +00:00
Julian Pawlowski 30b6d5c7e5 demo: Germany and France address format should be the same (#1487) 2019-12-28 20:30:29 +00:00
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
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
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 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 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
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 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 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 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 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
George Cushen 3e62662d53 refactor: edit_page.html --> page_edit.html 2019-07-27 20:23:17 +01:00
Thom Wiggers ee6cef97ca Allow to specify branch of git repository 2019-07-23 09:38:51 +02: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 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 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 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 c9cd1afefb demo: change Tutorials to Courses and add List of Courses
Perhaps a more common use case of the docs layout.

See #109
2019-05-06 15:53:16 +01:00
George Cushen 8a6d151efb fix(nav): extend navbar active link highlighting to non-home pages
The original commit of the feature in abbd540 didn't work when `baseurl`
contained a sub-dir like we have for the docs site.

Fix abbd540
See #991
2019-05-05 23:41:33 +01:00
George Cushen abbd54045c feat(nav): extend navbar active link highlighting to non-home pages
Also,
- Fix ScrollSpy link scrolling/highlighting not working on widget pages
  except the home page
- Add `docs_section_pager = true` to `params.toml`.
- Add more demo tutorial pages and content to showcase the improved
navbar highlighting for child pages and the table of contents feature.
- Bump version in prep. for release

Close #991
2019-05-05 22:23:32 +01:00
George Cushen 92200d6327 refactor: convert CSS to SCSS
Remove Bootstrap from Header and assets.toml
  Remove Bootstrap JS CDN version in footer and assets.toml
  Add latest Bootstrap v4 SASS files locally
  Include Bootstrap JS locally
  Convert Academic's CSS to SASS (mainly SASS variables + Go templating)
  Convert Academic's theming system to integrate with SASS
  Parse SASS in header using Hugo and convert to CSS
  Minify and md5 fingerprint bundled CSS
  Fix Slider widget (reuses .wg-hero but animation and `clear` removed)
  Add Bootstrap files to repo so that Node is not required

See #680
2019-04-24 23:56:41 +01:00
George Cushen 585bdf643b fix: add support for Hugo v0.55
Requires Hugo v0.55.2+.
Does not work with Hugo v0.55.0 due to bugs fixed in v0.55.2.

Fix #1017
2019-04-17 19:26:51 +01:00
George Cushen 6778929449 refactor: check admin created a homepage or give error 2019-03-31 19:50:26 +01:00
George Cushen 3fdddd7686 demo: document ability to auto update the copyright year
See #976
2019-03-24 19:03:09 +00:00
George Cushen 2de0d5da7f feat(widget): replace Projects and Custom with Portfolio and Blank
Essentially, the Projects and Custom widgets have been renamed and their
front matter upgraded to be consistent with the new Pages and Featured
widgets.

Also, refactor the demo, changing the section order and converting the
Teaching section to a Demos section which can be used to walk the user
thought the available demos.

See #918
2019-02-27 20:58:00 +00:00
George Cushen e1bcd74ea2 feat(gallery): generate web-friendly thumbnails
Close #932
2019-02-17 18:18:04 +00:00
George Cushen 066e7ebcfb demo: add blog based on Jupyter notebook 2019-02-05 11:43:16 +00:00
George Cushen 7c2a85c351 feat: improve listings
- link author profile pages in listings
- display author name (rather than username) in metadata
- refactor `list_format` to `view` and use new consistent mappings
- add `citation_style` in `params.toml`
- re-order Accomplishments widget in Demo
- make params/comments more consistent in all widget front matter
- Author page: don't show username if profile exists as that will
  already show the user's display name
- Publication card: move author and publication name to metadata bar to
  be consistent with other listings
- Remove portrait.jpg from static as it was duplicated for Demo author

BREAKING CHANGES: See issue below.

See #909
2019-02-04 22:14:28 +00:00
George Cushen e913aacb34 refactor: restructure config and front matter parameters
- contact widget: support custom contact links with `contact_links`
- talks: add `all_day`
- custom_css/js -> plugins_css/js
- load custom css/js from `assets/` dir instead of `static/`
- minify custom css/js
- convert publication types from config params to i18n translations
- projects: always list child items (config option deprecated)

BREAKING CHANGES: Refer to issue below.

See #867
2019-01-26 20:36:15 +00:00
George Cushen 8a7c4eb2aa fix(nav): always right align search and dark mode icons
Also change nav links to be left aligned in the demo.
2019-01-22 18:35:53 +00:00
George Cushen 0a78ba6856 feat: hide page modification date for talks and publications
Having both talk/pub. date and page modification date displayed may
cause confusion.

Close #891
2019-01-22 18:22:06 +00:00
George Cushen ae8a86a047 refactor: restructure config using Hugo v0.53 approach
BREAKING CHANGES
See issue below and v4 release note for details

See #867
2019-01-20 01:35:04 +00:00