Commit Graph
208 Commits
Author SHA1 Message Date
George Cushen 2b1ec2d000 demo: doc media library defaults to static/media/ 2020-07-29 19:01:26 +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 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 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 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
Stanislav Valasek b5963ac66c demo: fix link in comment (#1581) 2020-03-08 00:09:04 +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 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 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
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 51c0d87e54 fix: dropdowns broken in main menu
Also fixed dropdown style.

In order to fix, temporarily disabled horizontal scrolling of menu item overflow.

Fix 766c559
Fix #1425
2019-11-18 00:55:31 +00:00
George Cushen 9cbf096db5 feat: add bg size, position, and parallax options to Widget Pages
#  Options are `cover` (default), `contain`, or `actual` size.
image_size = "actual"
# Options include `left`, `center` (default), or `right`.
image_position = "right"
# Use a fun parallax-like fixed background effect? true/false
image_parallax = true

See #1377
2019-10-02 21:17:24 +01:00
Bertrand Thierry 02b4ce0e68 fix: no users appear in People widget
Bug caused by search/replace during last People widget update in #1323 .

Also:
- Fix closing div placement
- Hide group if empty

Fix #1360
Close #1372
2019-10-01 19:19:47 +01:00
Christophe Bedetti 4b72dba09d feat: add optional social icons to People widget
BREAKING CHANGES

The `user_groups` field has been moved under the new `[content]` front matter section.

See #1345
2019-09-24 22:07:24 +01:00
George Cushen 2192b11d04 style: center figure captions
Since figures are now centered.
2019-09-14 19:41:11 +01:00
George Cushen ec4f5a11bf feat(talk): add support for event address
Forms part of the transition from Microdata to JSON-LD.

See #413
2019-09-09 17:33:08 +01:00
George Cushen bc85b6800a demo: simplify documentation for writing content in Jupyter 2019-09-05 14:15:23 +01:00
George Cushen 9a2a4d40b9 demo: simplify documentation for writing content in Jupyter 2019-09-05 14:11:15 +01:00
George Cushen 3ee76244e9 demo: remove old theme gallery from post 2019-08-30 13:40:45 +03:00
George Cushen c2650cc239 feat(widget): Tag Cloud: add taxonomy and font size options
Enables the widget to be used for categories etc. and not only tags.

Also fix tag ordering by title rather than by count (d0ec05a).

Fix #1267
Fix d0ec05a
2019-08-03 13:53:30 +01:00
George Cushen d0ec05a65b feat: add max count option to Tags widget
Choose how many tags you would like to display.
2019-08-01 20:09:04 +01:00
Julian Pawlowski 8688f1d4af demo: disable editing and commenting on Terms & Privacy pages 2019-07-27 22:43:00 +01:00
Julian Pawlowski 8272c2c8fb feat: add support for Terms in footer (#1236)
To use, copy `themes/academic/exampleSite/content/terms.md` to `content/terms.md` in your site, add your legal terms, and remove the `draft` option to publish.
2019-07-27 20:51:18 +01:00
George Cushen 310357e346 style: fix category icon spacing when --minify used
Fix #1219
2019-07-23 21:57:42 +01:00
George Cushen 57ae6c297e demo: fix Hero CTA note 2019-07-22 21:32:46 +01:00
George Cushen 96d061bfff bump version 2019-07-22 01:10:46 +01:00
George Cushen 026bb47c72 feat(widget): add Compact view to Portfolio + refactor Portfolio
Also:
- Refactor List view to be consistent with the standard List views.
  - This involved adding support for Project type and external links to
    the standard
  - Now, Portfolio's List and Compact views are just wrappers around the
    standard List and Compact views.
- Fix summary in Showcase view not falling back to use Content.

Fix #1165
2019-07-22 00:36:07 +01:00
George Cushen 255b5e8462 feat: revert Blackfriday math workaround + improve Mmark support
Guidance for using math going forward:
- add `markup: mmark` to front matter
- no longer need to escape inline or block math in body

Also, fix Mmark task lists by removing bullet points.
2019-07-20 19:43:13 +01:00
George Cushen 9a619efaec docs: fix typo 2019-07-18 09:45:02 +01:00
George Cushen 5b4d11825e demo: fix typo 2019-07-18 00:55:24 +01:00
George Cushen 0cffd47aca fix: improve handling of math and diagrams
Block math in body can now be wrapped in "<div>$$...$$</div>" tags
Inline math in body can now be wrapping in "`$...$`" backticks
Diagrams can now be created without shortcodes: "```mermaid ... ```"
2019-07-18 00:45:14 +01:00
George Cushen 28b4685408 demo: showcase out-set featured image
See #1175
2019-07-01 21:31:46 +01:00
George Cushen 80b3eb6ac4 feat: add placement option for featured images
Placement options: 1 = Full column width, 2 = Out-set, 3 = Screen-width.
Defaults to 1, full column width.
Deprecates the split title/image style that was shown on XL displays.

Close #1175
2019-07-01 18:45:38 +01:00
George Cushen 2d0de5ad3e docs: update themes 2019-06-17 13:23:59 +01:00
George Cushen 86e7e69ee2 fix: Project archive page is empty
BREAKING CHANGE: Add `layout: docs` to `content/courses/_index.md`.

Fix #1089
2019-05-18 23:29:51 +01:00
George Cushen 9b3e1baa46 feat: re-add Slider widget's height option
Although Slider height is now automatically normalised, it can be useful
to override the height when using the Slider as an image gallery.

Close #1086
2019-05-18 20:42:17 +01:00
George Cushen 9acaa6f852 feat: convert demo front matter from TOML to YAML
Convert publications.

See #1069
2019-05-08 21:11:09 +01:00
George Cushen 8857bffa20 feat: convert demo front matter from TOML to YAML
Unfortunately, the popular Markdown editors (VS Code and Typora) still
don't support the more human-friendly TOML front matter syntax.

Therefore, make it easier to edit content in popular editors by
converting the demo front matter from TOML to YAML.

Except for publications as they are primarily data based (rather than
content based) and are automatically generated by Academic Admin.

Also, continue to use TOML for configuration files.

See #1069
2019-05-06 17:48:02 +01:00
George Cushen c9cd1afefb demo: change Tutorials to Courses and add List of Courses
Perhaps a more common use case of the docs layout.

See #109
2019-05-06 15:53:16 +01:00
George Cushen 8a6d151efb fix(nav): extend navbar active link highlighting to non-home pages
The original commit of the feature in abbd540 didn't work when `baseurl`
contained a sub-dir like we have for the docs site.

Fix abbd540
See #991
2019-05-05 23:41:33 +01:00
George Cushen abbd54045c feat(nav): extend navbar active link highlighting to non-home pages
Also,
- Fix ScrollSpy link scrolling/highlighting not working on widget pages
  except the home page
- Add `docs_section_pager = true` to `params.toml`.
- Add more demo tutorial pages and content to showcase the improved
navbar highlighting for child pages and the table of contents feature.
- Bump version in prep. for release

Close #991
2019-05-05 22:23:32 +01:00