Commit Graph
660 Commits
Author SHA1 Message Date
George Cushen dcd3c05abd Merge branch 'baseof-refactor' of https://github.com/rhewett/hugo-academic into rhewett-baseof-refactor 2019-06-01 14:05:05 +01:00
George Cushen 316bfe2d8f fix(demo): BaseURL 2019-06-01 00:39:01 +01:00
Russell J. Hewett 19c83715ef refactor(baseof): partial should not be a full page template 2019-05-30 22:33:58 -04:00
Russell J. Hewett 57c72011cb refactor(baseof): added main blocks to two stray templates 2019-05-30 22:33:58 -04:00
Russell J. Hewett bd31268e19 refactor(baseof): docs cannot use baseof or else footer is displayed twice 2019-05-30 22:33:58 -04:00
Russell J. Hewett d3ea424f72 refactor(baseof): removed unnecessary partials 2019-05-30 22:27:24 -04:00
Russell J. Hewett d0043daa72 refactor(baseof): moved all templates to use a main block 2019-05-30 22:27:23 -04:00
Russell J. Hewett 044957aca1 refactor(baseof): minor adjustments to site_footer to help accomodate the docs layout 2019-05-30 22:27:17 -04:00
Russell J. Hewett 1c2178bc44 refactor(baseof): added baseof template to replace template boilerplate 2019-05-30 21:47:46 -04:00
Russell J. Hewett ddba3fee2b refactor(baseof): added site_footer partial to replace multiple footer partials 2019-05-30 21:47:19 -04:00
Russell J. Hewett d263439e74 refactor(baseof): moved footer_section into the footer_container partial 2019-05-30 21:41:13 -04:00
Russell J. Hewett f4d4c48016 refactor(baseof): moved citation model block to its own partial 2019-05-30 21:39:23 -04:00
Russell J. Hewett 5878e91a16 refactor(baseof): created custom head and footer js placeholders 2019-05-30 21:29:54 -04:00
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