Commit Graph
15 Commits
Author SHA1 Message Date
George Cushen db7a6f41ae feat(docs): add flexibility for using docs menu with updates layout 2019-10-12 22:18:22 +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 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 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
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 d0043daa72 refactor(baseof): moved all templates to use a main block 2019-05-30 22:27:23 -04: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 9eb5c0727d feat(docs): add section pager (disable by default)
Disable docs prev/next pager unless `docs_section_pager = true` in
`params.toml`.

Requires setting `sections_weight = 01` in front matter of docs pages to
control the order of their appearance in the prev/next links. Otherwise,
prev/next links are generated by Hugo based on chronological date order
- which will be an invalid order in the case of docs.

See https://github.com/gohugoio/hugo/issues/2494
2019-05-02 00:31:07 +01:00
George Cushen 1e9bcd1dcb feat(docs): add section pager 2019-05-01 23:47:08 +01:00
George Cushen 585bdf643b fix: add support for Hugo v0.55
Requires Hugo v0.55.2+.
Does not work with Hugo v0.55.0 due to bugs fixed in v0.55.2.

Fix #1017
2019-04-17 19:26:51 +01: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 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 179c7f7331 Revise table of contents for docs layout and top navbar
- Add title to Table of Contents (add `on_this_page` i18n)
- Add back to top link in Table of Contents (add `back_to_top` i18n)
- Enable custom HTML in Table of Contents
  (create `layouts/partials/docs_toc_foot.html`)
- Revised alert shortcode style
- Enable icons as menu items in main navbar (use HTML in `Name` field)
- Enable `[[menu.main_right]]` options for having both left and right
  aligned main menu links
2018-09-16 16:57:32 +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