Commit Graph
997 Commits
Author SHA1 Message Date
George Cushen 05bfd7c48d fix: Pages archive link
For case where *not* using content.archive.link to customize link.
2020-08-15 11:17:47 +01:00
George Cushen 6f36c1624c fix: btn style 2020-08-12 18:27:55 +01:00
George Cushen 0a8cbcb8d9 fix: word wrap long lines on mobile 2020-08-12 00:44:30 +01:00
George Cushen bfa72389cd fix: hybrid dark nav on mobile
FIx 37d247911c
2020-08-12 00:22:44 +01:00
George Cushen cdcd83f724 feat: experimental support for single column Pages and Contact widgets
Enable single column centered layout for Pages and Contact widgets.

To use this feature, add the following to the widget front matter:

[design]
  columns = "1"

See #984
2020-08-11 23:36:29 +01:00
George Cushen 37d247911c feat: experimental support to define both light and dark themes
Ability to define both light and dark color themes, rather than use the default settings for the alternative theme.

Add `[dark]` or `[light]` section to theme file to define the alternative theme.

Most vars supported except `primary`.

See #997
2020-08-11 23:16:39 +01:00
George Cushen be8cae3a1f feat: add optional .js-scroll class for smooth anchor scrolling 2020-08-11 23:08:40 +01:00
George Cushen 35287c2391 feat: support fullstops in widget names
Supports Java package naming convention for unique widget names.
2020-08-11 23:07:29 +01:00
George Cushen 6d04dbe81a feat: add support for Book-based homepage
Enables the Book layout to be used directly at the root of the site.
2020-08-07 18:13:12 +01:00
George Cushen 886eb23663 fix: workaround Hugo Modules incompatibility with Bootstrap
"In Go Modules, the /vendor directory in a module has a special meaning, so they delete it from the bundle"

Enables Academic to be installed as a Hugo Module.

See https://github.com/gohugoio/hugo/issues/6945
2020-08-06 23:57:16 +01:00
George Cushen 38514dbc73 fix: workaround Hugo Modules incompatibility with Bootstrap
"In Go Modules, the /vendor directory in a module has a special meaning, so they delete it from the bundle"

Enables Academic to be installed as a Hugo Module.

See https://github.com/gohugoio/hugo/issues/6945
2020-08-06 23:48:33 +01:00
George Cushen 437d478f69 build: add module config with Hugo compatibility info
Attempt to add initial support for importing Academic as a Hugo Module.
2020-08-05 22:41:59 +01:00
George Cushen b2f90cb15f build: require Hugo v0.73+ GetTerms fix for author order 2020-08-05 22:37:14 +01:00
George Cushen 150190dcf6 feat: update highlight.js from v9 to v10
Close #1788
2020-08-05 20:15:00 +01:00
George Cushen 8cec7d2d7e feat: update Font Awesome to 5.14.0
Close #1801
2020-08-05 20:09:10 +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
George Cushen 161ede094e style: add audio 2020-08-05 19:45:06 +01:00
beckerjohannes 6bf282275a feat: add support for SVG in Figure shortcode (#1749) 2020-07-31 16:31:26 +01:00
Thom Wiggers ca0a0e264e demo: update media dir in cms example config (#1796) 2020-07-31 16:22:07 +01:00
George Cushen 7108eefac1 fix: make media library dir configurable
Fixes shortcode scratch context

Fix d9ff93a1c2
2020-07-29 20:24:17 +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 5de4c11730 fix: search for index of Book type 2020-07-29 13:58:21 +01:00
George Cushen ca4f7b07ef feat: add Audio shortcode 2020-07-29 13:57:10 +01:00
George Cushen 4afdb4deba feat: add cite shortcode 2020-07-29 13:56:16 +01:00
George Cushen 0513bee773 chore: init Go module 2020-07-28 01:02:05 +01:00
George Cushen 9421994179 demo: bump Hugo v for Netlify 2020-07-27 23:07:51 +01:00
George Cushen 5456b6decd fix: Book layout
Fixes prev/next direction
2020-07-27 13:39:01 +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 64f921f141 fix: Book layout
Add anchor links from Docs layout
2020-07-25 20:39:30 +01:00
George Cushen 9a5a33e354 fix: Book layout
Remove duplicate footer.
2020-07-25 02:19:48 +01:00
George Cushen 0b9cbc4150 feat: add Book layout
Similar to the Docs layout but much easier to use.

Add `type: book` to a page's front matter and place Markdown files within a folder hierarchy to automatically create the book sidebar navigation.

Introduces {{< list_children >}} shortcode for listing children of a book chapter.
2020-07-25 01:47:37 +01:00
George Cushen 34dcc6f9d3 feat: preload pages
Preload pages and remove gradual fade in animation on pages to increase performance and make pages appear to load more instantly.
2020-07-23 13:14:32 +01:00
George Cushen c4f0317cdf feat: enable non-rectangular widget styles
Introduces `design.clip_path` widget option.

Refer to CSS docs on `clip-path` for use.

E.g. to create a slanted bottom to a widget:

```
[design]
clip_path = "polygon(0 0,100% 0,100% 80%,0% 100%)"

[design.background]
color = "navy"
text_color_light = true
```
2020-07-12 19:36:37 +01:00
Mario Zigliotto ad674e92cb i18n: add missing Spanish translations (#1778) 2020-07-12 01:11:49 +01:00
George Cushen ba401912b8 fix: more consistent search input:focus rendering
...across browsers and devices
2020-07-10 19:34:04 +01:00
George Cushen 0ba00ee0c8 chore: add support link to Github Issues 2020-07-09 23:16:54 +01:00
George Cushen 47c58faf81 fix(gallery): don't lazy load media library or remote images
`class="lazyload"` was earlier removed but the `data-src` was not reverted to `src`.

Fixes gallery images not loading from `static/img/` or from remote URL.

Fix #1771
2020-07-06 22:00:59 +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 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 4efb4d3ab0 refactor: link page summary block rather than text
Enables the visitor to easily click anywhere on the summary (even between lines) rather than having to click exactly on the text.

Close #1751
2020-06-17 19:14:02 +01:00
George Cushen 033e1bd32c feat: link page summary to page
Provides an experience similar to popular blogging platforms.

Make it easier for the visitor to click through and more obvious that it's just a excerpt of the page.

Close #1751
2020-06-17 18:47:01 +01:00
ascholerChemeketa ed29a71afa fix: isDarkTheme from int to boolean in academic.js
Fixes data type inconsistency between `isDarkTheme` (int) in `academic.js` and 
 `isSiteThemeDark` (bool) in `site_js.html` that might prevent proper initialization of Mermaid diagrams.

See #1745
Fixes #1742
2020-06-15 20:41:21 +01:00
George Cushen 16b0e67da9 feat(cms): add support for projects and make subtitle/summary optional 2020-06-15 00:33:02 +01:00
Alison Presmanes Hill 7abfbcdb05 style: use consistent pre and code bg colors
See #1740
2020-06-14 23:19:33 +01:00
George Cushen 1af6a8d46e refactor: rename icons.scss to _icons.scss 2020-06-14 23:02:58 +01:00
George Cushen 0f6f9b9d70 refactor: rename _footer to _footer.scss 2020-06-14 22:59:23 +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 ff252a6a74 fix: copyright license logic for derivatives
Attempts to align logic with that used at https://chooser-beta.creativecommons.org/

Fix b4901e3
Fix 1729
Close #1730
2020-06-03 12:20:30 +01:00