Commit Graph
17 Commits
Author SHA1 Message Date
George Cushen 601620c7a6 feat: make taxonomy URLs singular
- make taxonomy URLs singular, consistent with other Academic pages (workaround Hugo attempting to publish taxonomy URLs with plural names). This requires the breaking change below.
- Fix extra space/lines appearing in the author cards underneath page content as reported at https://spectrum.chat/academic/help/publication-widget-adds-additional-lines-at-bottom-of-the-page~315f77d8-7cc8-44a9-a431-5b64b7556c53

BREAKING CHANGE:
Rename `name` to `title` in author profiles within `author/` folder.
2020-04-15 01:17:56 +01:00
George Cushen 4ed72d85b2 fix: revert "fix: workaround Hugo GetPage/urlize bug with non-ASCII usernames"
This commit completes 94e6169320 in reverting commit 03af4df

Ensure `removePathAccents = true` in `config.toml` to workaround the Hugo bug: gohugoio/hugo#5687

Fix #1575
Fix #1563
2020-03-05 20:53:26 +00:00
George Cushen c5b26892a9 feat: add support for SVG logo format + fix logo URL in JSONLD
Can now upload an SVG logo to `assets/images/logo.svg`.

If your site is for an organization, Google currently requires that the logo is PNG rather than SVG otherwise the site may not receive rich search results based on the JSONLD (see https://developers.google.com/search/docs/data-types/logo).

Also, this commit fixes the logo URL in the site's JSONLD metadata - irrespective of the above feature, the logo URL metadata broke when adding the new automated logo detection system in #1439.

Close #1512
Fix #1516
Fix #1439
2020-02-09 00:53:02 +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
George Cushen ce75013228 feat: automatically generate website icons
See #1439
2019-12-28 23:48:40 +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 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 b2494b2172 refactor: JSONLD author 2019-09-14 22:21:19 +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 ae4afde2c0 fix: font not found when using some themes
Fix #1314
2019-09-04 18:04:16 +01:00
George Cushen 2479177a34 fix: font not found for 1950s and Coffee themes
Fix #1314
2019-09-02 15:56:24 +03:00
George Cushen aa13a4d28c feat(themes): implement new font sizing system
Specify `font_size` as s, m, or l in `params.toml`.
Font size is now a site setting rather than theme setting.

Also:

Be less strict on user input of theme and font set names - allow lower
or upper case as well as spaces.
Fall back to Minimal theme and font set on user input error.
Keep category icon on same line as category links, otherwise context
lost.
Change search-header position in modal now that it overlays entire page
*including* navbar.
2019-08-30 13:40:45 +03:00
George Cushen 03599c42d5 feat: add support for multi-day events
Previously, the talk layout was intended for talks (intra-day events).

This commit adds support for more general events which can span multiple
days.

Close #1169
2019-07-21 19:40:58 +01:00
George Cushen a71297bbfd fix: case when font and color themes not found even when present
See #1118
2019-06-01 18:08:19 +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 49ac91fef9 refactor: parse_theme
Clean up code, add some defaults, and add error messages when the
specified font or color theme cannot be found.

Refactor `text-muted` color from CSS override to Bootstrap variable.

Close #680
2019-05-19 18:49:41 +01:00
George Cushen ced350c547 refactor: publication types as TOML at data/publication_types.toml 2019-05-08 20:13:18 +01:00