Commit Graph
888 Commits
Author SHA1 Message Date
Stanislav Valasek 7130499dc4 i18n: add Czech translation (#1555) 2020-03-01 20:03:01 +00:00
George Cushen c5b26892a9 feat: add support for SVG logo format + fix logo URL in JSONLD
Can now upload an SVG logo to `assets/images/logo.svg`.

If your site is for an organization, Google currently requires that the logo is PNG rather than SVG otherwise the site may not receive rich search results based on the JSONLD (see https://developers.google.com/search/docs/data-types/logo).

Also, this commit fixes the logo URL in the site's JSONLD metadata - irrespective of the above feature, the logo URL metadata broke when adding the new automated logo detection system in #1439.

Close #1512
Fix #1516
Fix #1439
2020-02-09 00:53:02 +00:00
George Cushen 5e62b09331 fix: day/night mode and enable reverting to the default auto day/night mode
Fixes:
- There is no easy way for a user to reset their day/night preference back to automatic (currently, they must use their web browser to clear the local storage data for the site)
- When changing the theme variation is disabled by admin (by setting `day_night` to `false` in `params.toml`), the operating system's day/night preference is still applied
- If the admin removes the option to change the theme variation, the preference for a user who already visited the site is still read from the localstorage and applied. For example, this could result in the user seeing a theme variation with poor contrast that was not intended to be shown as the site's theme was optimized for the other variation.

Fix #1385
Fix #1526
Fix #1534
2020-02-09 00:10:45 +00:00
George Cushen 9ef1663760 fix: db716b2349
Fix Editorconfig auto-added EOF new line to render-link hook, causing whitespace to begin appearing after links - particularly noticeable when there is punctuation after a link.
2020-02-08 21:09:41 +00:00
Mikel 7ce6e75542 i18n: update Basque (#1539)
Translation to Basque was unfinished. Also, I corrected some mistakes.
2020-02-01 22:32:15 +00:00
George Cushen 4b6b625b51 docs: edit min Hugo version 2020-02-01 22:22:29 +00:00
Suh. Junmin da92e3d584 Update korean translation (#1538)
i18n: update Korean translation
2020-01-30 19:39:11 +00:00
George Cushen 0b2f6997ef demo: sync resources 2020-01-26 20:32:16 +00:00
George Cushen 0d8d0d43a1 feat: add support for Hugo v0.63
Hugo v0.63 introduced breaking changes such as breaking templates that don't immediately begin with a `define` (even if the first line is just a code comment): https://gohugo.io/news/0.63.0-relnotes/

Adds compatibility with Hugo v0.63, fixing author pages rendering blank.
2020-01-26 20:29:18 +00:00
George Cushen 1f6beec9f7 fix: GA outbound link tracking
Fixes external links opening both in current tab and new tab when `google_analytics` enabled.

Fix #1511
2020-01-26 16:38:01 +00:00
George Cushen 2f00beab89 feat: default to fixed width icons with icon shortcode 2020-01-26 00:52:40 +00:00
George Cushen 581faa19e7 feat: add icon shortcode to render icons within Markdown content
See https://sourcethemes.com/academic/docs/writing-markdown-latex/#icons
2020-01-25 22:39:22 +00:00
George Cushen df2e1ed79d docs: update language pack lister 2020-01-25 22:35:02 +00:00
George Cushen f3c1bed36f feat: update Font Awesome from 5.11.x to 5.12.x
Close #1533
2020-01-25 22:33:29 +00:00
George Cushen 7b4470ebb5 fix: 55228b7ade
Fix figure images not loading when not within page bundle.
2020-01-24 02:08:50 +00:00
George Cushen c74f07dd01 refactor: docs menu name detection logic
Enables streamlining Academic docs front matter with just `menu: "updates"` for example.
2020-01-24 00:57:50 +00:00
Aleks Aleksandrovs 7c87076824 i18n: add Latvian language (#1531) 2020-01-23 23:47:53 +00:00
George Cushen 55228b7ade fix: lazy loading causing inaccurate anchor scrolling + link highlighting
As of a recent update, gallery and figure images are lazy loaded. However, lazy loading without initial sizes defined can lead to inaccurate anchor scrolling and active link highlighting as the anchor offset changes after an uncached image occurring before the anchor is lazily loaded.

See https://github.com/gcushen/hugo-academic/issues/1199#issuecomment-577293818
Fix #1199
2020-01-23 23:44:08 +00:00
George Cushen 4a7f4dc088 fix: improve active link highlighting for edge cases
Attempt improvement by moving the scroll to anchor logic to the end of window load and adding 1 to elementOffset in case of navbar border.

Appears to solve any issues that could arise (such as when clicking Courses and then Publications, but Projects being highlighted instead) in local testing.

See https://github.com/gcushen/hugo-academic/issues/1199#issuecomment-577293818
See #1199
2020-01-23 22:36:42 +00:00
George Cushen d9e553a96b style: upgrade Bootstrap from 4.3.1 to 4.4.1 2020-01-23 22:15:37 +00:00
chivitchhoeun bf0d133262 i18n: add Khmer language (#1523) 2020-01-20 12:05:36 +00:00
George Cushen 350beb358b fix: only allow auto day/night when day_night enabled
Fix #1526
2020-01-20 11:19:55 +00:00
George Cushen de256253f1 fix: add support for external_link in archives
Improves consistency: external projects are now opened in new tab whether they are viewed from the Portfolio widget or archive page.

Fix #1525
2020-01-19 23:56:30 +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 db716b2349 feat: add Markdown render hook to parse links
Adds support for opening external links in new tabs in Hugo v0.62+.

BREAKING CHANGE:
Requires Hugo v0.62

See #1514
2020-01-11 23:44:47 +00:00
George Cushen d995e4d14d fix: 0cc80f90ee
Fix logo in navbar transforming into site title on mobile.

See #1439
Fix #1507
2020-01-04 18:00:33 +00:00
George Cushen d1d761fbc6 chore: bump version 2020-01-02 17:04:11 +00:00
George Cushen 48397fb6d4 fix: multilingual mode with different baseURLs
With Hugo v0.60+, the translation menu in the navbar is broken when a different baseURL is set for each multilingual site. This update attempts to fix that.

See #1503
2020-01-02 11:19:30 +00:00
George Cushen eb953ed475 demo: sync preprocessed resources for Hugo Themes Site 2020-01-01 12:56:19 +00:00
George Cushen 1990134455 fix: add author name to profile page title
Author name now appears in browser tab when visiting an author's profile page.
2019-12-30 00:59:34 +00:00
George Cushen 0cc80f90ee feat: automatically detect logo image
Simplify the process of adding a logo to a site.

BREAKING CHANGE:
Removes param for logo from params.toml. Instead, move logo image to `assets/images/logo.png`, creating the folders if necessary.

See #1439
2019-12-29 22:00:38 +00:00
Dawid Gosławski 577eeeaca2 i18n: update Polish translation (#1501)
Translate missing Polish translations from English.
2019-12-29 21:47:34 +00:00
George Cushen ce75013228 feat: automatically generate website icons
See #1439
2019-12-28 23:48:40 +00:00
Slashdoom 6c86640af4 fix(widget): tag cloud max size calculation (#1497)
Calculate max value first since the list is mutable to Hugo's `Reverse` function - i.e. Hugo's `Reverse` function currently appears to operate in-place.
2019-12-28 20:44:44 +00:00
Julian Pawlowski 30b6d5c7e5 demo: Germany and France address format should be the same (#1487) 2019-12-28 20:30:29 +00:00
thomase1993 3965252fc5 refactor: define cookie consent assets in assets.toml
Moved the Cookie Consent asset definition to assets.toml so that it's possible for offline site to use local Cookie Consent assets.

Also upgraded Cookie Consent to 3.1.1.

Close #1495
2019-12-28 20:13:15 +00:00
George Cushen 361707f4fd feat: lazy load figures and gallery images
The proportion of image data in the typical payload of a website can be significant. Lazy loading is a solution that lowers initial page payload and load time, without removing content. Non-critical resources are instead loaded at the moment that they are needed.

Also, load MathJax async in head if required, rather than at end of body.

Close #1106
2019-12-18 14:33:22 +00:00
Märt Põder 41d3bf8aa7 i18n: add Estonian translation (#1482) 2019-12-16 19:36:57 +00:00
George Cushen 949e15d19a demo: simplify inline math example for Goldmark 2019-12-16 11:49:06 +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 5c6c8770b1 feat: add support for Hugo v0.60
Slides now work correctly in Hugo v0.60.

Close #1479
2019-12-15 15:52:53 +00:00
George Cushen 45c6e7027d chore: update thumbnail 2019-12-12 21:48:45 +00:00
George Cushen ba772f60ce feat: upgrade from Mermaid v8.3.1 to v8.4.3
Close #1419
2019-12-12 20:54:47 +00:00
George Cushen 42defb4684 fix: highlight active ToC item for Goldmark (Hugo v0.60)
Equivalent to previous workaround for Hugo's Blackfriday ToC in ea2a98a2c3

See ea2a98a2c3
2019-12-09 18:29:06 +00:00
Russell J. Hewett 4e893ca29e fix(widget): Portfolio responsive breakpoint (#1462)
Make Portfolio responsive breakpoint consistent with other widgets.

Likely this specific code was missed in the migration from Bootstrap 3 to 4.
2019-12-09 16:33:43 +00:00
Emilia Trollros b5b5f125e9 i18n: add Swedish language pack (#1457) 2019-12-08 01:33:23 +00:00
George Cushen ea2a98a2c3 feat: add support for Hugo v0.60 - remove Blackfriday TOC workaround 2019-12-07 20:37:26 +00:00
George Cushen aa4c95277c feat: add support for Hugo v0.60 2019-12-07 20:02:54 +00:00
George Cushen 6d97e95942 feat: add support for Hugo v0.60 2019-12-07 19:58:43 +00:00