Commit Graph
53 Commits
Author SHA1 Message Date
George Cushen 7cb7e497f7 refactor: convert archetypes from TOML to YAML 2019-05-26 18:49:23 +01:00
George Cushen f147c6a7fa slides: enable author to choose a code highlighting style for each deck
Enables author to choose a light or dark code highlighting style
in slides and match the highlighting style with the deck theme color.

Close #1050
2019-04-30 21:02:40 +01:00
Carlos Eduardo de Andrade 182f010c03 feat: add publishDate to publish future publications now (#1025)
Similar to the talk template.

When `publishDate` is used in conjunction with `date`, it enables publishing future publications now.

See Hugo docs.
2019-04-27 21:03:25 +01:00
George Cushen f812eb7033 feat(pub): add support for Preprint, Thesis, and Patent types
Note: "Manuscript" is renamed to "Preprint".

Close #769
2019-04-07 18:35:45 +01:00
George Cushen 6778929449 refactor: check admin created a homepage or give error 2019-03-31 19:50:26 +01:00
George Cushen a622c8d19f refactor(talk): rename date options in front matter
date, time_start, time_end renamed to publishDate, date, date_end,
respectively.

BREAKING CHANGES: Rename above 3 options in front matter of all talks.

Also, refactor the 404 page so that it just lists the latest 10 pages
overall. This is a more flexible approach than separately listing the
latest pages for only a few different types of content.

See #721
2019-02-27 21:48:16 +00:00
George Cushen 26df07a634 refactor: rename url_custom to links
BREAKING CHANGE:
Rename `url_custom` to `links` if using it in the front matter of any
content file.

See #765
2019-02-13 02:05:01 +00:00
George Cushen fe52f6b55e refactor: consolidate and simplify compact views
- Update demo
- Fix archetype

See #918
2019-02-11 14:08:49 +00:00
George Cushen 1584b2db62 refactor: consolidate and simplify compact views
- Consolidate the code for all compact views into a single file
- Make authors clickable in all compact views
- Improve archetypes

BREAKING CHANGES:
`abstract_short` field dropped in publications and talks in favour of
`summary` field.

See #918
See https://github.com/gcushen/hugo-academic/issues/916#issuecomment-462274214
2019-02-11 13:59:18 +00:00
George Cushen a7b10805bd update post archetype 2019-02-05 19:28:09 +00:00
George Cushen e913aacb34 refactor: restructure config and front matter parameters
- contact widget: support custom contact links with `contact_links`
- talks: add `all_day`
- custom_css/js -> plugins_css/js
- load custom css/js from `assets/` dir instead of `static/`
- minify custom css/js
- convert publication types from config params to i18n translations
- projects: always list child items (config option deprecated)

BREAKING CHANGES: Refer to issue below.

See #867
2019-01-26 20:36:15 +00:00
George Cushen 70b87306be refactor: rename selected to featured
BREAKING CHANGES
See issue below and v4 release note for details

See #867
2019-01-20 00:32:50 +00:00
George Cushen 8010d5a45c refactor(project): projects not listing child pages
Simplify code to get content name by using `.File.ContentBaseName` -
it gets content name irrespective of whether page is a bundle or not.

See #800

BREAKING CHANGE

`url_project` can now only be used to link pages to external websites.
To link a page to a project page, use `projects` option.
2018-11-29 21:01:37 +00:00
George Cushen 3d9a1277a8 feat(project): list associated posts
Close #767
2018-11-03 22:37:36 +00:00
George Cushen dd5422981b feat: Add support for icons in url_custom
Close #787
Close #326
2018-11-03 22:17:00 +00:00
George Cushen de269ebdb8 feat(project): add showcase mode and revert card view to resized images
* add project showcase layout, set `view = 2` in `projects.md` to use
* revert card view to use resized images rather than cropped images
* fix project filters for tags with non-ASCII (i18n) characters
* add single column wide layout for project widget, to use set
  `widget_layout` in `projects.md`
* add `flip_alt_rows` widget option to flip alternate rows in showcase
  mode
* `url_` link buttons can now be added for projects
* all link buttons now appear in page header rather than under a 'links'
  section within the page
* Markdown slides can now be linked from any page by using new `slides`
  option
* Isotope JS is now only activated when required (i.e. when using card
  view or when filters are defined)
* `links` translation removed from i18n
* consolidate talk, pub., and new project links files into new single
  `page_links.html` for all pages
* move project widget layouts to their own files

Close #764
Close #785
Close #776
Close #645
Close #326

BREAKING CHANGE:

CSS class names of project tags are now prefixed with `js-id-` to
namespace them and prevent clashes with existing CSS classes.

Migrate any filter `tag`s in `projects.md` that are prefixed `.` to the
new `.js-id-` prefix.
2018-11-03 20:13:43 +00:00
George Cushen e9597c72c7 feat(archetype): add hugo new template for docs/tutorial layout
- To use: `hugo new --kind docs tutorial/hello.md`
- Remove [header] from exampleSite docs since it's deprecated for docs
2018-10-21 21:00:43 +01:00
George Cushen 5e223515a2 projects: Fix new folder-based projects breaking talk/publication links 2018-10-14 01:46:26 +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 8cea142b81 projects: Support featured image with automatic resizing
- Require Hugo v0.49
- Refactor project archetype to new Hugo v0.49 directory-based archetype
- Deprecate `image_preview` option
- Revise demo projects to use new functionality

See #708
2018-10-12 01:13:10 +01:00
George Cushen bfae0511d3 Add experience widget
* See `exampleSite/content/home/experience.md` for demo
* Add `present` to language pack

Also:
* Enable color theme packs to change link color
* Reduce font size in docs sidebar

Close #378
2018-09-30 22:52:52 +01:00
George Cushen 6faf695727 Add slides feature
Example added to `exampleSite/content/slides/example-slides.md` and
linked from `exampleSite/content/talk/example-talk.md`.

Close #693
2018-09-16 16:39:30 +01:00
Andrew Fowlie 02d84dff98 publication: Add optional DOI link (#677) 2018-09-15 17:49:13 +01:00
George Cushen 099a13b688 talks: Parse Markdown in authors param (#673) 2018-09-07 00:34:37 +01:00
George Cushen 031dd3e8fe exampleSite: Update front matter params/comments in sync with archetypes
Close #545
2018-07-15 03:42:08 +01:00
George Cushen 9e65c45d23 posts: Add option to display author names
Close #220
2018-06-29 19:23:12 +01:00
George Cushen 1a37b61971 exampleSite: Use full filenames for projects parameter 2018-05-18 01:34:05 +01:00
George Cushen c5e3b1f6e8 archetypes: Update inline docs to match pub. types in config 2018-01-20 15:09:22 +00:00
George Cushen ee63fde14e post: Document image preview and caption options 2017-11-11 15:13:10 +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 7b4bdd22bd archetypes: Make hugo new home/<TITLE>.md use the custom widget 2017-10-22 16:02:25 +01:00
George Cushen 76de60ec59 archetypes: Document url_custom option for publications 2017-10-22 15:05:39 +01:00
Dongdong Tian 5e4a9e9d8a archetypes: Default projects to empty array (#206 #340)
* default `projects` to empty array
* prevent projects button being generated when not required
2017-10-22 12:01:05 +01:00
George Cushen df4f44f112 talks: Add start and end times (#298 #334)
* show start and end times on talk page
* add `time_start` to talk frontmatter, e.g. `2030-06-01T13:00:00`
* add `time_end` to talk frontmatter, e.g. `2030-06-01T15:00:00`
* update format of talk listings, adding time metadata
2017-10-22 01:51:17 +01:00
Dongdong Tian 4a72683eeb project page: Add option to list child talks and publications (Close #206)
* add `[params.projects]` config section to `config.toml`
* add `projects = [""]` array to publication and talk frontmatter
* project page: Add backwards compatible child list which considers 
   both new `projects` array and`url_project`
* update archetypes
* update example site
* update publication button links to consider `projects` array
* update talk button links to consider `projects` array
* remove details button from talk links to be consistent with publication links
2017-10-21 22:48:27 +01:00
George Cushen 3d4884a9f0 publications: Add citation feature + improvements (#302 #310 #205 #286)
* Add citation feature (#302)
* Remove detail button since all pub. titles are now linked (#310)
* Optimize order of pub. buttons and add more button options (#205)
* Use noopener for external URLs that open in new tabs (#286)
2017-10-16 02:05:39 +01:00
George Cushen 779e5d830b Improve archetypes (#265)
* Support Hugo 0.24+ in default and home types
* Comment and tidy
2017-09-10 17:02:37 +01:00
C. Wu 4859cbe36a Support Hugo v0.24+ (#240)
* Require Hugo v0.24+ to support new archetype system
* Explicitly set `title` and `date` in archetypes
2017-08-01 02:26:45 +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
appleby b3c73acdc8 Add config options for customizing highlight.js (#66)
This commit adds the following config options to allow the user to
enable / disable and otherwise customize source code highlighting with
highlight.js:

- hljs: enable / disable highlighting
- hljs_languages: include highlighting for additional languages
- hljs_style: choose CSS style for highlighting
- hljs_version: choose highlight.js version

* Change hljs_ prefix to highlight_ and update hljs version to 9.9.0

Per code review comments in #66. The github.min.css style hasn't
changed, hence no diff for highlight.min.css in this commit.
2017-01-17 01:31:39 +00:00
George Cushen ae3a757777 Add publication filter #26 2017-01-12 06:41:13 +00:00
George Cushen 0fafa0b98d Improve talks
- improves format of simple lists (`detailed_list = false`) for Talks widget
- fixes date to use user defined date format from `config.toml`
- hides 'Links' row if no `url_...` params are set in talk front matter
- introduces optional `location` param for event location
- adds `event_url` which if defined, turns event name into a link on talk detail page
2017-01-02 14:35:50 +00:00
pfasante fbcc2ae87b talks: Fix archetype and add example to exampleSite (#68) 2016-12-26 23:15:14 +00:00
ymcrcat bddf9c07bb Add Talks feature and widgets (#63) 2016-12-14 00:11:04 +00:00
George Cushen 88205025ff Add filtering for projects (addresses #51) + add fade animation 2016-11-14 03:30:04 +00:00
George Cushen 30395f8c0b Update home archtype for new homepage widgets 2016-09-24 19:42:53 +01:00
George Cushen d6d9f0ea76 Add selected publications feature 2016-06-13 01:18:04 +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 45bd191544 ✨ Refactor archetypes 2016-05-24 21:26:23 +01:00
George Cushen d0f29073d2 Add project summaries to homepage; Refactor h2 headings to h1 partly so Markdown renders better; Refactor url_image setting to image; Fix #top hash location when accessing home from another page; Improve SEO; Update README 2016-05-18 22:15:35 +01:00