Commit Graph
628 Commits
Author SHA1 Message Date
George Cushen 29bd98eece feat: point Edit Page link directly to GitHub editor
Previously, it pointed to the file viewer.

Close #1224
2019-07-23 21:00:35 +01:00
George Cushen 72a5e5b8c0 feat(shortcode): enable figure lightbox by default
Add "lightbox"="false" to shortcode args to disable
2019-07-23 20:56:40 +01:00
George 6dfa6c7460 refactor spacing 2019-07-23 09:24:33 +01:00
Thom Wiggers ee6cef97ca Allow to specify branch of git repository 2019-07-23 09:38:51 +02:00
George Cushen a1ba678e79 feat: refactor commenting system + add support for Commento
BREAKING CHANGES
See #1218

Close #1218
2019-07-22 19:50:11 +01:00
George Cushen 026bb47c72 feat(widget): add Compact view to Portfolio + refactor Portfolio
Also:
- Refactor List view to be consistent with the standard List views.
  - This involved adding support for Project type and external links to
    the standard
  - Now, Portfolio's List and Compact views are just wrappers around the
    standard List and Compact views.
- Fix summary in Showcase view not falling back to use Content.

Fix #1165
2019-07-22 00:36:07 +01:00
George 5a2a2f3e20 Remove search-query id from 404 input. (#1216)
* Remove search-query id from 404 input.

Search query is propagated via the q parameter being added to the query
string when users hit enter.
The only reference to #search-query I found is for styling when dark
theme is enabled. The search widget on the page has the right background
color even when removing the id.

* Remove search-query from searchbox in docs layout.
2019-07-21 20:06:27 +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
Alessandro Bahgat f61752e70f Remove search-query from searchbox in docs layout. 2019-07-21 09:54:56 -04:00
Alessandro Bahgat 8665d90526 Remove search-query id from 404 input.
Search query is propagated via the q parameter being added to the query
string when users hit enter.
The only reference to #search-query I found is for styling when dark
theme is enabled. The search widget on the page has the right background
color even when removing the id.
2019-07-21 09:11:05 -04:00
Aries 2d5fb4a4aa feat: always use https scheme for assets (#1213) 2019-07-19 20:09:11 +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
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
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 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
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
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
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
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 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
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
George Cushen 9263fcd3c9 refactor docs to use baseof 2019-06-01 15:15:19 +01:00
Russell J. Hewett 19c83715ef refactor(baseof): partial should not be a full page template 2019-05-30 22:33:58 -04:00
Russell J. Hewett 57c72011cb refactor(baseof): added main blocks to two stray templates 2019-05-30 22:33:58 -04:00
Russell J. Hewett bd31268e19 refactor(baseof): docs cannot use baseof or else footer is displayed twice 2019-05-30 22:33:58 -04:00
Russell J. Hewett d3ea424f72 refactor(baseof): removed unnecessary partials 2019-05-30 22:27:24 -04:00
Russell J. Hewett d0043daa72 refactor(baseof): moved all templates to use a main block 2019-05-30 22:27:23 -04:00
Russell J. Hewett 044957aca1 refactor(baseof): minor adjustments to site_footer to help accomodate the docs layout 2019-05-30 22:27:17 -04:00
Russell J. Hewett 1c2178bc44 refactor(baseof): added baseof template to replace template boilerplate 2019-05-30 21:47:46 -04:00
Russell J. Hewett ddba3fee2b refactor(baseof): added site_footer partial to replace multiple footer partials 2019-05-30 21:47:19 -04:00
Russell J. Hewett d263439e74 refactor(baseof): moved footer_section into the footer_container partial 2019-05-30 21:41:13 -04:00
Russell J. Hewett f4d4c48016 refactor(baseof): moved citation model block to its own partial 2019-05-30 21:39:23 -04:00
Russell J. Hewett 5878e91a16 refactor(baseof): created custom head and footer js placeholders 2019-05-30 21:29:54 -04:00
Russell J. Hewett 1baceb1c62 refactor(baseof): refactors base header and footer to their own partials 2019-05-30 21:24:07 -04: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 3bd21f3a37 style(docs): remove "Back To Top" and link "Contents" header to top 2019-05-28 22:25:48 +01:00
George Cushen 8914b83cd7 refactor(shortcode): rename mermaid to diagram 2019-05-27 18:09:19 +01:00
George Cushen 27ff391ab1 feat: generate diagrams and flowcharts from text using Mermaid shortcode
To use, add `diagram: true` to a page's YAML front matter and create a
diagram from text in the body of the Markdown file using Mermaid syntax:
https://mermaidjs.github.io

Close #1111
2019-05-27 18:05:17 +01:00
George Cushen aa7af6ab2a feat(docs): add support for page bundles using docs layout
Close #1100
2019-05-26 23:27:19 +01:00