Commit Graph
617 Commits
Author SHA1 Message Date
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
George Cushen 080b72a3bd fix: pagination links
Must remain .URL rather than .RelPermalink
2019-04-18 08:38:44 +01:00
George Cushen 80e352158e docs: edit readme 2019-04-17 20:04:41 +01:00
George Cushen 585bdf643b fix: add support for Hugo v0.55
Requires Hugo v0.55.2+.
Does not work with Hugo v0.55.0 due to bugs fixed in v0.55.2.

Fix #1017
2019-04-17 19:26:51 +01:00
George Cushen 817cac04dd fix(search): make search dialog easier to close
Whilst searching, the navbar is now hidden to prevent user attempting to
close dialog by clicking on navbar links. Otherwise, when clicking on an
in-page anchor link in navbar, the page content will not be reloaded and
will remain hidden underneath the dialog.

Fix #996
2019-04-15 19:08:16 +01:00
George Cushen 308a81825d docs: revise readme 2019-04-15 00:02:35 +01:00
George Cushen 01114416aa fix(style): text_color_light = true only working in Safari
The .home-section.dark` selector blocks were not being applied by Chrome
and Firefox due to them not supporting CSS Selectors Level 4.

Selectors Level 4 allows the :not() pseudo-class to accept multiple
selectors. See https://stackoverflow.com/a/35993791

However, currently, it is only supported by Safari:
https://caniuse.com/#feat=css-not-sel-list
2019-04-10 19:26:37 +01:00
George Cushen d7ff9a634f bump version 2019-04-09 21:04:45 +01:00
George Cushen e6cb0b6628 js: update Reveal to v3.8.0 and rename example slides as bundle 2019-04-09 19:18:43 +01:00
George Cushen 7467e65799 fix(widget): Hero text color when text_color_light = false 2019-04-07 20:01:12 +01:00
George Cushen f812eb7033 feat(pub): add support for Preprint, Thesis, and Patent types
Note: "Manuscript" is renamed to "Preprint".

Close #769
2019-04-07 18:35:45 +01:00
Jens True b466f34bf9 i18n: add Danish translation (#1005) 2019-04-03 19:51:30 +01:00
George Cushen 6778929449 refactor: check admin created a homepage or give error 2019-03-31 19:50:26 +01:00
George Cushen aa8b3f35ba feat(widget): add option to customize section spacing
Close #433
2019-03-24 19:24:58 +00:00
George Cushen 3fdddd7686 demo: document ability to auto update the copyright year
See #976
2019-03-24 19:03:09 +00:00
George Cushen 5358dd00ad feat(footer): add ability to auto update the copyright year
To use, add `{year}` to `Copyright` option in `config.toml`. Displays
current year.

Close #976
2019-03-24 18:57:04 +00:00
George Cushen c27134a5c7 fix(widget): tag and category filters not working in Pages and Featured
Fix #989
2019-03-23 20:09:27 +00:00
George Cushen ea4621aedb refactor: homepage sections as headless leaf nodes
See #970
2019-03-17 20:31:20 +00:00
Dongdong Tian 839e198c7f i18n: update Chinese translation (#979) 2019-03-16 12:19:17 +00:00
George Cushen a554d5dc10 docs: edit features and update guide 2019-03-04 01:03:54 +00:00
George Cushen a62c6bf01f style: don't color authors as links in Pages widget with Cite view
Authors are still clickable but colored the same as the rest of the
entry.

Only the publication title link is colored as a normal link.

See #950
2019-03-03 22:09:00 +00:00
George Cushen 177dd391d3 style(widget): improve appearance of Experience & Accomplishments
New mobile first approach improves style of widgets on small devices.

Close #860
2019-03-03 20:15:20 +00:00
Guansong Wang e2274c6b35 fix: "See More" link in Pages widget not appearing
After the "Offset and Limit" section, `$query` would have length of `$items_count`, which makes `$count` always equal to `$items_count`. The later "if" condition for adding the "see all posts" link will never be met.

The fix is to record the length of `$query` into `$count` before any offset and limit.

See #963
2019-03-01 21:01:16 +00:00
George Cushen de28ca4241 fix: citation view in Featured widget (#961) 2019-02-28 20:40:12 +00:00
Yaozhu Sun f47640ebc9 fix: citation view in Pages widget (#961) 2019-02-28 20:37:45 +00:00
George Cushen f01260371b fix: ed8f04e Pages and Featured widgets
Fix #721
2019-02-28 20:33:09 +00:00
George Cushen d2a90467f3 bump version 2019-02-27 22:49:46 +00:00
Bertrand Thierry ed8f04ea2f feat(widget): enable splitting Talks section into past and upcoming talks
See #721
2019-02-27 22:06:39 +00:00
George Cushen a622c8d19f refactor(talk): rename date options in front matter
date, time_start, time_end renamed to publishDate, date, date_end,
respectively.

BREAKING CHANGES: Rename above 3 options in front matter of all talks.

Also, refactor the 404 page so that it just lists the latest 10 pages
overall. This is a more flexible approach than separately listing the
latest pages for only a few different types of content.

See #721
2019-02-27 21:48:16 +00:00
George Cushen 2de0d5da7f feat(widget): replace Projects and Custom with Portfolio and Blank
Essentially, the Projects and Custom widgets have been renamed and their
front matter upgraded to be consistent with the new Pages and Featured
widgets.

Also, refactor the demo, changing the section order and converting the
Teaching section to a Demos section which can be used to walk the user
thought the available demos.

See #918
2019-02-27 20:58:00 +00:00
George Cushen d821bfec76 style: improve contrast of links in dark sections 2019-02-24 22:11:40 +00:00