Commit Graph
208 Commits
Author SHA1 Message Date
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 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
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 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 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
George Cushen aa8b3f35ba feat(widget): add option to customize section spacing
Close #433
2019-03-24 19:24:58 +00:00
George Cushen ea4621aedb refactor: homepage sections as headless leaf nodes
See #970
2019-03-17 20:31:20 +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
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 2e146eed9c feat: consolidate Featured Talks/Pubs widgets into Featured widget
See #918
2019-02-24 19:45:02 +00:00
gcushen 4a45b9003e demo: fix text_color_light 2019-02-24 02:58:26 +00:00
gcushen 2df001d05c demo: fix text_color_light 2019-02-24 02:58:08 +00:00
gcushen c59f526ecd demo: fix text_color_light 2019-02-24 02:57:30 +00:00
George Cushen 9985bc5e89 feat: consolidate Recent Posts/Talks/Pubs widgets into Pages widget
BREAKING CHANGES: See issue below

See #918
2019-02-24 01:06:53 +00:00
George Cushen 3462cadba1 demo: add gallery section 2019-02-20 17:46:08 +00:00
George Cushen 3ac394a58c feat(widget): apply a background color, gradient, or image to any widget
Also renames Hero Carousel widget to Slider.

BREAKING CHANGES:

- widget `[header]` options removed and replaced with `[background]`
- `hero_carousel` widget renamed to `slider`

Close #948
2019-02-19 13:11:55 +00:00
George Cushen 25bac3db27 demo: make usernames consistently lowercase 2019-02-17 13:01:26 +00:00
George Cushen d7135a1b88 feat(widget): hero: multiple paragraphs, extra cta, note, & image
- Support multiple paragraphs
- Icon support for `[cta]` call-to-action button
- Add optional alternative call-to-action link `[cta_alt]`
- Add optional note underneath cta button
- Add optional image
- Refresh the demo's instance of the Hero widget

Close #935
2019-02-14 02:13:09 +00:00
George Cushen 26df07a634 refactor: rename url_custom to links
BREAKING CHANGE:
Rename `url_custom` to `links` if using it in the front matter of any
content file.

See #765
2019-02-13 02:05:01 +00:00
George Cushen 188505b375 feat(pub): add search box to enable filtering by any attribute
Close #922
See #390
2019-02-13 01:21:18 +00:00
George Cushen fe52f6b55e refactor: consolidate and simplify compact views
- Update demo
- Fix archetype

See #918
2019-02-11 14:08:49 +00:00
George Cushen 1584b2db62 refactor: consolidate and simplify compact views
- Consolidate the code for all compact views into a single file
- Make authors clickable in all compact views
- Improve archetypes

BREAKING CHANGES:
`abstract_short` field dropped in publications and talks in favour of
`summary` field.

See #918
See https://github.com/gcushen/hugo-academic/issues/916#issuecomment-462274214
2019-02-11 13:59:18 +00:00
George Cushen 58dd61b0e7 fix(widget): People widget - add authors to user account
- add `authors` to set username in user account and force generation
  of user profile page whether or not user has published content. This
  is particularly useful for linking users from the People widget.
- People widget: only link to users which have profile pages generated -
  prevents 404 error if user did not perform the point (1) above
- add i18n "user_profile_latest" to customize user profile text

Fix #274
2019-02-07 14:30:07 +00:00
George Cushen f40c63d7ac feat: add People widget 2019-02-05 21:08:40 +00:00
George Cushen 066e7ebcfb demo: add blog based on Jupyter notebook 2019-02-05 11:43:16 +00:00
George Cushen 7c2a85c351 feat: improve listings
- link author profile pages in listings
- display author name (rather than username) in metadata
- refactor `list_format` to `view` and use new consistent mappings
- add `citation_style` in `params.toml`
- re-order Accomplishments widget in Demo
- make params/comments more consistent in all widget front matter
- Author page: don't show username if profile exists as that will
  already show the user's display name
- Publication card: move author and publication name to metadata bar to
  be consistent with other listings
- Remove portrait.jpg from static as it was duplicated for Demo author

BREAKING CHANGES: See issue below.

See #909
2019-02-04 22:14:28 +00:00
George Cushen 4c9c743ae6 chore: update demo URL
Also, fix Netlify ENV config
2019-01-29 15:05:15 +00:00
George Cushen e913aacb34 refactor: restructure config and front matter parameters
- contact widget: support custom contact links with `contact_links`
- talks: add `all_day`
- custom_css/js -> plugins_css/js
- load custom css/js from `assets/` dir instead of `static/`
- minify custom css/js
- convert publication types from config params to i18n translations
- projects: always list child items (config option deprecated)

BREAKING CHANGES: Refer to issue below.

See #867
2019-01-26 20:36:15 +00:00
George Cushen 0a78ba6856 feat: hide page modification date for talks and publications
Having both talk/pub. date and page modification date displayed may
cause confusion.

Close #891
2019-01-22 18:22:06 +00:00
George Cushen 70b87306be refactor: rename selected to featured
BREAKING CHANGES
See issue below and v4 release note for details

See #867
2019-01-20 00:32:50 +00:00
George Cushen ab7e896227 feat(user): add author profile system
- Add author taxonomy to config
- Restructure user data
- Add user profile pages
- Refactor author profile box
- Refactor author link in page metadata to point to author profile page
- Enable About widget to be re-used for different users

BREAKING CHANGES
See issue below and v4 release note for details

See #752
2019-01-20 00:10:03 +00:00
George Cushen 3da446cf77 fix(widget): rename Accomplishments widget + use soft-hyphen 2018-12-31 11:55:14 +00:00
Mrinal Jain ae9882de90 feat(widget): add Accomplishments widget
See #792
See #773
2018-12-31 00:47:22 +00:00
George Cushen fbcb7f2761 feat(widget): restrict post filter to only one tag or category
Close #815

BREAKING CHANGES

Remove `tags_include` and `tags_exclude` from `home/posts.md`
Add `filter_tag` and `filter_category` to `home/posts.md`
2018-12-16 00:48:51 +00:00
George Cushen 8010d5a45c refactor(project): projects not listing child pages
Simplify code to get content name by using `.File.ContentBaseName` -
it gets content name irrespective of whether page is a bundle or not.

See #800

BREAKING CHANGE

`url_project` can now only be used to link pages to external websites.
To link a page to a project page, use `projects` option.
2018-11-29 21:01:37 +00:00
George Cushen e95405f79a feat(search): add search icon to navbar to open new search dialog
* Search icon added to navbar if search enabled in config
* New search dialog added which overlays current page when searching
* The docs search box now opens the new search dialog instead of
  displaying results within the docs page itself

Close #784

BREAKING CHANGE:

Search widget is deprecated and `content/home/search.md` should be
removed
2018-11-17 22:42:27 +00:00
George Cushen 911620a8f3 docs: link to Academic Scripts repo 2018-11-11 01:49:26 +00:00
George Cushen d930502a55 feat: add preview_only option for featured image
Add `preview_only = true` under `[image]` in a page's front matter to
only show featured image in page previews and not on the page itself.

Example: https://raw.githubusercontent.com/gcushen/hugo-academic/master/exampleSite/content/post/getting-started/index.md

Close #789
See #728
2018-11-03 23:42:15 +00:00
George Cushen 0ff174bbf4 feat(shortcodes): add support for image gallery in page bundle
To use:

1. Create a gallery album folder in page bundle
2. Add images to album folder
3. Paste `{{< gallery album="<ALBUM FOLDER>" >}}` in your page content

Close #786
2018-11-03 23:27:03 +00:00
George Cushen 3d9a1277a8 feat(project): list associated posts
Close #767
2018-11-03 22:37:36 +00:00
George Cushen dd5422981b feat: Add support for icons in url_custom
Close #787
Close #326
2018-11-03 22:17:00 +00:00
George Cushen de269ebdb8 feat(project): add showcase mode and revert card view to resized images
* add project showcase layout, set `view = 2` in `projects.md` to use
* revert card view to use resized images rather than cropped images
* fix project filters for tags with non-ASCII (i18n) characters
* add single column wide layout for project widget, to use set
  `widget_layout` in `projects.md`
* add `flip_alt_rows` widget option to flip alternate rows in showcase
  mode
* `url_` link buttons can now be added for projects
* all link buttons now appear in page header rather than under a 'links'
  section within the page
* Markdown slides can now be linked from any page by using new `slides`
  option
* Isotope JS is now only activated when required (i.e. when using card
  view or when filters are defined)
* `links` translation removed from i18n
* consolidate talk, pub., and new project links files into new single
  `page_links.html` for all pages
* move project widget layouts to their own files

Close #764
Close #785
Close #776
Close #645
Close #326

BREAKING CHANGE:

CSS class names of project tags are now prefixed with `js-id-` to
namespace them and prevent clashes with existing CSS classes.

Migrate any filter `tag`s in `projects.md` that are prefixed `.` to the
new `.js-id-` prefix.
2018-11-03 20:13:43 +00:00
George Cushen 89247fa534 docs: add Patreon link 2018-11-02 22:29:16 +00:00
George Cushen e9597c72c7 feat(archetype): add hugo new template for docs/tutorial layout
- To use: `hugo new --kind docs tutorial/hello.md`
- Remove [header] from exampleSite docs since it's deprecated for docs
2018-10-21 21:00:43 +01:00
George Cushen 34deeedb07 feat(theme): add Apogee and Cupcake themes
- Improve button styles on dark themes
- Add to Readme and Getting Started post
2018-10-20 21:49:33 +01:00