Commit Graph
365 Commits
Author SHA1 Message Date
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
Dongdong Tian 624a5cb78f fix: *_format to *_view
This fixes 7c2a85c .

See #909
See #926
2019-02-10 15:58:39 +00:00
George Cushen 09d4e07d4f feat(search): enable searching by author name or category
Also, attempt to increase relevancy of search results in general.

Close #921
2019-02-08 17:48:17 +00:00
George Cushen a40a7ffe29 feat(widget): animate Tag Cloud 2019-02-08 00:41:27 +00:00
George Cushen a4ffd6efc5 feat(widget): add css_class option to customize widget style
Allows user to customize the style of a particular widget using the CSS
plugin feature. For example, the background of a widget could be changed
to an image or gradient.

Close #322
2019-02-07 14:37:21 +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 7eb10f2b26 refactor: consolidate list views 2019-02-07 13:50:11 +00:00
George Cushen 8a3f75839a refactor: relLangURL no longer required in paginator
Hugo's template just uses `.URL`:
https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates.autogen.go

See #915
2019-02-07 12:34:44 +00:00
George Cushen f40c63d7ac feat: add People widget 2019-02-05 21:08:40 +00:00
George Cushen 34cf1f0957 fix: when toggling day/night mode, also toggle code highlighting theme
Fix case where code highlighting can be difficult to read after night
mode is toggled by user as the highlight theme remained unchanged.
2019-02-05 18:07:55 +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 11a859dca2 fix: Hero and Carousel image path in edge cases
Fix #910
2019-02-04 01:37:42 +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 8a7c4eb2aa fix(nav): always right align search and dark mode icons
Also change nav links to be left aligned in the demo.
2019-01-22 18:35:53 +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 ae8a86a047 refactor: restructure config using Hugo v0.53 approach
BREAKING CHANGES
See issue below and v4 release note for details

See #867
2019-01-20 01:35:04 +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 35d79b42a3 fix(widget): use absolute image path for Hero Carousel
relURL does not function properly in style tag under certain conditions
2019-01-19 20:42:52 +00:00
George Cushen bc7e541f61 fix(shortcode): allow for multiple child elements in Alerts
Previously, alerts were designed just for a single child consisting of
a paragraph.

Now supports styling of multiple children including lists.

Fix #881
2019-01-15 18:30:02 +00:00
gcushen 85a12b0ad7 feat(widget): emojify About widget interests
Close #845
2019-01-15 17:42:08 +00:00
George Cushen 0592f83382 fix(search): include Algolia JS when engine set to Algolia
Fix #878
2019-01-15 15:10:13 +00:00
George Cushen b68a0995f6 fix: url_custom button height varies when using icons
Fix #872
2019-01-12 20:02:42 +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
Ian Eve Perry 628d09d791 fix(widget): always right align dates in Experience widget
Dates in the experience widget don't currently right align if the location string is longer than the date string. This changes the widget so the dates are always right aligned.

See #858
2018-12-30 23:59:36 +00:00
George Cushen 0312857779 fix(widget): make location optional
Fix #843
2018-12-18 22:25:28 +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 7aef1cdce9 fix(page): button urls broken for internal links on Windows
Fix #829
2018-12-05 00:06:46 +00:00
George Cushen 811b52f280 feat(page): improve featured image ratio on small screens 2018-12-04 23:36:24 +00:00
George Cushen f2f3177d78 feat(widget): add appointment booking link to contact widget
Close #828

BREAKING CHANGE

Replace any `\n` with `\\` in the `address` field.
2018-12-03 17:47:34 +00:00
George Cushen d2330cb261 feat(theme): enable users to switch between day and night modes
Close #807
2018-12-02 00:17:35 +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 935e31470d fix: fix(sharing): use small Twitter card for small images
This commit fixes 929d500d44

Fix #813
2018-11-29 16:57:46 +00:00
George Cushen 929d500d44 fix(sharing): use small Twitter card for small images
Also, check for featured image and avatar image when computing optimal
image to use in Twitter card.

Fix #813
2018-11-29 16:32:27 +00:00
George Cushen 4018752dc8 fix(project): projects not listing child pages
Fix #800
2018-11-29 16:15:58 +00:00
Paulo Moreno 11c1ebe955 fix(i18n): fix Hero widget and search for multilingual sites
Fix #820
2018-11-29 12:18:45 +00:00
George Cushen ddd8e9ad5d fix(search): fix layout on Safari/Webkit
Fix #825
2018-11-29 00:01:51 +00:00
George Cushen cd05bec3be feat(linked data): improve itemtype for project showcase + pub. stream
Close #819
2018-11-25 22:30:08 +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 3ea332ca67 refactor(js): shorten MathJax filename and minify + fingerprint assets
Remove fingerprinting from MathJax config JS to shorten its generated
filename. Reduces chance of JS filenames becoming too long for user's OS
to handle due to long Sha512 asset fingerprinting.

Minifies and fingerprints Academic's own JS for faster loading and to
prevent old versions getting cached by web browser.

Refactors Algolia search JS into its own file.

Close #768
See #794
2018-11-11 16:06:24 +00:00
George Cushen d01237d003 fix(search): add index page of docs to search index
Allows to search content on the main page of docs/tutorials/courses.

Previously, all docs pages except the main page were indexed.
2018-11-11 01:19:37 +00:00
George Cushen 68166bac4a feat(page): support preview_only in combination with header image
Enables use of featured image for thumbnails only with a full-width
header image `[header]` shown on the page itself.

See https://github.com/gcushen/hugo-academic/issues/728#issuecomment-436225586
See https://sourcethemes.com/academic/docs/managing-content/#featured-image
See #728
2018-11-10 17:42:12 +00:00
George Cushen c084f016ae fix(widgets): fix hero image path when canonifyurls=true 2018-11-05 21:16:29 +00:00
George Cushen eb5c91f8f1 fix: feat(project): list associated posts
This commit fixes 3d9a1277a8

Fix #793
See #767
2018-11-04 17:51:06 +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