Commit Graph
506 Commits
Author SHA1 Message Date
gcushen afcf657f93 workaround TOML line break bug in Hugo v0.53
See #852
2018-12-28 01:05:20 +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 5c0c7f5def feat(icon): update FA from 5.4.1 to 5.6.0 2018-12-12 16:55:02 +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 2bfa048699 bump version 2018-12-02 00:21:01 +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 c1b2899f6a docs: add Project KickstartR to readme 2018-11-18 23:42:16 +00:00
George Cushen 07c9f4f387 feat(search): Add search shortcuts (/ and ESC)
* Press / to toggle search dialog
* Press ESC to close search dialog

See #784
2018-11-17 23:39:06 +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 911620a8f3 docs: link to Academic Scripts repo 2018-11-11 01:49:26 +00:00
George Cushen d0154a840b Bump version 2018-11-11 01:45:08 +00:00
George Cushen 2ee38a83d7 docs: link to Academic Scripts repo 2018-11-11 01:40:19 +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
Dongdong Tian 3b4616e357 fix(i18n): update Chinese (#797) 2018-11-05 21:23:45 +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 2eb58c08b7 Bump version 2018-11-04 00:41:33 +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 c7f2d55c65 Set min_version to string rather than float
See https://github.com/gohugoio/hugo/issues/5399
2018-11-03 18:19:35 +00:00
Sun Yaozhu 4b5c97262c fix(widgets): respect the date_format option for experience widget (#783) 2018-11-03 18:09:39 +00:00
George Cushen ca4fd7159d feat(widgets): do not require email if using Netlify contact form
Netlify routes messages from contact form to its admin panel, so no
email address is required.

By not requiring email in this case, it is not revealed to any spam bots
which might try to scrape a website's public Git repository.

Close #775
2018-11-03 17:26:27 +00:00
George Cushen 31eb870296 chore: require Hugo v0.50+
Hugo v0.50 fixes bug with using `hugo new` to create new pages

See #732
2018-11-03 13:13:23 +00:00
George Cushen 89247fa534 docs: add Patreon link 2018-11-02 22:29:16 +00:00
Carlos Cámara 35b552f213 i18n: fix Catalan translation (#779) 2018-11-02 18:30:19 +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 75abb65a94 feat(talk): support YAML front matter for talks
Close #555
2018-10-28 01:17:05 +01:00
George Cushen 1290763945 feat(page): re-apply markdownify on author names
Close #761
2018-10-28 00:23:30 +01:00
George Cushen e877046fa7 docs: update screenshot 2018-10-27 18:23:47 +01:00
George Cushen 9e49f64903 fix(css): fix project widget's simple mode when widget is renamed 2018-10-27 18:22:28 +01:00
George Cushen ab20e8f9f2 refactor(js): use relative URL for Mathjax config JS
Works around potential multi-host asset Permalink bug in Hugo.

See #751
Close #757
2018-10-27 12:34:45 +01: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 bbfd7e9439 feat(i18n): support multi-lingual multi-host (one baseURL per language)
Enables having a different sub-domain per language.

See https://gohugo.io/content-management/multilingual/#configure-multilingual-multihost

Close #751
2018-10-25 19:18:41 +01:00