Commit Graph
18 Commits
Author SHA1 Message Date
George Cushen 63918091fb feat: show profile cards for all page authors, not just first author
If `site.Params.profile` is set to `true`, an author profile card will be displayed at the end of the page for every author (assuming that a profile has been setup for them under `content/authors/`).

Close #1481
2020-03-06 20:18:06 +00:00
George Cushen 94e6169320 fix: revert "fix: workaround Hugo GetPage/urlize bug with non-ASCII usernames"
This reverts commit 03af4df1

Ensure `removePathAccents = true` in `config.toml` to workaround the Hugo bug: https://github.com/gohugoio/hugo/issues/5687

Fix #1575
Fix #1563
2020-03-05 19:54:20 +00:00
George Cushen 242479c5ed feat: add support for displaying square avatars
Simplify generated avatar resources and commit.

See #1509
2020-01-12 14:35:59 +00:00
George Cushen 1a3efac296 feat: add support for displaying square avatars
Also, make About widget avatar responsive, appearing larger on large devices.

BREAKING CHANGE:
`gravatar` option moved under new `[avatar]` section in `params.toml`.
`shape` option added under new `[avatar]` section in `params.toml`.

Close #1509
2020-01-12 14:27:27 +00:00
George Cushen 03af4df12a fix: workaround Hugo GetPage/urlize bug with non-ASCII usernames
Attempt to use anchorize rather than urlize for fetching user profiles for users with non-ASCII usernames. Apparently `anchorize` does not perform URL encoding unlike `urlize`, so may be better suited for use with `GetPage`.

See https://github.com/gohugoio/hugo/issues/5687
2019-12-15 16:16:09 +00:00
George Cushen ec8b60f71f feat: move social share buttons below content
Also, add page_footer.html to help make page footers more consistent.

Close #1383
2019-10-12 17:23:08 +01:00
Christophe Bedetti 4b72dba09d feat: add optional social icons to People widget
BREAKING CHANGES

The `user_groups` field has been moved under the new `[content]` front matter section.

See #1345
2019-09-24 22:07:24 +01:00
George Cushen 55106c1ff6 refactor: page author link based on site_type in params.toml 2019-09-11 13:27:11 +01:00
George Cushen 5d590b64f6 refactor: strip out Microdata for list items and page metadata
Forms part of the transition from Microdata to JSON-LD.

See #413
2019-09-09 13:59:22 +01: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 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 d664b4bcba refactor: .Site.x to site.x 2019-05-01 23:36:59 +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 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 74212542b2 fix(profile): fix social link when mailto scheme is used
Fix #763
2018-10-28 16:19:00 +00:00
George Cushen 8a4a302d47 fix(profile): fix social link when mailto scheme is used
Fix #763
2018-10-28 14:16:37 +00:00
George Cushen fa5de9234d feat(profile): support [[params.social]] links to homepage sections
Enables using email icon to link to contact form.

Close #754
2018-10-25 20:22:03 +01:00
George Cushen 3358904dc3 feat(page): add author profile
The following boolean (true/false) page params control page features:

- share
- comments
- reading_time
- profile
2018-10-21 00:33:00 +01:00