Commit Graph
712 Commits
Author SHA1 Message Date
George Cushen a6504816bb style: fix Bootstrap light theme overriding dark .text-muted 2019-07-21 20:00:41 +01:00
George Cushen 03599c42d5 feat: add support for multi-day events
Previously, the talk layout was intended for talks (intra-day events).

This commit adds support for more general events which can span multiple
days.

Close #1169
2019-07-21 19:40:58 +01:00
George Cushen c8832e3881 feat: revert Blackfriday math workaround
Also see 255b5e8462
2019-07-20 19:44:30 +01:00
George Cushen 255b5e8462 feat: revert Blackfriday math workaround + improve Mmark support
Guidance for using math going forward:
- add `markup: mmark` to front matter
- no longer need to escape inline or block math in body

Also, fix Mmark task lists by removing bullet points.
2019-07-20 19:43:13 +01:00
George Cushen 42932824ba fix: Mmark aside style should match that of Alert shortcode
See #1214
2019-07-20 19:18:02 +01:00
Aries 2d5fb4a4aa feat: always use https scheme for assets (#1213) 2019-07-19 20:09:11 +01:00
George Cushen 9a619efaec docs: fix typo 2019-07-18 09:45:02 +01:00
George Cushen 5b4d11825e demo: fix typo 2019-07-18 00:55:24 +01:00
George Cushen 0cffd47aca fix: improve handling of math and diagrams
Block math in body can now be wrapped in "<div>$$...$$</div>" tags
Inline math in body can now be wrapping in "`$...$`" backticks
Diagrams can now be created without shortcodes: "```mermaid ... ```"
2019-07-18 00:45:14 +01:00
Alessandro Bahgat ac23dc1b92 fix: if comment count enabled, show only on supported pages
Don't attempt to show Disqus comment count on page types that do not have corresponding Disqus comment block.

Currently, just Post and Page types support commenting.

See #1206
2019-07-15 21:24:07 +01:00
George Cushen 64cceae099 fix: navbar active link highlighting and scrolling
Fixes edge case caused due to responsive navbar height. More
specifically, a possible race condition between Scrollspy init and
updating its offset.

Fix #1199
2019-07-13 00:55:22 +01:00
Alessandro Bahgat c56020be63 fix: improve HTML5 validation: remove nested <p>s
Blackfriday automatically wraps Markdown `Content` text in `<p>` tags.
No need to wrap in additional `<p>` tags (which is also invalid HTML).

See #1197
2019-07-11 21:57:10 +01:00
George Cushen ac5dcd9dc4 fix: improve HTML5 validation
See #1197
2019-07-11 21:47:43 +01:00
George Cushen a8c4f887e5 fix: navbar active link highlighting and scrolling
Fixes some edge cases caused due to responsive navbar height and dynamic
Portfolio widget height, as well as case where offset was non-integer,
requiring float to be rounded up.

Fix #1199
2019-07-11 20:54:52 +01:00
Alessandro Bahgat d9e3e9fcfa fix: 8ddf0ca406 (#1193)
8ddf0ca406 introduced a spurious token
that breaks scrolling back to top
2019-07-09 19:35:07 +01:00
George Cushen 56e8b965f1 feat(sharer): add Pinterest 2019-07-08 18:17:05 +01:00
George Cushen 0810ee024f feat: enable pages to be edited on GitHub
`edit_page` option can be added to `params.toml`. For example,
`edit_page = {repo_url = "https://github.com/gcushen/hugo-academic", editable = {docs = true}}`

Currently works for GitHub repos and pages using the `docs` layout.
2019-07-08 13:13:32 +01:00
Mingyu Derek MA 8ddf0ca406 feat: automatically turn on night mode if visitor prefers dark themes (#1041) 2019-07-07 21:10:11 +01:00
Joel Scheuner adfc2803be fix: CTA icon in Slider widget only works with fas icon pack (#1189) 2019-07-07 20:13:45 +01:00
George Cushen 263926cc45 fix: opening lightbox or search modal causes navbar to move
Edge case caused by page having scrollbar and initial state of lightbox
or search modal not having a scrollbar.

Fix #1177

See https://github.com/fancyapps/fancybox/issues/360
See http://fancyapps.com/fancybox/3/docs/#faq
2019-07-04 21:30:34 +01:00
George Cushen da24df810d fix(js): Chinese TOC links not scrolling to ID on click
Fix #1178
2019-07-02 21:29:33 +01:00
George Cushen 777ab861c9 style: add Mr Robot theme 2019-07-01 23:18:27 +01:00
George Cushen 28b4685408 demo: showcase out-set featured image
See #1175
2019-07-01 21:31:46 +01:00
George Cushen e75bc8ea08 style: remove bullet points from course list 2019-07-01 18:52:24 +01:00
George Cushen 80b3eb6ac4 feat: add placement option for featured images
Placement options: 1 = Full column width, 2 = Out-set, 3 = Screen-width.
Defaults to 1, full column width.
Deprecates the split title/image style that was shown on XL displays.

Close #1175
2019-07-01 18:45:38 +01:00
momchil-anachkov e4f0e80dfb fix: browser back button after searching does not behave properly
Switch URL updating strategy from pushState to replaceState in order to avoid pushing all search queries to the browser history

Fix #1166
2019-07-01 11:27:05 +01:00
George bb3d35133e chore: add GitHub funding config 2019-06-27 02:26:01 +01:00
George Cushen 94cee73155 style(theme): replace Playfair and Cupcake with new Rose theme
Also:
- Make nav links normal font weight
- Make XL container wider
- Update Google Fonts URL
- Explicitly add Twitter Image metadata
2019-06-27 01:26:23 +01:00
momchil-anachkov 9a18bf2211 fix(search): after dialog closes, results reappear on refresh (#1161) 2019-06-26 16:46:47 +01:00
George Cushen 4cfd000001 feat(pub): Only generate Cite button when cite.bib is present
Enables users to place other *.bib files in the folder, to be used for
other purposes such as Blogdown bibliographies.

Close #1157
2019-06-25 21:21:14 +01:00
George Cushen d6cb9463da docs: emojify readme 😆 2019-06-25 20:05:10 +01:00
George Cushen 83d7751855 style(shortcode): show zoom-in cursor when hovering lightbox image 2019-06-20 10:42:51 +01:00
Russell J. Hewett 3e6ab0cf69 feat(shortcode): add lightbox option to Figure (#1146)
Example: `{{< figure src="example.png" lightbox="true" >}}`
2019-06-19 23:16:35 +01:00
Russell J. Hewett f2ba31b0ec style(shortcode): enable lightbox to be used with non-gallery images (#1145) 2019-06-19 22:09:59 +01:00
George Cushen 0562b39893 docs: workaround Hugo bug with non-ASCII characters 2019-06-18 14:00:02 +01:00
George Cushen b6c2aeb497 fix: workaround Hugo bug with non-ASCII characters
See https://github.com/gohugoio/hugo/issues/5687
See #1064
See #1143
2019-06-18 13:55:49 +01:00
George Cushen 2d0de5ad3e docs: update themes 2019-06-17 13:23:59 +01:00
George Cushen 81cd24557c docs: ref docs URL for Page Sharer 2019-06-16 19:54:46 +01:00
George Cushen d33d6b0ff6 feat(shortcode): fix Gallery captions + support Markdown in captions
Fixes image captions when the Gallery shortcode is used on Widget Pages.
The issue was caused by a path mismatch in the code.

Adds support for using Markdown and emojis in image gallery captions.

Close #1136 - the bug report.
2019-06-16 19:10:49 +01:00
Cassio Batista 0c36cdca45 feat(page): enable page sharing buttons to be customized
To customise sharing buttons, override `themes/academic/data/page_sharer.toml` by copying the file to `data/page_sharer.toml` at the root of a site and editing the copy.

Close #1108
Close #1131
2019-06-15 17:23:08 +01:00
George Cushen 4fed5675e9 fix(style): code font-family no longer loaded from font theme
$sta-font-mono was referenced as literal during CSS->SCSS conversion.

Fix #1139
2019-06-15 14:45:35 +01:00
Serge Bibauw dc84c03fbd i18n: Update French and Spanish translations (#1122)
i18n: update French and Spanish translations
2019-06-04 00:29:09 +01:00
Cassio Batista 3dbba7460b i18n: fix Portuguese translation (#1121)
Many of the Portuguese translations in the i18n/pt.yaml file were still in English.
2019-06-03 21:30:39 +01:00
George Cushen 63953ab3d4 style: improve consistency if Hugo --minify used 2019-06-02 23:19:57 +01:00
George Cushen 07d94380f2 feat(docs): highlight active page section in right sidebar TOC
Fix #1099
2019-06-02 18:54:18 +01:00
George Cushen 701e107e53 fix: Academic's RSS template is not applied to sections or taxonomies
The RSS template at layouts/index.xml was only applied to the website
root and not sections or taxonomies such as /post/.

For instance:
/index.xml used Academic's RSS template
/post/index.xml used the default template from Hugo

Fix #1120
2019-06-02 17:41:06 +01:00
George Cushen 35292a6469 style: make tables responsive
Fix #1119
2019-06-01 19:32:55 +01:00
pointbre a6da45d7fd fix: case where social sharing links are empty
Fix #1116
2019-06-01 18:44:32 +01:00
George Cushen a71297bbfd fix: case when font and color themes not found even when present
See #1118
2019-06-01 18:08:19 +01:00
gcushen c2455378cc fix: 9263fcd3c9 2019-06-01 16:43:40 +01:00