Commit Graph
320 Commits
Author SHA1 Message Date
George Cushen 514907d534 feat(seo): add default robots.txt with sitemap
Help automate adding new site to Google Search Console
2020-09-02 20:28:21 +01:00
George Cushen ffca5924ec fix: page flickers when user's dark/light pref differs to theme's default
Fixes typo calling canChangeTheme().

Fix eb8748ff17
Fix #1601
2020-08-26 10:00:04 +01:00
George Cushen e034f7782e fix: page flickers when user's dark/light pref differs to theme's default
Fixes typo calling canChangeTheme().

Fix eb8748ff17
Fix #1601
2020-08-26 09:59:13 +01:00
George Cushen 31dff55e7f demo: add demo resume pdf 2020-08-24 23:59:21 +01:00
George Cushen 05c4cf673c feat: add data visualization feature
Adds chart shortcode with support for Plotly JSON chart format.

Given Plotly formatted line-chart.json in page bundle, use
{{< chart data="line-chart" >}}

Close #1673
2020-08-24 20:36:03 +01:00
George Cushen 464a10d947 demo: convert home/ from TOML to YAML (WIP) 2020-08-24 18:29:12 +01:00
George Cushen aa22bcefd8 demo: update pre-computed resources 2020-08-24 00:21:05 +01:00
George Cushen 1f6d31c93a refactor: move params.toml>address_formats --> data/address_formats.toml
BREAKING CHANGE:
Possible breaking change for sites using custom address formats.
Override `address_formats.toml` to add custom address formats for a site.
2020-08-23 19:43:36 +01:00
George Cushen 0c13d0dc78 feat: make navbar optional
Add `enable` option to `main_menu` settings in `params.toml`
2020-08-05 19:45:06 +01:00
Thom Wiggers ca0a0e264e demo: update media dir in cms example config (#1796) 2020-07-31 16:22:07 +01:00
George Cushen 2b1ec2d000 demo: doc media library defaults to static/media/ 2020-07-29 19:01:26 +01:00
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
George Cushen 486c70c216 feat: add Netlify form options to Contact widget
Help reduce spam
2020-06-30 19:53:06 +01:00
George Cushen 8d75e9e27a feat: add options to highlight active links and show current language
`highlight_active_link` and `show_language` added to `main_menu` in `params.toml`:

`main_menu = {align = "l", show_logo = true, highlight_active_link = true, show_language = false}`

For example, enables disabling highlighting active main menu links on scroll if it's found to be inaccurate in a certain case, such as towards the end of a homepage with lots of very short widgets that are linked in the menu.
2020-06-17 20:29:03 +01:00
George Cushen 16b0e67da9 feat(cms): add support for projects and make subtitle/summary optional 2020-06-15 00:33:02 +01:00
George Cushen 0db000a841 feat: add options to add author notes + highlight superuser
To highlight the site author (superuser) in author lists, set the following in `params.toml`:

highlight_superuser = true

Author notes can be added to a page's front matter in the form:

author_notes:
- "Equal contribution"
- "Equal contribution"
2020-06-07 20:02:12 +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 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 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 a05bc974c7 demo: update math example from Mmark to Goldmark 2020-05-01 22:07:09 +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 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 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
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 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 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 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 Cushen 0b2f6997ef demo: sync resources 2020-01-26 20:32:16 +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 d9e553a96b style: upgrade Bootstrap from 4.3.1 to 4.4.1 2020-01-23 22:15:37 +00:00
George Cushen 242479c5ed feat: add support for displaying square avatars
Simplify generated avatar resources and commit.

See #1509
2020-01-12 14:35:59 +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 eb953ed475 demo: sync preprocessed resources for Hugo Themes Site 2020-01-01 12:56:19 +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 949e15d19a demo: simplify inline math example for Goldmark 2019-12-16 11:49:06 +00:00
George Cushen 5c6c8770b1 feat: add support for Hugo v0.60
Slides now work correctly in Hugo v0.60.

Close #1479
2019-12-15 15:52:53 +00:00
George Cushen ba772f60ce feat: upgrade from Mermaid v8.3.1 to v8.4.3
Close #1419
2019-12-12 20:54:47 +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
Jacob Peacock ef4ec47722 docs: fix semi-broken link (#1438)
Old link redirected to correct page but missing hash after redir.

Close #1435
2019-11-24 11:53:54 +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