Commit Graph
56 Commits
Author SHA1 Message Date
George Cushen 9a5a33e354 fix: Book layout
Remove duplicate footer.
2020-07-25 02:19:48 +01:00
George Cushen 8d75e9e27a feat: add options to highlight active links and show current language
`highlight_active_link` and `show_language` added to `main_menu` in `params.toml`:

`main_menu = {align = "l", show_logo = true, highlight_active_link = true, show_language = false}`

For example, enables disabling highlighting active main menu links on scroll if it's found to be inaccurate in a certain case, such as towards the end of a homepage with lots of very short widgets that are linked in the menu.
2020-06-17 20:29:03 +01:00
George Cushen 2d63a0090a feat: add initial RTL language support 2020-04-11 22:25:03 +01: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
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 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 db7a6f41ae feat(docs): add flexibility for using docs menu with updates layout 2019-10-12 22:18:22 +01:00
George Cushen ec8b60f71f feat: move social share buttons below content
Also, add page_footer.html to help make page footers more consistent.

Close #1383
2019-10-12 17:23:08 +01:00
Julian Elve 904fd88714 fix: Hugo v0.58.0 breaks RSS template
In Hugo v0.58, Hugo team made a breaking change to fix .Data.Pages to actually show home pages when on homepage. Previously, the function returned all of the site's pages.

Hence this PR adds compatibility for RSS feeds in Hugo v0.58.0+.

Fix #1355
2019-09-24 13:44:48 +01:00
George Cushen c4b40faefa refactor: strip out Microdata from layouts
Forms part of the transition from Microdata to JSON-LD.

See #413
2019-09-09 22:28:12 +01:00
George Cushen 6cebeae654 refactor: strip out Microdata for blog posts, pages, and pubs
Forms part of the transition from Microdata to JSON-LD.

See #413
2019-09-05 17:20:00 +01:00
George Cushen 0b8cb45034 feat(feed): add image and refactor
Close #1244
2019-07-28 11:33:29 +01:00
George Cushen 2f19f9c9fd fix(feed): parse {year} in copyright and plainify any HTML
Close #1243
2019-07-27 23:19:07 +01:00
George Cushen 3e62662d53 refactor: edit_page.html --> page_edit.html 2019-07-27 20:23:17 +01: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 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
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
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 9263fcd3c9 refactor docs to use baseof 2019-06-01 15:15:19 +01: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
George Cushen 86e7e69ee2 fix: Project archive page is empty
BREAKING CHANGE: Add `layout: docs` to `content/courses/_index.md`.

Fix #1089
2019-05-18 23:29:51 +01:00
George Cushen c9cd1afefb demo: change Tutorials to Courses and add List of Courses
Perhaps a more common use case of the docs layout.

See #109
2019-05-06 15:53:16 +01:00
George Cushen d664b4bcba refactor: .Site.x to site.x 2019-05-01 23:36:59 +01:00
George Cushen 0a78ba6856 feat: hide page modification date for talks and publications
Having both talk/pub. date and page modification date displayed may
cause confusion.

Close #891
2019-01-22 18:22:06 +00:00
George Cushen 3358904dc3 feat(page): add author profile
The following boolean (true/false) page params control page features:

- share
- comments
- reading_time
- profile
2018-10-21 00:33:00 +01:00
George Cushen c37cf33fc6 Add featured image system with focal points and responsive XL split
- featured image: Enable focal point to be set by user in front matter
- pages: Featured image responsively transforms to split view on XL monitors
- pages: Refactor page title, metadata, and image into one reusable module
- archetypes: Migrate to folder approach and update image options
- post widget: Refactor detailed layout to use featured image
- accessibility: Add alt tag to header and featured image
- accessibility: Improve text contrast based on Lighthouse audit
- publication: Entirely deprecate old `image` front matter option
- docs: Remove header image option (was never a documented feature)
- project widget: Add `noopener` to external links

See #708
Fix #728
Fix #704
Fix #705
See #718
2018-10-13 21:58:51 +01:00
George Cushen 6ef19085d4 Refactor most absolute URLs to relative URLs
See #683
2018-09-15 13:58:29 +01:00
George Cushen 9ee3ade085 CSS: Make header margins more consistent again
See #681
See #571
2018-09-10 19:30:27 +01:00
George Cushen 674bb67364 Add documentation/courses/tutorials layout
- Close #405
- See #681 (improve consistency after #571 Bootstrap 4 migration)
- Add `search_results` to language file
- example site: Add example `tutorial` folder
- example site: Set privacy page to hidden (draft)
2018-09-09 23:28:36 +01:00
Prateek Kumar 965a64ffaa Migrate from Bootstrap v3 to v4 (#571) 2018-09-08 22:50:36 +01:00
George Cushen 36084c5607 search: refactor so that only one index is generated 2018-08-27 22:31:21 +01:00
George Cushen 74a9bb326e index pages: If available, use abstract as summary
Close #638
2018-08-14 23:50:53 +01:00
George Cushen 65391b18f5 search: Make full page content searchable (not just summary etc.) 2018-08-09 21:26:34 +01:00
George Cushen bb3adc1781 Add search engine widget
Close #169
2018-07-23 19:25:39 +01:00
George Cushen 9e8cb50889 post: Refactor code and remove unused class 2018-01-21 22:23:51 +00:00
George Cushen 0c635d1a82 Update style of next/prev section pager nav (#393) 2018-01-13 02:52:20 +00:00
George Cushen 6b7202c7bc Display tags (if set) for all content types
Close #363
2017-10-31 20:25:05 +00:00
George Cushen 3c86dd848f posts: Option to show comment count + move tags to article footer
* add `comment_count = true` to config
* add `section_pager = false` to config to disable pager by default
* move tags from post metadata bar to post footer
2017-10-15 03:11:48 +01:00
George Cushen 22ed2d0161 Enable widgets to be used on other pages, not only homepage (#300) 2017-10-15 00:47:35 +01:00
George Cushen ab24e5646c posts: Show related content
* Requires Hugo 0.27+
* Refer to https://gohugo.io/content-management/related/
2017-09-11 21:07:37 +01:00
George Cushen 89e5445a46 Fix double slash in header image paths (#177) 2017-05-30 00:46:22 +01:00
George Cushen dccca171a7 Add full-width header image option for all content pages
* feature is consistent across Posts, Projects, Talks, Publications, and nodes (#105)
* `image` parameter is moved under a `[header]` section at the end of existing content's frontmatter
* `caption` parameter can be used to specify image credit/caption (#103)
* set `preview = false` under `[header]` to hide a post's thumbnail on homepage (#113)
* add example of customizing a taxonomy list page at `/tags/academic/`
* revert i18n->hard-coded change for node page titles (#118)
2017-02-11 20:30:10 +00:00
George Cushen c94187570c Improve readability on large screens + minor style improvements
* Limit paragraph width to optimize readability on large screens (#97)
* Markdownify publication authors (#101)
* Improve padding of first homepage widget (#98)
2017-01-26 01:33:00 +00:00
George Cushen 04048a5e73 posts: Add summary parameter for overriding auto-generated summary 2016-10-06 02:05:43 +01:00
George Cushen 2548ae2ad2 Refactor HTML indents to 2 spaces and refactor long lines 2016-09-24 19:46:20 +01:00
George Cushen f06857f9d9 1) Add image option to page preamble to enable displaying an image in publication, post, and project page headers; 2) add detailed publication list to homepage, enabled by setting detailed_list = true under [params.publications] in config.toml. 2016-05-25 21:49:08 +01:00
George Cushen e714825a7a Auto-resize large images to fit screen; Improve sharing style 2016-05-20 00:21:48 +01:00