Commit Graph
45 Commits
Author SHA1 Message Date
George Cushen f78feefee9 feat: add support for non-ASCII tags, authors, and categories
For example, now Chinese can be used in the names of tags, authors, and categories.

Previously, this was blocked due to bugs in Hugo.

As of Hugo v0.65, new functionality for taxonomies was introduced. The Hugo taxonomy feature powers authors, categories, and tags in Academic.

BREAKING CHANGE:
Requires Hugo v0.65+
2020-04-24 20:32:58 +01:00
George Cushen 601620c7a6 feat: make taxonomy URLs singular
- make taxonomy URLs singular, consistent with other Academic pages (workaround Hugo attempting to publish taxonomy URLs with plural names). This requires the breaking change below.
- Fix extra space/lines appearing in the author cards underneath page content as reported at https://spectrum.chat/academic/help/publication-widget-adds-additional-lines-at-bottom-of-the-page~315f77d8-7cc8-44a9-a431-5b64b7556c53

BREAKING CHANGE:
Rename `name` to `title` in author profiles within `author/` folder.
2020-04-15 01:17:56 +01:00
George Cushen ebfb1d9fff feat: support alt-text for featured images
An optional `alt_text` parameter can be added when specifying a featured `image` in a page's front matter.

Alt text is used to describe the image when the page is read via a screen reader.

This commit also changes profile photo alt text from "avatar" to the person's name in alignment with major CMS and social sites.

Close #1592
2020-03-14 01:05:25 +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 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 d8fa0b9523 refactor: strip out Microdata from About widget
Forms part of the transition from Microdata to JSON-LD.

See #413
2019-09-09 14:59:19 +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 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
gcushen 85a12b0ad7 feat(widget): emojify About widget interests
Close #845
2019-01-15 17:42:08 +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 e7ed2608c3 fix(profile): fix social link when mailto scheme is used
Fix #763
2018-10-28 16:06:36 +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 339b727152 accessibility: Add alt tag to avatar image
See #705
2018-10-13 02:42:09 +01:00
George Cushen a86e35245e about widget: Refactor avatar (#683) 2018-09-15 18:24:15 +01:00
George Cushen f45e2c0ca5 about widget: Fix avatar not showing in some cases 2018-09-09 01:18:46 +01:00
Prateek Kumar 965a64ffaa Migrate from Bootstrap v3 to v4 (#571) 2018-09-08 22:50:36 +01:00
George Cushen 7b639f107c widgets: Upgrade to Font Awesome 5
See #659
2018-09-03 01:06:18 +01:00
Conor Anderson a1989ea25c Upgrade from Font Awesome v4 to v5 (#659)
Require Hugo v0.48+
2018-09-01 18:10:23 +01:00
George Cushen 6f4159976a about: Fix avatar sometimes not showing in Hugo v0.45+ 2018-08-01 22:45:40 +01:00
George Cushen 737470c027 about widget: Fix metadata for avatar (#533) 2018-05-08 21:40:16 +01:00
George Cushen 9fa9d56eb3 Add support for uglyURLs = true
Close #464
2018-04-19 21:10:56 +01:00
George Cushen e87fde0d23 Fix last commit 5c2824fabf 2017-10-19 20:40:18 +01:00
George Cushen 5c2824fabf Markdownify the interests list and talk abstracts (Close #297)
* About widget interests list
* Talk abstracts
* Breaking change: math in talk abstracts may require extra escaping
* Contact widget: support multiline address
* Talk page: Add noopener to _blank link target
2017-10-19 20:33:39 +01:00
George Cushen 466632ac4d Use noopener for external URLs that open in new tabs (Close #286) 2017-10-16 00:45:45 +01:00
George Cushen b031608ee4 about widget: Allow for multiple organizations (Close #132)
- Remove `organization` and `organization_url` options from config
- Add `organizations = [ {name="Org Name", url=""} ]`
- Continue to support legacy options
- Only show `role` if it is set
2017-09-30 22:50:58 +01:00
George Cushen 4cc8bb337b about widget: Change class name to work around uBlock bug (Close #276) 2017-09-30 16:29:58 +01:00
George Cushen ba84760563 about: Support avatars from Gravatar.com (#194) 2017-06-12 02:07:44 +01:00
George Cushen 0768fee350 Fix portrait image not displaying when baseurl is not domain root 2017-04-28 15:28:18 +01:00
Ronny Chevalier 20dcd3d88d about: Fix schema tag for portrait image (#168)
The image property is not set properly. It expects text or url but it
will not look in the `background-image` CSS property, thus it is 
not found.

Fix this by adding a hidden meta element.
2017-04-22 12:59:47 +01:00
Ronny Chevalier 74041d65d1 Add more schema tags (#157)
* about,contact: add more schema tags for contact related information.
   It adds schema tags for the e-mail, telephone, and address, when they
   are available. They are linked to the Person type.

* about: add the schema Organization type.
   This way we also tag the organization url not just its name.

* about: add a hidden url schema property to the person.
   It makes sure that the URL of the website is linked to the person.

* about: add the sameAs property for each social link.
2017-04-20 20:18:33 +01:00
George Cushen b7b20820e6 about widget: Support organization link (#108)
* Add optional `organization_url` to config
2017-01-29 01:15:35 +00:00
George Cushen 31f9ce5f94 Add internationalization (i18n) support (#12) 2016-12-19 06:01:11 +00:00
George Cushen 6616d46eb3 Open external links in new tabs by default 2016-12-18 01:45:36 +00:00
Henrik Peters d4fb286cfd about widget: Allow any URI scheme for social links (#64)
E.g. URLs beginning with `bitcoin:` or `tel:` can now be used.
2016-12-07 14:06:57 +00:00
George Cushen 8277658b81 Set widget identifiers to their respective filenames
Example: `content/home/about.md` widget is now linked from the
menu bar by setting the relevant URL as "#about" in `config.toml`.
2016-11-24 15:57:54 +00:00
George Cushen 3b7a6747ea about widget: Make year optional 2016-10-12 02:10:34 +01:00
Stephan Kulla 890f89d8d1 about.html: Trim long line for social icons (#48)
Signed-off-by: Stephan Kulla <git.mail@kulla.me>
2016-10-04 15:35:59 +01:00
Stephan Kulla 7763b7dcba about.html: Make avatar chooseable and use relURL (#47)
Signed-off-by: Stephan Kulla <git.mail@kulla.me>
2016-10-04 15:32:27 +01:00
Stephan Kulla db9dcf6055 widgets: Direct inclusion of widgets (#45)
Replace the long if-else block in index.html with a direct inclusion of
the widgets.

Signed-off-by: Stephan Kulla <git.mail@kulla.me>
2016-10-04 01:14:37 +01:00
Stephan Kulla fe05501b9a Improvement for social icons in about.html (#41)
* Apply aria-hidden to the whole list of social icons since it also affects 
 all descendants. Thus, the code becomes a bit shorter. See
http://stackoverflow.com/a/18933265 for more details.

* Shorten code for including social icons. This way icon packs which are 
included via `custom_css` are also supported.

Signed-off-by: Stephan Kulla <git.mail@kulla.me>
2016-09-30 11:43:08 +01:00
George Cushen dc0511a176 css: Add responsive text scaling and general improvements 2016-09-25 05:01:38 +01:00
George Cushen 61769e9b29 Refactor homepage sections as dedicated widgets in content/home/.
Enable full control of the order in which sections appear.
Add option to add custom Markdown content at top of widgets (e.g. to introduce sections).
Add Keybase option to config.
Use 2 space indentation.
Update docs.
Note: requires Hugo 0.16.
2016-09-24 18:22:47 +01:00