Commit Graph
647 Commits
Author SHA1 Message Date
Russell J. Hewett 1baceb1c62 refactor(baseof): refactors base header and footer to their own partials 2019-05-30 21:24:07 -04:00
George Cushen fe422905b0 feat: for personal sites, link an article's profile box to homepage
See #982
2019-05-29 22:12:20 +01:00
George Cushen 07b921a6e8 fix(demo): BaseURL
Some paths in the demo were wrong due to missing BaseURL.
2019-05-29 21:03:14 +01:00
George Cushen 3bd21f3a37 style(docs): remove "Back To Top" and link "Contents" header to top 2019-05-28 22:25:48 +01:00
George Cushen 8914b83cd7 refactor(shortcode): rename mermaid to diagram 2019-05-27 18:09:19 +01:00
George Cushen 27ff391ab1 feat: generate diagrams and flowcharts from text using Mermaid shortcode
To use, add `diagram: true` to a page's YAML front matter and create a
diagram from text in the body of the Markdown file using Mermaid syntax:
https://mermaidjs.github.io

Close #1111
2019-05-27 18:05:17 +01:00
Marc Schulder 2f3bfa2ff4 i18n: update German (#1109)
Change the German translation of "education" from "Ausbildung" to the more general "Bildung".
2019-05-27 14:36:38 +01:00
George Cushen aa7af6ab2a feat(docs): add support for page bundles using docs layout
Close #1100
2019-05-26 23:27:19 +01:00
icf20 11df1131dd i18n: add Romanian (#1107) 2019-05-26 22:53:30 +01:00
George Cushen 7cb7e497f7 refactor: convert archetypes from TOML to YAML 2019-05-26 18:49:23 +01:00
Marc Schulder cd19779d8e i18n(de): consistently use formal German (#1097)
All but one message used the formal "Sie" to address the reader. Therefore, adjust the one case in which informal "du" is used.
2019-05-21 19:05:52 +01:00
Marc Schulder 3c2cd8dc87 i18n(de): fix typo (#1096) 2019-05-21 19:03:53 +01:00
Dominik Vogel 23e2c4dcab i18n: update DE translation (#1095) 2019-05-20 18:05:52 +01:00
George Cushen 29ce18a050 feat(theme): add Strawberry theme
Also, refactor themes and theme system to replace primary_light and
primary_dark with SCSS lighten/darken funcs.

See #1091
2019-05-19 23:51:32 +01:00
George Cushen 79db5acc1b docs: clarify Hugo version 2019-05-19 20:46:04 +01:00
George Cushen 0438fabbc3 bump version 2019-05-19 18:51:49 +01:00
George Cushen 49ac91fef9 refactor: parse_theme
Clean up code, add some defaults, and add error messages when the
specified font or color theme cannot be found.

Refactor `text-muted` color from CSS override to Bootstrap variable.

Close #680
2019-05-19 18:49:41 +01:00
George Cushen efb4f32ade fix: inconsistent column widths in People widget
Fix #1070
2019-05-19 18:31:45 +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
FLaco aeab0b6618 feat(js): update Highlight JS from 9.12.0 to 9.15.6 (#1075)
Adds support for more languages like plaintext and SAS.

See https://github.com/highlightjs/highlight.js/blob/master/CHANGES.md
2019-05-11 15:59:48 +01:00
George Cushen e8966f703a fix(shortcode): remove Hugo 0.55+ deprecation warning for Gallery
Fix #1074
2019-05-11 15:41:13 +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 ced350c547 refactor: publication types as TOML at data/publication_types.toml 2019-05-08 20:13:18 +01:00
George Cushen 507523aeb9 fix(widget): Hugo 0.55 broke display of taxonomy term names (e.g. tags)
Prior to this update, Hugo began displaying urlized tags like
`deep-learning` rather than `Deep Learning` in the Tag Cloud widget and
the list_tags/categories shortcodes.

Fix #1072
2019-05-07 22:55:02 +01:00
George Cushen c88f90bd5d fix: build fails on Windows: "Error: Could not find author page at..."
Fix #1068
Fix #1064
2019-05-07 22:36:24 +01:00
George Cushen 71f0959b9e fix: build fails on Windows: "Error: Could not find author page at..."
Caused due to Windows backslashes in path when extracting username from
folder name.

Fix #1068
2019-05-07 21:39:43 +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 32e6009edb fix(widget): People widget broke due to renaming of author -> authors 2019-05-06 15:57:23 +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
George Cushen 346f1575e0 refactor: Academic's SCSS style file into more manageable modules
See #680
2019-05-05 20:43:05 +01:00
George Cushen 93150a55e9 i18n: sync language packs against master to fix missing interface text
The structure of some language packs is very outdated, leading to
missing user interface text when using these packs.

Developed a Python script to sync the structure of all language packs
against the master pack (English) so that each pack has the latest set
of localisation strings.

Note that synced items will still need translating, this commit just
ensures that all language packs have the same structure.

Fix #1062
2019-05-05 20:14:39 +01:00
George Cushen 88e0459e68 fix: Hugo 0.54+ breaks links to user profiles with non-ASCII usernames
* check if the Hugo generated author profile URL is valid
  * works around the Hugo bug, preventing invalid links
* rename `author` folder to `authors`
  * no need to GetPage authors/x and then GetPage author/x to check if
    user account was created
  * can just rename the folder and use `if .File` instead
  * more aligned with how Hugo's taxonomy system was designed
* refactor all author code

BREAKING CHANGE: rename `author` folder to `authors`

Fix #1064
2019-05-05 14:13:49 +01:00
George Cushen a40d7af8b8 feat: add search box to 404 page 2019-05-04 13:13:33 +01:00
George Cushen 9eb5c0727d feat(docs): add section pager (disable by default)
Disable docs prev/next pager unless `docs_section_pager = true` in
`params.toml`.

Requires setting `sections_weight = 01` in front matter of docs pages to
control the order of their appearance in the prev/next links. Otherwise,
prev/next links are generated by Hugo based on chronological date order
- which will be an invalid order in the case of docs.

See https://github.com/gohugoio/hugo/issues/2494
2019-05-02 00:31:07 +01:00
George Cushen 1e9bcd1dcb feat(docs): add section pager 2019-05-01 23:47:08 +01:00
George Cushen d664b4bcba refactor: .Site.x to site.x 2019-05-01 23:36:59 +01:00
George Cushen f147c6a7fa slides: enable author to choose a code highlighting style for each deck
Enables author to choose a light or dark code highlighting style
in slides and match the highlighting style with the deck theme color.

Close #1050
2019-04-30 21:02:40 +01:00
Carlos Eduardo de Andrade 182f010c03 feat: add publishDate to publish future publications now (#1025)
Similar to the talk template.

When `publishDate` is used in conjunction with `date`, it enables publishing future publications now.

See Hugo docs.
2019-04-27 21:03:25 +01:00
George Cushen 925d781bb0 fix: some tag and category links are broken
Links may break due to breaking changes in GetPage in Hugo 0.55.2+.

Solution: add explicit urlize to taxonomy term GetPage call

Fix #1053
2019-04-26 08:50:50 +01:00
zertrin 2edf7cf351 fix: authors no longer shown on publication page
Bug caused in the recent refactoring to support Hugo 0.55.2+.

Fix #1055
2019-04-25 23:24:51 +01:00
George Cushen 92200d6327 refactor: convert CSS to SCSS
Remove Bootstrap from Header and assets.toml
  Remove Bootstrap JS CDN version in footer and assets.toml
  Add latest Bootstrap v4 SASS files locally
  Include Bootstrap JS locally
  Convert Academic's CSS to SASS (mainly SASS variables + Go templating)
  Convert Academic's theming system to integrate with SASS
  Parse SASS in header using Hugo and convert to CSS
  Minify and md5 fingerprint bundled CSS
  Fix Slider widget (reuses .wg-hero but animation and `clear` removed)
  Add Bootstrap files to repo so that Node is not required

See #680
2019-04-24 23:56:41 +01:00
George Cushen 35563bb498 fix: page metadata no longer displayed
Fix #1042
2019-04-19 23:14:24 +01:00
George Cushen c2b4586f52 bump version 2019-04-19 14:39:26 +01:00
George Cushen 6373e9b87d fix(widget): Slider text color should be light on dark background
Recent changes to Hero widget added support for both light and dark
options for background and text (previously it only supported dark
backgrounds and light text).

Slider continues to only support dark style (dark bg and light text).
However, since it inherits some styling from Hero, it began displaying
dark background and dark text. This fix re-applies dark mode to the
Slider widget.
2019-04-19 14:10:06 +01:00
Gert de Pagter 4630f4b784 fix(js): day/night mode when highlight=false or highlight_style is set
Fix JQuery error when `day_night=true` and (`highlight=false` or `highlight_style` is set)

Fix #1040
Fix #952
2019-04-19 13:55:58 +01:00
Dongdong Tian 00aada46d2 fix: people widget
Fix v4.2.2
Fix #1037
2019-04-19 00:33:07 +01:00
George Cushen 605fc4dd91 fix: page resource links not displayed
Fix v4.2.2
Fix #1036
2019-04-19 00:28:53 +01:00