Commit Graph
945 Commits
Author SHA1 Message Date
George Cushen 3830aed960 fix: prevent all spoilers opening when have same button text
Fix #1723
2020-05-30 11:03:37 +01:00
George Cushen 5dbcff6167 fix: jQuery bugs
Improves Lighthouse Best Practices score.
2020-05-28 22:20:32 +01:00
George Cushen dbeb7fd871 feat: enable rich text in figure lightbox captions
By adding `safeHTMLAttr`, similarly to the gallery shortcode.

Enables links to show within the figure lightbox, for example.

Close #1706
2020-05-28 21:52:04 +01:00
George Cushen dfae6dca85 feat: add slides translation for search result content type label
Fallback to `btn_slides` translation for language packs which don't yet have a `slides` translation.

Close #1716
2020-05-28 21:45:32 +01:00
George Cushen 8af8d15d82 feat: add spoiler shortcode
To use:
{{< spoiler text="Click to view the spoiler" >}} You found me! {{< /spoiler >}}

Close #1712
2020-05-28 21:09:54 +01:00
George Cushen 9e562fc076 feat: add show_related option to control related content
The following option has been added to `params.toml` to control related content on pages:

`show_related = {docs = true, page = false, post = true, project = true, publication = true, talk = true}`
2020-05-27 01:23:10 +01:00
George Cushen 67028328d0 feat: open WhatsApp sharing links in app rather than web
Close #1707
2020-05-27 01:10:16 +01:00
Nicholas Nadeau, Ph.D., P.Eng ca0b898cbf feat: increase accessibility with alts and labels
Can increase accessibility score in Google Lighthouse from 97% to 100% (exact score may vary depending on the site).

See #1694
2020-05-27 01:04:11 +01:00
Thom Wiggers 88d83a615c fix: if statement in publications/single.html (#1715)
Fixes Hugo v0.71.1 unable to build site.
2020-05-27 00:53:24 +01:00
rakelgamito d0552aefc0 i18n: update eu translation (#1686) 2020-05-16 12:26:05 +01:00
George Cushen 3f94927149 demo: edit comments 2020-05-15 00:12:12 +01:00
George Cushen 3cb96be5c6 feat: rename custom icon pack from svg to custom
# To use custom SVG icons.
# Place custom SVG icon in `assets/images/icon-pack/`, creating folders if necessary.
[[feature]]
  icon = "beach-sunset"
  icon_pack = "custom"
  name = "Surfing"
  description = "90%"

See #1692
2020-05-14 23:46:31 +01:00
George Cushen a357b09682 feat: enable emoji and custom SVG icons in Featurette widget
# To use emoji icons.
[[feature]]
  icon = "😄"
  icon_pack = "emoji"
  name = "Emojiness"
  description = "100%"

# To use custom SVG icons.
# Place custom SVG icon in `assets/images/icon-pack/`, creating folders if necessary.
[[feature]]
  icon = "beach-sunset"
  icon_pack = "svg"
  name = "Surfing"
  description = "90%"

Close #1149
Close #1692
2020-05-14 23:42:44 +01:00
George Cushen b4901e3fd2 feat: add copyright license option
Enables adding Creative Commons copyright licenses on both site wide and per page basis with the new option:

`copyright_license = {enable = false, allow_derivatives = false, share_alike = true, allow_commercial = false, notice = "This work is licensed under {license}"}`

Close #1670
2020-05-14 22:45:23 +01:00
George Cushen 7eb8d35ddf chore: revise image for Hugo Themes Site
Show screenshot without device mockups as requested.

Close #1684
2020-05-14 22:37:18 +01:00
George Cushen fc94d95016 feat: complete user management in Netlify CMS 2020-05-06 19:46:30 +01:00
George Cushen cfa5460dd9 feat: enable user management in Netlify CMS
Adds initial support for managing users/authors.
2020-05-06 18:44:25 +01:00
George Cushen bd8062f5cb feat: add initial style for RTL languages
See #1639
2020-05-05 20:08:45 +01:00
Mohammadreza Khoshbin cd841d619d i18n: add Farsi (fa) language pack (#1683) 2020-05-04 09:15:47 +01:00
George Cushen a05bc974c7 demo: update math example from Mmark to Goldmark 2020-05-01 22:07:09 +01:00
George Cushen 48b39f8550 fix: workaround Hugo Page.GetTerms bug
Hugo bug causes authors not to be listed in the order in which they were defined in the front matter.

See Hugo bug report at https://github.com/gohugoio/hugo/issues/7213

This commit partially reverts f78feefee9 where the code was refactored to use Page.GetTerms for authors.
2020-05-01 00:03:57 +01:00
George Cushen f78feefee9 feat: add support for non-ASCII tags, authors, and categories
For example, now Chinese can be used in the names of tags, authors, and categories.

Previously, this was blocked due to bugs in Hugo.

As of Hugo v0.65, new functionality for taxonomies was introduced. The Hugo taxonomy feature powers authors, categories, and tags in Academic.

BREAKING CHANGE:
Requires Hugo v0.65+
2020-04-24 20:32:58 +01:00
George 88fe1f013f chore: update FUNDING.yml 2020-04-20 20:13:53 +01:00
Abdulaziz 353fab199d i18n: complete Arabic (ar) translation (#1654) 2020-04-19 19:19:29 +01:00
Abdulaziz dc0d310af1 i18n: add Arabic (ar) translation (#1642) 2020-04-15 01:30:41 +01:00
George Cushen 3e74580053 feat: update author archetype
To reflect changes to author data model in 601620c .
2020-04-15 01:26:28 +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 f075bc2d74 feat: add native font theme 2020-04-13 01:40:29 +01:00
George Cushen 2d63a0090a feat: add initial RTL language support 2020-04-11 22:25:03 +01:00
George Cushen 14839190f6 chore: build demo with latest Hugo v0.68.3 2020-04-08 22:37:33 +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
Thom Wiggers ce5196f099 i18n: update NL translation (#1622) 2020-03-29 12:05:16 +01:00
Mike Arpaia adb09f8dab fix: parse error when loading widget_page.html
```
Error: add site dependencies: load resources: loading templates: "/Users/marpaia/git/website/themes/academic/layouts/partials/widget_page.html:21:1": parse failed: template: partials/widget_page.html:21: unterminated quoted string
```

Fix 8d25dbc
See #1621
Fix #1618
2020-03-29 11:15:21 +01:00
George Cushen 8d25dbc61f refactor: clarify error message when Hugo fails to load a Widget Page
See #1595
See #1599
2020-03-28 20:49:23 +00:00
Dainius Jocas ba7680ac2c i18n: add Lithuanian language pack (#1617) 2020-03-28 20:29:34 +00:00
haybdiid a7dc76f007 i18n: add Somali language (#1607) 2020-03-22 23:05:04 +00:00
George Cushen ea84a0c392 fix(navbar): prevent language + theme selectors rendering off page
See https://github.com/gcushen/hugo-academic/issues/1596#issuecomment-599515919
See #1596
2020-03-16 19:46:11 +00:00
George Cushen eceb8b6312 feat: clarify day/night modes in appearance chooser
Rather than a 3-way icon-based toggle through light, dark, and automatic modes, present the user with a dropdown list of modes displayed in full textual representation.

Adds language pack options for translating `theme_light`, `theme_dark`, and `theme_auto`.

See #1596
2020-03-15 21:40:00 +00:00
Stanislav Valasek 2a713f8e7d i18n: fix Czech translation (#1597) 2020-03-15 14:16:40 +00:00
George Cushen ebfb1d9fff feat: support alt-text for featured images
An optional `alt_text` parameter can be added when specifying a featured `image` in a page's front matter.

Alt text is used to describe the image when the page is read via a screen reader.

This commit also changes profile photo alt text from "avatar" to the person's name in alignment with major CMS and social sites.

Close #1592
2020-03-14 01:05:25 +00:00
Stanislav Valasek b5963ac66c demo: fix link in comment (#1581) 2020-03-08 00:09:04 +00:00
George Cushen 21e7bc8d3d chore: bump version 2020-03-06 21:13:26 +00:00
George Cushen c3faa9439d fix: color of back to top arrow in dark mode
Fix #1560
2020-03-06 21:07:12 +00:00
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 63918091fb feat: show profile cards for all page authors, not just first author
If `site.Params.profile` is set to `true`, an author profile card will be displayed at the end of the page for every author (assuming that a profile has been setup for them under `content/authors/`).

Close #1481
2020-03-06 20:18:06 +00:00
beckerjohannes f9794e9f09 feat: add ID to figures to make them linkable (#1475)
Generates linkable IDs for figures by anchorizing the caption and namespacing the figure ID by prefixing it with `figure-` to help prevent conflicts with other existing IDs.
2020-03-06 19:57:33 +00:00
George Cushen 90aca0659c feat: filter by author in Pages and Featured widgets
To use, just set an `author` filter to a username in instances of the Pages or Featured widget:

```
[content.filters]
    tag = ""
    category = ""
    publication_type = ""
    author = "admin"
```

Close #1422
2020-03-06 19:51:04 +00:00
George Cushen 2dec2f91dc fix: encapsulate font-families in quotes
Fixes issue with using font names containing a space followed by a number such as `Exo 2`.

Fix #1548
2020-03-06 19:24:55 +00:00