Commit Graph
924 Commits
Author SHA1 Message Date
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
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 337a554a25 feat(widget): add option to link to archive from Feature widget (#1557)
To add a "See all" link underneath featured content, set `link_to_archive = true` under the `[content]` section in the front matter of the Featured widget.
2020-03-05 20:37:58 +00:00
George 4834058bfe fix: remove space after author names in MLA citation list (#1536)
This commit removes the space after the author names and before the period when using the MLA citation style.
2020-03-05 20:21:48 +00:00
George f8bbd828cb feat: update Mermaid from 8.4.4 to 8.4.8 (#1576) 2020-03-05 20:06:07 +00:00
George 4f2daafe51 fix: inconsistent breakpoints for body margin-top and navbar height
Breakpoints for dynamic navbar height and corresponding body margin-top offset differed slightly.

Fix #1577
2020-03-05 20:04:46 +00:00
George Cushen 94e6169320 fix: revert "fix: workaround Hugo GetPage/urlize bug with non-ASCII usernames"
This reverts commit 03af4df1

Ensure `removePathAccents = true` in `config.toml` to workaround the Hugo bug: https://github.com/gohugoio/hugo/issues/5687

Fix #1575
Fix #1563
2020-03-05 19:54:20 +00:00
Daniel Schemmel a14d21f7c8 feat: upgrade highlight.js from 9.15.10 to 9.18.1 (#1553) 2020-03-01 20:05:07 +00:00
Stanislav Valasek 7130499dc4 i18n: add Czech translation (#1555) 2020-03-01 20:03:01 +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 5e62b09331 fix: day/night mode and enable reverting to the default auto day/night mode
Fixes:
- There is no easy way for a user to reset their day/night preference back to automatic (currently, they must use their web browser to clear the local storage data for the site)
- When changing the theme variation is disabled by admin (by setting `day_night` to `false` in `params.toml`), the operating system's day/night preference is still applied
- If the admin removes the option to change the theme variation, the preference for a user who already visited the site is still read from the localstorage and applied. For example, this could result in the user seeing a theme variation with poor contrast that was not intended to be shown as the site's theme was optimized for the other variation.

Fix #1385
Fix #1526
Fix #1534
2020-02-09 00:10:45 +00:00
George Cushen 9ef1663760 fix: db716b2349
Fix Editorconfig auto-added EOF new line to render-link hook, causing whitespace to begin appearing after links - particularly noticeable when there is punctuation after a link.
2020-02-08 21:09:41 +00:00
Mikel 7ce6e75542 i18n: update Basque (#1539)
Translation to Basque was unfinished. Also, I corrected some mistakes.
2020-02-01 22:32:15 +00:00
George Cushen 4b6b625b51 docs: edit min Hugo version 2020-02-01 22:22:29 +00:00
Suh. Junmin da92e3d584 Update korean translation (#1538)
i18n: update Korean translation
2020-01-30 19:39:11 +00:00
George Cushen 0b2f6997ef demo: sync resources 2020-01-26 20:32:16 +00:00
George Cushen 0d8d0d43a1 feat: add support for Hugo v0.63
Hugo v0.63 introduced breaking changes such as breaking templates that don't immediately begin with a `define` (even if the first line is just a code comment): https://gohugo.io/news/0.63.0-relnotes/

Adds compatibility with Hugo v0.63, fixing author pages rendering blank.
2020-01-26 20:29:18 +00:00
George Cushen 1f6beec9f7 fix: GA outbound link tracking
Fixes external links opening both in current tab and new tab when `google_analytics` enabled.

Fix #1511
2020-01-26 16:38:01 +00:00
George Cushen 2f00beab89 feat: default to fixed width icons with icon shortcode 2020-01-26 00:52:40 +00:00
George Cushen 581faa19e7 feat: add icon shortcode to render icons within Markdown content
See https://sourcethemes.com/academic/docs/writing-markdown-latex/#icons
2020-01-25 22:39:22 +00:00
George Cushen df2e1ed79d docs: update language pack lister 2020-01-25 22:35:02 +00:00
George Cushen f3c1bed36f feat: update Font Awesome from 5.11.x to 5.12.x
Close #1533
2020-01-25 22:33:29 +00:00