Commit Graph
28 Commits
Author SHA1 Message Date
George Cushen d9ff93a1c2 feat: make media library dir configurable
Move default media library from static/img/ to static/media/ as it can now contain audio, video, and other kinds of media in addition to images.

BREAKING CHANGE:
Either rename your site's static/img/ to static/media/ (and update any references to this folder in your Markdown files);

Or, add `media_dir = "img"` to `params.toml` to continue using the legacy location.
2020-07-29 18:54:28 +01:00
George Cushen 42696869c1 perf: disable Academicons integration by default
Increase performance.

To enable, add the following to bottom of `params.toml`:

[icon.pack]
  ai = true  # Academicons icon pack https://jpswalsh.github.io/academicons/
2020-07-25 20:42:21 +01:00
Jacques Supcik cd023168da feat: add support for Google Fonts API v2
See #1767
Close #1714
2020-07-01 23:30:04 +01:00
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 42d0e5f8cd fix: 5738cdd41e 2020-04-08 22:31:35 +01:00
George Cushen 5738cdd41e feat: integrate Netlify CMS support
Adds a `[cms]` section in `params.toml` to configure CMS integration.

Supports editing posts, talks, and pages (terms & privacy pages) in Netlify CMS.
2020-04-08 22:29:07 +01:00
George Cushen 9d842f584f fix: social sharing image for author pages
The social sharing logic was attempting to use the legacy system of defining the avatar image name in `site.Params.avatar`, however since the author system was added to Academic, `site.Params.avatar` is now a group of params and the avatar itself is stored in the author's page bundle.

Hence, use the avatar in the author's page bundle (if it exists) to represent an author page.

This bug could affect the image used to represent a page in social sharing and RSS.
2020-04-05 12:27:00 +01: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 1990134455 fix: add author name to profile page title
Author name now appears in browser tab when visiting an author's profile page.
2019-12-30 00:59:34 +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 361707f4fd feat: lazy load figures and gallery images
The proportion of image data in the typical payload of a website can be significant. Lazy loading is a solution that lowers initial page payload and load time, without removing content. Non-critical resources are instead loaded at the moment that they are needed.

Also, load MathJax async in head if required, rather than at end of body.

Close #1106
2019-12-18 14:33:22 +00:00
George Cushen 24bfa6fa4d feat: recognize env via -e argument in addition to HUGO_ENV
Also, see https://github.com/gohugoio/hugo/issues/6456#issuecomment-546524056
2019-10-30 13:20:25 +00:00
George Cushen f30d3252a7 refactor: rename sass folder to scss 2019-10-19 20:53:42 +01: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 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 c163931702 fix: HTML5 validation errors on Demo site
Fix #1197
2019-09-11 17:25:12 +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 2e01db268d feat: add JSON-LD structured data for website, posts, and pubs
Forms part of the transition from Microdata to JSON-LD.

See #413
2019-09-05 16:34:04 +01:00
Julian Pawlowski 92c1bca1a9 fix: web app manifest URI for multi-language sites (#1279) 2019-08-19 17:15:06 +01:00
George Cushen 3326ad410e fix: include manifest URL on all pages
BREAKING CHANGE:
If overriding icon.png, rename it to icon-32.png and add icon-512.png.

Fix #1245
See #1247
2019-07-31 01:01:31 +01:00
George Cushen 0b8cb45034 feat(feed): add image and refactor
Close #1244
2019-07-28 11:33:29 +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
Aries 2d5fb4a4aa feat: always use https scheme for assets (#1213) 2019-07-19 20:09:11 +01:00
George Cushen ac5dcd9dc4 fix: improve HTML5 validation
See #1197
2019-07-11 21:47:43 +01:00
George Cushen 94cee73155 style(theme): replace Playfair and Cupcake with new Rose theme
Also:
- Make nav links normal font weight
- Make XL container wider
- Update Google Fonts URL
- Explicitly add Twitter Image metadata
2019-06-27 01:26:23 +01:00
Russell J. Hewett 5878e91a16 refactor(baseof): created custom head and footer js placeholders 2019-05-30 21:29:54 -04:00
Russell J. Hewett 1baceb1c62 refactor(baseof): refactors base header and footer to their own partials 2019-05-30 21:24:07 -04:00