Compare commits

...

1675 commits

Author SHA1 Message Date
George Cushen
a0f0fcf6bc starters: update modules 2024-11-04 15:56:18 +00:00
George Cushen
bfdbefddf4 chore(tailwind): bump version to v0.3.1
close #3164
close #3153
2024-11-04 15:46:15 +00:00
George Cushen
4fe544d8c2 feat: support latest Hugo to fix Markdown links no longer rendering 2024-11-04 15:43:58 +00:00
George Cushen
adc14f11d2 chore(tailwind): bump version to v0.3.0 2024-10-27 20:58:50 +00:00
George Cushen
2eaf5f6849 feat: add support for Hugo v0.134+ breaking changes
Tested with Hugo v0.135.0

Addresses `.Summary` breaking changes in Hugo v0.134: https://github.com/gohugoio/hugo/releases/tag/v0.134.0
2024-10-16 22:43:24 +01:00
Filip Vukelic
fdf45baf57
fix(bootstrap): default_button_index possibly not taking effect (#3156)
Fixes argument ordering
2024-10-13 15:55:26 +01:00
George Cushen
2f0f3249cb starters: upgrade to support Hugo breaking changes
Tested with Hugo v0.135.0

Addresses recent breaking changes in Hugo:

ERROR deprecated: .Site.GoogleAnalytics was deprecated.

WARN  deprecated: site config key paginate was deprecated in Hugo v0.128.0 and will be removed in a future release. Use pagination.pagerSize instead
2024-10-12 18:55:17 +01:00
George Cushen
39f530db44 starters(bootstrap): upgrade to support Hugo 0.135.0 paginate deprecation
Addresses Hugo 0.135 breaking change:

WARN  deprecated: site config key paginate was deprecated in Hugo v0.128.0 and will be removed in a future release. Use pagination.pagerSize instead
2024-10-12 18:52:41 +01:00
George Cushen
661cadc173 feat: pull in latest analytics/seo modules
Closes #3143
2024-10-12 18:41:04 +01:00
Etienne Chassaing
33edab5882
i18n: FR: add Experience translation (#3149)
This commit adds the translation of Experience from English to the French equivalent (plural)
2024-10-06 01:57:25 +01:00
George Cushen
4f621dfa3a fix: CSS padding and math overflow on small screens
Fix #3133
2024-09-08 18:05:34 +01:00
Filip Vukelic
9b7e44a06e
feat: support latest Hugo version - remove remains of deprecated Site.GoogleAnalytics (#3139) 2024-09-07 23:44:59 +01:00
Alexandre Duverger
927fddeb50
i18n: fix typo in french translation (#3140) 2024-09-07 23:43:26 +01:00
George Cushen
edacf1f01f fix: citation view not wrapping in case of many links
Fix #3133
2024-09-07 23:35:07 +01:00
Filip Vukelic
ec9127eaf8
feat: support Hugo v0.133+ by removing deprecated Hugo variable (#3137)
`site.GoogleAnalytics` variable is deprecated since Hugo ~v0.133 (a warning was shown since v0.120.0+) and Hugo now introduced a breaking change without any backwards compatibility causing all existing sites to break. Theis Hugo variable would need to be changed to `site.Config.Services.GoogleAnalytics.ID`, however that then breaks compatibility with all the sites on earlier Hugo versions. Thus, omit fetching this configuration variable since it should be set via the dedicated Analytics sections in `params.yaml` anyway.
2024-09-02 00:00:03 +01:00
Eugen Richter
8778c4b5ed
i18n: add missing German translations (#3136)
Add missing translations, that exist in english language file but not in the German
2024-08-13 19:24:32 +01:00
ALZ
5660081624
feat: add Bluesky icon to Brands icon pack (#3111) 2024-07-13 21:45:32 +01:00
George Cushen
676a1b20ee starters: update 2024-06-02 16:26:24 +01:00
George Cushen
492e343c2a fix(style): lint 2024-06-02 14:39:01 +01:00
George Cushen
f726390527 fix(style): fix bio center alignment 2024-06-02 14:33:45 +01:00
George Cushen
f78044d2b4 fix(pagefind): case where baseUrl/bundleUrl not auto detected
See https://discord.com/channels/722225264733716590/1246693780191449159/1246693780191449159
2024-06-02 14:10:52 +01:00
George Cushen
2b11b7e9fb feat(tailwind): prevent error when using hugo new site
As unfortunately Hugo always triggers error even when using `with` statement with a non-safelisted `os.Getenv` var
2024-06-01 19:27:12 +01:00
George Cushen
6b70757505 feat(tailwind): add include shortcode for re-usable Markdown blocks 2024-06-01 19:21:51 +01:00
George Cushen
776e5c09c0 feat(tailwind): port TOC shortcode 2024-06-01 16:31:32 +01:00
George Cushen
9b3512593a i18n: fix ID 2024-06-01 14:26:24 +01:00
George Cushen
a5aba50938 feat: reimplement backlinks 2024-06-01 14:26:24 +01:00
Eugen Richter
8d25fbed12
i18n: add missing translations for DE (#3105)
Add missing German translations
2024-05-27 19:55:48 +01:00
George Cushen
f8dfd561a6 starters: fix: GitHub Pages doesn't support Go v1.22 yet 2024-05-24 00:51:06 +01:00
George Cushen
322b500bd2 starters: update 2024-05-19 17:46:11 +01:00
George Cushen
81df9f3e9c starters: update 2024-05-19 17:20:22 +01:00
George Cushen
50c6efcd67 starters: port Academic theme to Tailwind 2024-05-19 17:12:23 +01:00
George Cushen
5ee9dc5857 starters: port Academic theme to Tailwind 2024-05-19 16:39:09 +01:00
George Cushen
928399f2cd feat(blox): add fill_image option to article-grid view
Also
- Fixes Tailwind safelist/whitelistPatterns given change in Tailwind v3 config structure
- Renames new `resume-biography-2` to `resume-biography-3` due to clash
2024-05-19 16:32:46 +01:00
George Cushen
3463e63b4c feat(blox): port Academic CV two column avatar/bio blox
Adds `resume-biography-2` blox
2024-05-19 13:13:48 +01:00
George Cushen
78e9a5787d feat(view): reduce data size in Card 2024-05-19 13:12:23 +01:00
George Cushen
d8ba8a1565 feat(view): fix left alignment for multiple var length citation views 2024-05-19 13:11:58 +01:00
George Cushen
307f5b9798 feat(view): fix case of no authors specified in article-grid view 2024-05-19 13:10:31 +01:00
George Cushen
01488c3821 feat(blox): allow to specify grid cols in article-grid view 2024-05-19 13:09:52 +01:00
George Cushen
564bf13e6d feat(blox): support HTML & fix accessibility in case of Emerald bg 2024-05-19 13:08:20 +01:00
George Cushen
55b856df3a feat(blox): support HTML & multiple paragraphs in Markdown blox 2024-05-19 13:07:35 +01:00
George Cushen
370dc623ab fix: debug msg 2024-05-19 13:06:15 +01:00
George Cushen
934246c45b starters: update 2024-05-18 21:17:09 +01:00
George Cushen
971f297e46 feat: add support for backlinks
Enabled by default in right sidebar. Can be disabled with `backlinks: false` in front matter.

See https://github.com/gohugoio/hugo/issues
2024-05-18 21:14:14 +01:00
George Cushen
c2e9a799f7 starters: add publication_type filter example 2024-05-13 20:45:41 +01:00
George Cushen
3fa4435e55 starters: add publication_type filter example 2024-05-13 20:33:55 +01:00
George Cushen
41bd113535 feat(collection): add exclude_publication_type filter 2024-05-13 20:33:11 +01:00
dajakus
c3d23d929b
i18n: update hr.yaml (#3096)
Added fields and translation for # Countdown widget
2024-05-10 00:17:41 +01:00
dajakus
be5537b684
i18n(bootstrap): Add Croatian support to bootstrap (#3099) 2024-05-10 00:16:39 +01:00
Chen
7d5cbf3ce7
i18n: fix translation id for conference paper (#3095) 2024-05-07 20:44:15 +01:00
George Cushen
75a42222e9 feat(tailwind): port support for Publications and Events 2024-05-06 23:16:55 +01:00
George Cushen
2261d9b5f8 feat: add support for serif font 2024-05-06 23:14:37 +01:00
George Cushen
4a22c57dc3 fix: Callout accessibility and margin bottom 2024-05-06 23:13:48 +01:00
George Cushen
347501f9ea fix: show Collection title 2024-05-06 23:12:53 +01:00
George Cushen
d147e71f52 feat: add show_skill_percentage option 2024-05-06 23:12:37 +01:00
George Cushen
eba36169bb feat: add Emerald theme 2024-05-06 23:11:47 +01:00
George Cushen
dcdb3d3506 feat: add support for Alpine JS 2024-05-05 22:44:16 +01:00
George Cushen
3c4070ab45 feat: improve table shortcode style 2024-05-05 22:44:16 +01:00
George Cushen
92354b9cd9 feat: rename footer.block to footer.blox 2024-05-05 22:44:16 +01:00
Filip Vukelic
e7beed231a
feat(decap): add first and last name fields to decap_cms_config.yaml (#3092) 2024-04-29 20:42:09 +01:00
George Cushen
5c88aec094 feat(blox): add clearer error message 2024-04-27 16:36:22 +01:00
George Cushen
0e99f0b10f starters: move Bootstrap templates to dedicated folder 2024-04-27 16:20:15 +01:00
George Cushen
7b3f949177 starters: fix Hugo not loading assets
See https://discord.com/channels/722225264733716590/1233597456541941851/1233597456541941851
2024-04-27 16:15:27 +01:00
Niskala Airaha
f2ddf643ff
i18n: improve ms-Arab language pack (#3088)
Somehow overlooked the underscore.
2024-04-25 20:26:43 +01:00
dajakus
c767554c5b
i18n: add Croatian (hr) Language Pack (#3090) 2024-04-25 20:24:33 +01:00
George Cushen
137ebf6fdc starters: update - plugin framework 2024-04-20 22:52:24 +01:00
George Cushen
11a51f8e9f feat(Tailwind): add support for community blox 2024-04-20 22:45:32 +01:00
George Cushen
ab18989a41 starters: update
See https://discord.com/channels/722225264733716590/738924320339918858/1231150865977708605
2024-04-20 13:38:56 +01:00
George Cushen
9547f9a844 fix: only replace explicit mobile menu links with automated links for Docs pages
See https://discord.com/channels/722225264733716590/738924320339918858/1231150865977708605
2024-04-20 13:37:51 +01:00
Byron Collins
77b6043ea7
feat: add Naver (Korea) search engine verification (#3082) 2024-04-17 21:10:52 +01:00
George Cushen
59a57b0518 starters: upgrade GitHub actions
GitHub broke some actions by removing Node 16.
2024-04-15 20:06:45 +01:00
George Cushen
c03355fea5 docs: edit 2024-03-10 16:23:19 +00:00
George Cushen
76c545771e starters(tailwind): migrate from post to blog as default blog post folder
Informed by user feedback.
2024-03-03 17:05:35 +00:00
George Cushen
4e81f629de starters(tailwind): migrate from post to blog as default blog post folder
Informed by user feedback.
2024-03-03 17:02:10 +00:00
George Cushen
469a458ab9 feat(layout): migrate from post to blog as default blog post folder
Informed by user feedback.
2024-03-03 16:58:09 +00:00
George Cushen
07fe0da177 feat(shortcode): support Hugo v0.123 deprecation of GetCSV
Resolves following Hugo issue:

INFO  deprecated: data.GetCSV was deprecated in Hugo v0.123.0 and will be removed in a future release. use resources.Get or resources.GetRemote with transform.Unmarshal.
2024-03-03 16:56:40 +00:00
George Cushen
cee6e1e3e1 feat(blox): optionally hide skill percent
when `percent` field is empty

As requested in https://discord.com/channels/722225264733716590/1213513275069960263/1213513275069960263
2024-03-02 18:04:22 +00:00
George Cushen
b13d437838 starters: update metadata 2024-02-28 22:14:08 +00:00
George Cushen
6419ee6413 starters: update metadata 2024-02-28 21:49:47 +00:00
George Cushen
5e0fb4a205 starters: update mod 2024-02-28 19:55:30 +00:00
George Cushen
ae83c68788 feat: add technical icon pack
Adds https://devicon.dev/

Reference like `icon: devicon/rstudio`

Closes #3063
2024-02-28 19:53:00 +00:00
George Cushen
5fab7f3a48 starters: update modules 2024-02-26 23:23:41 +00:00
George Cushen
b7ae01c123 fix: custom icons 2024-02-26 20:44:35 +00:00
George Cushen
8fa6800800 fix: custom icons 2024-02-26 20:43:18 +00:00
George Cushen
da6ffe72ba starters: update modules 2024-02-24 17:08:36 +00:00
George Cushen
623ca31a5f feat(bootstrap): add compatibility for Hugo v0.123 2024-02-24 17:00:54 +00:00
George Cushen
ff085a9fde starters(docs): fix responsive docs menu hidden between md-lg widths 2024-02-24 16:52:53 +00:00
George Cushen
5fc2af797a fix(docs): responsive docs menu hidden between md-lg widths 2024-02-24 16:47:09 +00:00
George Cushen
848582253c fix(docs): mobile menu background
Reported by Rodri on Discord
2024-02-24 16:25:16 +00:00
George Cushen
552df4b957 starters: port docs template
See #3010
2024-02-18 00:48:43 +00:00
George Cushen
06e9c42adc starters: port docs template
See #3010
2024-02-18 00:47:52 +00:00
George Cushen
747d78e86b starters: port docs template
See #3010
2024-02-18 00:39:43 +00:00
George Cushen
69d49c0b4a feat: port docs template
See #3010
2024-02-18 00:35:15 +00:00
George Cushen
a7041920bc starters: port docs template
Close #3010
2024-02-17 22:10:53 +00:00
George Cushen
0d0905a765 starters: port docs template
Close #3010
2024-02-17 22:09:59 +00:00
George Cushen
90c9225b9a starters: port docs template
Close #3010
2024-02-17 21:55:51 +00:00
George Cushen
0929442284 starters: port docs template
Close #3010
2024-02-17 21:53:12 +00:00
George Cushen
ae7f0c5979 feat: port docs layout
See #3010
2024-02-17 21:29:18 +00:00
rodrigoalcarazdelaosa
5ab1d19b01
feat(plugins): update Reveal from v4 to v5 to enable Scroll View (#3051) 2024-02-04 19:18:12 +00:00
George Cushen
a6d0923a1e starters(blog): enable Hugo v0.122 native math passthrough by default
Requires Hugo v0.122.0+
2024-01-28 18:42:41 +00:00
George Cushen
728baf9dc0 starters(blog): enable Hugo v0.122 native math passthrough by default
Requires Hugo v0.122.0+
2024-01-28 18:40:00 +00:00
George Cushen
3fb9b2e11a feat: enable Hugo v0.122 native math passthrough by default
Requires Hugo v0.122.0+
2024-01-28 18:37:58 +00:00
George Cushen
0d7b68fcb5 feat: Hugo deprecated site.GoogleAnalytics 2024-01-28 18:23:53 +00:00
George Cushen
70fd49a584 feat: Hugo deprecated site.GoogleAnalytics 2024-01-28 18:14:31 +00:00
George Cushen
508cbef99d chore: migrate workflow 2024-01-19 18:45:33 +00:00
George Cushen
04ee3fc2c5 chore: bump v 2024-01-16 22:46:44 +00:00
George Cushen
51d09b0b6a feat: add PP default 2024-01-16 22:36:03 +00:00
George Cushen
d9af47ca37 starters: update 2024-01-13 17:50:46 +00:00
George Cushen
1975d0f568 fix(tailwind): enable announcement to be hidden in Hero blox 2024-01-13 17:45:20 +00:00
George Cushen
a73f8bd5b7 feat(tailwind): port navbar align option 2024-01-13 17:44:12 +00:00
George Cushen
ab509c2f07 starters: update Landing 2024-01-03 20:18:01 +00:00
George Cushen
35f75d5b7e feat(blox): add Stats and Testimonials 2024-01-03 20:13:12 +00:00
George Cushen
08cce59b88 starters(resume): edit spacing 2024-01-02 00:02:07 +00:00
George Cushen
190577cbbe starters(blog): show BiliBili example 2023-12-29 23:38:24 +00:00
George Cushen
b290b27077 feat(tailwind): port custom.css feature
Also:

-improve BiliBili shortcode responsive style
-prefix resume blox names in backwards compatible way
-use blox-analytics
-rename module config.yaml to hugo.yaml
2023-12-29 23:34:33 +00:00
George Cushen
1bc54d5d14 feat: port analytics to blox-analytics 2023-12-29 22:59:55 +00:00
rodrigoalcarazdelaosa
824ef0dbf0
feat(bootstrap): update Font Awesome to v6.5.1 (#3034) 2023-12-20 13:33:17 +00:00
George Cushen
75811a87a2 fix: accessibility 2023-12-17 14:09:36 +00:00
George Cushen
9b4580f4be starters: update 2023-12-17 14:00:14 +00:00
George Cushen
f1e179b23d feat(tailwind): increase default section spacing 2023-12-17 13:52:17 +00:00
George Cushen
b45980e210 feat(tailwind): port blog TOC sidebar 2023-12-17 13:04:28 +00:00
George Cushen
de03f3f22d feat(tailwind): port blog TOC sidebar 2023-12-17 07:35:14 +00:00
George Cushen
0d12bd1d28 fix(tailwind): syntax highlighting
Note to override default syntax highlighting style, custom CSS must now be used - the `params.yaml` options for choosing syntax themes are deprecated.

Fixes #3030
2023-12-16 14:33:42 +00:00
George Cushen
46e2fa4c7b starters: update
add full navbar, feature lists, and blog to landing page
2023-12-15 00:03:24 +00:00
George Cushen
5a4b7ec721 feat(navbar): port logo, submenus, button
add `header.navbar.fixed_to_top` bool option

make biography blox compatible with dark section class

center views in Collections and List tpl

add features and feature_icon options to cta-image-paragraph view
2023-12-14 23:55:19 +00:00
George Cushen
d31adfedd4 feat: port paginator 2023-12-09 20:30:44 +00:00
George Cushen
19f7b3a14e starters: update 2023-12-06 00:04:39 +00:00
George Cushen
e29517634e feat: add date-title-summary view 2023-12-05 22:10:46 +00:00
George Cushen
577674f243 starters: update 2023-12-03 22:57:01 +00:00
George Cushen
dced0cd824 starters: add Landing Page 2023-12-03 17:48:48 +00:00
George Cushen
d684873cd0 feat: port Features/CTA blox 2023-12-03 17:34:37 +00:00
George Cushen
e4309ca0ce starters: update mod 2023-12-02 22:36:09 +00:00
George Cushen
768ab131c5 fix(tailwind): translation chooser
Also, migrate Markdown block from markdowify to RenderString for shortcodes
2023-12-02 22:30:48 +00:00
George Cushen
11aedd9912 feat: enable landing pages to be used on Hugo list pages (_index.md) without url workaround 2023-11-29 00:15:16 +00:00
Johannes Becker
c57e12dd31
feat(bootstrap): support facet filters for docsearch (#3026)
Closes #3022
2023-11-27 21:19:43 +00:00
George Cushen
0263ff0d06 feat: add telegram, whatsapp, weixin icons 2023-11-27 21:11:48 +00:00
George Cushen
70c62c8dbe feat: add telegram, whatsapp, weixin icons 2023-11-27 20:59:56 +00:00
George Cushen
a3e3b03dd8 fix: landing page 2023-11-27 02:15:27 +00:00
George Cushen
d4d8f739af ci: update 2023-11-26 21:25:03 +00:00
George Cushen
d2e84bae02 starters: update 2023-11-25 23:39:49 +00:00
George Cushen
7b6976eaf6 starters: update 2023-11-25 23:34:29 +00:00
George Cushen
4a2021a73a starters: update 2023-11-25 23:33:34 +00:00
George Cushen
99dddeda73 starters: update 2023-11-25 20:54:04 +00:00
George Cushen
f431a4a2c7 starters: update 2023-11-25 20:45:55 +00:00
George Cushen
a523cfb805 starters: update 2023-11-25 20:34:49 +00:00
George Cushen
804c70f7ef feat: support privacy analytics (fathom, plausible, pirsch) 2023-11-25 20:05:20 +00:00
George Cushen
97d99341d5 feat: apply primary color in more places 2023-11-25 19:53:14 +00:00
George Cushen
00b9ae5431 feat: port Hero blox 2023-11-24 23:16:21 +00:00
George Cushen
fef14e4b4c feat: add more color themes
also
- rename theme_default to mode
- port feedback comp
2023-11-24 14:48:34 +00:00
George Cushen
f295093397 ci: fix 2023-11-16 08:37:45 +00:00
George Cushen
a92cd7f34b ci: fix 2023-11-16 08:25:16 +00:00
George Cushen
c5f07a80c6 ci: fix 2023-11-16 08:15:20 +00:00
George Cushen
2b677732a6 starters: update modules 2023-11-16 08:06:29 +00:00
George Cushen
358962ce08 feat(tailwind): port brand icons, tags page, search, Awards block, card zoom 2023-11-16 07:57:40 +00:00
George Cushen
e48152bc93 feat(tailwind): port theme change event 2023-11-13 22:28:01 +00:00
George Cushen
3d7a5172af feat(tailwind): port theme change event 2023-11-13 22:23:32 +00:00
George Cushen
c432620c14 style: fix accessibility 2023-11-13 20:26:55 +00:00
George Cushen
ebaf14037b style: fix accessibility 2023-11-13 20:25:41 +00:00
George Cushen
4ffeaab47c ci: fix deprec warnings 2023-11-13 18:52:55 +00:00
George Cushen
fbe947062c starters: add Resume template 2023-11-13 18:38:29 +00:00
George Cushen
bf2aae99ab feat(blox-tailwind): add skills, languages, experience blox 2023-11-13 18:34:53 +00:00
George Cushen
56272d835c starters: move notebook importer to blog template 2023-11-09 23:53:21 +00:00
Thom Wiggers
425726d96b
feat: support Hugo v0.120 - fix display of addresses
Add support for breaking changes in Hugo v0.120.0

The delimiters got escaped by Hugo v0.120

See #3012
Close #3016
2023-11-09 18:01:18 +00:00
George Cushen
590f4123eb starters: update to latest Hugo best practices (hugo.yaml) 2023-11-09 15:59:43 +00:00
George Cushen
d9695efa09 fix: links (cont.) 2023-11-09 14:58:28 +00:00
George Cushen
448ed0e3bd ci: fix/rename 2023-11-08 14:33:25 +00:00
George Cushen
a94b93a9f2 ci: fix/rename 2023-11-08 14:32:48 +00:00
George Cushen
904265fd42 starters(academic): modules update 2023-11-08 14:21:47 +00:00
George Cushen
5849f386bd fix: blox-seo require 2023-11-08 14:19:41 +00:00
George Cushen
44846a6691 fix: blox-seo require 2023-11-08 14:17:30 +00:00
George Cushen
0478cf6921 fix: blox-reveal require 2023-11-08 14:15:15 +00:00
George Cushen
22992233d8 fix: blox-bootstrap require 2023-11-08 14:12:29 +00:00
George Cushen
9b2e271c7c fix: links 2023-11-07 23:09:38 +00:00
George Cushen
f9b227c335 feat: Netlify CMS renamed to Decap CMS
See #3007
2023-11-05 16:32:42 +00:00
George Cushen
20f6ecb81f feat: auto-import Jupyter Notebooks as blog posts 2023-11-05 00:08:40 +00:00
George Cushen
42cbd66239 feat: add support for breaking changes in Hugo v0.120.0
See https://github.com/gohugoio/hugo/releases/tag/v0.120.0

Close #3012
2023-11-02 17:53:27 +00:00
George Cushen
d537e4be48 feat: add support for breaking changes in Hugo v0.120.0
See https://github.com/gohugoio/hugo/releases/tag/v0.120.0

Close #3012
2023-11-02 17:49:54 +00:00
George Cushen
0120b464b2 starters: update to wowchemy-bootstrap v5.9.2 2023-11-02 17:15:19 +00:00
George Cushen
51997ad4c2 starters: update to wowchemy-bootstrap v5.9.2 2023-11-02 17:13:15 +00:00
George Cushen
56446cc948 fix: new namespaced calls
See https://discord.com/channels/722225264733716590/1169641769152036934/1169641769152036934
2023-11-02 17:07:29 +00:00
George Cushen
68afe49fb1 fix: new namespaced calls
See https://discord.com/channels/722225264733716590/1169641769152036934/1169641769152036934
2023-11-02 17:06:37 +00:00
George Cushen
66b38685ac fix: new namespaced calls
See https://discord.com/channels/722225264733716590/1169641769152036934/1169641769152036934
2023-11-02 16:38:09 +00:00
George Cushen
c80f023f21 test: port test site from using wowchemy-bootstrap to wowchemy-tailwind 2023-11-01 19:34:48 +00:00
George Cushen
962eba579f modules: port sitemap, webmanifest, robots.txt, markdown block 2023-11-01 19:33:03 +00:00
George Cushen
cc1b1a8aee modules: rename wowchemy module to wowchemy-bootstrap
Based on user feedback to give modules clearer names now that effort has shifted from Bootstrap UI to the Tailwind UI in `wowchemy-tailwind`
2023-11-01 18:56:52 +00:00
George Cushen
999dc0706f blocks(accomp): add explicit icon field for complex org names
We tried to simplify the process by automatically determining icon name, but in some cases with complex org names containing slashes etc, it may not work so well.

Closes #3006
2023-11-01 18:47:26 +00:00
George Cushen
655919137d starters(academic): add map back to demo 2023-11-01 18:41:40 +00:00
George Cushen
5f086c68fb modules: namespace Core module
Hugo does not namespace modules by default, leading to conflicts. Hence, load partials from a namespaced sub-folder to prevent conflicts with similarly named files in other modules.
2023-11-01 18:40:04 +00:00
George Cushen
7b61e2f369 modules: namespace Core module
Hugo does not namespace modules by default, leading to conflicts. Hence, load partials from a namespaced sub-folder to prevent conflicts with similarly named files in other modules.
2023-11-01 18:37:33 +00:00
George Cushen
53a94b591e modules: namespace Core module
Hugo does not namespace modules by default, leading to conflicts. Hence, load partials from a namespaced sub-folder to prevent conflicts with similarly named files in other modules.
2023-11-01 18:33:55 +00:00
George Cushen
ed188eb822 starters: rename Minimal starter to LinkInBio & port to use Tailwind module 2023-10-29 09:35:21 +00:00
George Cushen
9b6cb2d6cc starters: auto-import publications from Bibtex 2023-10-29 09:23:37 +00:00
George Cushen
0f56496291 feat: add Button block & page background option 2023-10-29 09:18:33 +00:00
George Cushen
41d716f8ed ci: ignore dist 2023-10-27 21:04:57 +01:00
George Cushen
9c3c9974b7 fix: workaround Hugo concurrency issues 2023-10-27 20:57:32 +01:00
George Cushen
58ed6b3aa2 fix: workaround Hugo concurrency issues 2023-10-27 20:56:53 +01:00
George Cushen
3c11329682 feat: add explicit fingerprint algo 2023-10-27 20:41:19 +01:00
George Cushen
127cd7919a feat: add explicit fingerprint algo 2023-10-27 20:40:09 +01:00
George Cushen
f1c8e66988 starters(blog): add content & upgrade 2023-10-27 20:32:16 +01:00
George Cushen
49690f2ae1 feat: port charts, mermaid, math, markmap, copy, pager to Tailwind 2023-10-27 20:29:18 +01:00
George Cushen
45a7ac7b41 feat: port callout and icon shortcodes to Tailwind
And migrate others across without changes.
2023-10-26 21:32:23 +01:00
George Cushen
973ff9099e feat: port callout and icon shortcodes to Tailwind
And migrate others across without changes.
2023-10-26 21:20:34 +01:00
George Cushen
590de1357a feat: port Author Profile Block to Tailwind 2023-10-26 20:36:51 +01:00
George Cushen
1aebdb7837 feat: add 404 page 2023-10-26 19:32:01 +01:00
George Cushen
8f0b35eeed feat: use Inter font 2023-10-26 19:24:58 +01:00
George Cushen
e2706d6622 chore: update lint rules 2023-10-24 22:53:41 +01:00
George Cushen
893e260fcd chore: update lint rules 2023-10-24 22:52:26 +01:00
George Cushen
6f622fb134 chore: update lint rules 2023-10-24 22:46:49 +01:00
George Cushen
c2b66cf131 chore: bump version 2023-10-24 22:41:56 +01:00
George Cushen
aa7a83fda4 fix: lint/accessibility 2023-10-24 22:41:39 +01:00
George Cushen
fa805cdb3b ci: update 2023-10-24 19:27:29 +01:00
George Cushen
595e381106 feat: port Wowchemy blog template from Bootstrap to Tailwind 2023-10-24 19:12:15 +01:00
George Cushen
2c1d5b4f71 feat: port Wowchemy blog template from Bootstrap to Tailwind 2023-10-24 19:11:31 +01:00
George Cushen
5678df1da9 feat: port Wowchemy blog template from Bootstrap to Tailwind 2023-10-24 18:46:21 +01:00
George Cushen
66e3c7e27e refactor: rename blog starter to blog-bootstrap 2023-10-24 18:32:57 +01:00
George Cushen
3dc5088639 feat: add Tailwind variant of Wowchemy components and layouts 2023-10-24 18:31:41 +01:00
George Cushen
110377e4b8 feat: add Bilibili shortcode 2023-10-22 23:01:23 +01:00
George Cushen
24a7641f41 starters(academic): add GIF example
Closes #821
Also, see implementation in b70eaa9
2023-10-19 18:31:09 +01:00
George Cushen
b70eaa9c6b feat: support animated featured images (GIFs)
Add support for animated GIFs (e.g. featured.gif) in instances of the featured image in page header and all views
2023-10-19 18:28:01 +01:00
George Cushen
2fc3e6a461 starters(academic): use new Skills block 2023-10-19 01:38:57 +01:00
George Cushen
60d0c4005d starters(academic): use new Skills block 2023-10-19 01:35:48 +01:00
George Cushen
28f1686c65 feat: add Skills block 2023-10-19 01:31:33 +01:00
George Cushen
02e7a17dc7 docs: restructure for site redesign 2023-10-17 23:05:18 +01:00
George Cushen
eec649feb1 docs: add ZH translation more directly 2023-10-17 22:55:02 +01:00
George Cushen
3cd7fec3d2 starters(academic): update GH Pages workflow 2023-10-16 14:38:24 +01:00
George Cushen
7f5d91fa3b starters(academic): update GH Pages workflow 2023-10-16 13:21:19 +01:00
George Cushen
47c4aa706f starters(academic): update GH Pages workflow 2023-10-16 13:01:01 +01:00
George Cushen
ebcb00fbd6 starters(academic): automatically hide demo sections 2023-10-16 01:25:45 +01:00
George Cushen
5eb3832f20 starters(academic): remove deprecated Netlify CMS from demo 2023-10-16 01:25:15 +01:00
George Cushen
b343bdd4a0 feat: ignore demo sections 2023-10-16 01:20:24 +01:00
George Cushen
8a0135da27 feat: ignore demo sections 2023-10-16 01:16:15 +01:00
George Cushen
548c91beed starters(academic): add GitHub pages workflow 2023-10-15 19:09:11 +01:00
George Cushen
548a4f820d starters(academic): add GitHub pages workflow 2023-10-15 19:02:55 +01:00
Lukas Barth
f6330d58f5
fix(style): remove 'px' from img width and height attributes (#2996) 2023-10-05 18:52:11 +01:00
Tien Nguyen Minh
7b92ad1fbe
i18n: improve Vietnamese translation (#2995) 2023-10-04 20:51:33 +01:00
rodrigoalcarazdelaosa
4ed36f73f5
feat: update RevealJS version (#2992) 2023-10-02 22:25:30 +01:00
Øyvind Bye Skille
dd7ad85a62
i18n: update Norwegian (nb) translation (#2993)
Some new strings and some small corrections.
2023-10-02 22:16:09 +01:00
George Cushen
327df88441 starters(academic): migrate to standard CSL publication types 2023-09-30 18:19:34 +01:00
George Cushen
60baebf4de feat: adopt CSL standard for publication types
See https://docs.citationstyles.org/en/stable/specification.html#appendix-iii-types

BREAKING CHANGE:
Update the `publication_types` field in `content/publication/` files to one of the CSL standard publication types (or specify your own publication type directly in the publication file).
2023-09-30 18:11:49 +01:00
Geo
cbdf3e42b1
feat: support Hugo's change in behaviour of relURL/relLangURL
Hugo team changed behaviour of relURL/relLangURL, requiring removal of slash prefix to path

Fix built-in search results are empty when deploying site to domain's sub-folder

Fix #2985
2023-09-15 16:08:39 +01:00
Tom Vercauteren
f47bd809f7
feat: update Academicons icon pack (#2981)
Upgrade from version 1.9.2 to version 1.9.4. This provides the new arxiv icon among other updates.
2023-09-13 01:07:25 +01:00
Sébastien Valette
38cd9ecb19
starters(academic): header -> banner (#2987)
"header" field should now be "banner"
2023-09-13 01:05:43 +01:00
George Cushen
98c928a767 starters: update go.mod
fix gallery lightbox doesn't always load
2023-08-12 17:51:09 +01:00
George Cushen
59b648791d fix: gallery lightbox doesn't always load
Lightbox may not load in case of gallery shortcode contained within `text` field of a landing page block (v2 blocks).

Fix #2972
2023-08-12 17:50:02 +01:00
George Cushen
bd183b0755 starters: update go.mod
fix gallery lightbox doesn't always load
2023-08-12 17:39:27 +01:00
George Cushen
f38f65d011 fix: gallery lightbox doesn't always load
Lightbox may not load in case of gallery shortcode contained within `text` field of a landing page block (v2 blocks).

Fix #2972
2023-08-12 17:33:44 +01:00
Stefano Kowalke
f2a7bd1229
refactor: remove JQuery from parts of Search JS (#2970)
See #1402
2023-08-11 19:01:49 +01:00
Aki Ariga
15ee0927a7
i18n: improve Japanese (JA) translation (#2974)
Updated some of untranslated Japanese in i18n yaml.
2023-08-07 18:43:26 +01:00
George Cushen
2342b0c39a fix: 1c09422 error calling isset
error calling isset: calling IsSet with unsupported type "invalid" (<nil>) will always return false

See 1c094227ec (commitcomment-123412561)
2023-08-06 07:59:06 +01:00
Federico Agostini
1c094227ec
feat: update Headroom implementation to support recent Hugo versions (#2950)
It has been reported that recent Hugo versions broke user's configuration of Headroom JS via the `header.on_scroll` option.

With this PR, Headroom JS configuration is working again.

Fixes #2935
2023-07-30 19:02:22 +01:00
Christian Brueffer
92cc5a2710
feat(blocks>slider): only show prev/next arrows when more than one slide (#2949) 2023-06-18 23:14:59 +01:00
kjrstory
8b1b5ee32a
starters: add google_tag_manager and microsoft_clarity to default config (#2955) 2023-06-18 23:07:49 +01:00
s-team-FZI
1b9f1397c1
i18n: update DE (#2947)
Improve translation of Thesis to Abschlussarbeit #2947
2023-05-20 14:41:02 +01:00
Geo
2d67669ce7
fix: GitHub deprecated GH Actions Node version 2023-05-01 17:14:43 +01:00
Geo
437712791d
fix: GitHub deprecated GH Actions Node version (#2940) 2023-05-01 17:13:24 +01:00
Geo
1bc21b7892
fix: GitHub deprecated GH Actions Node version 2023-05-01 17:03:02 +01:00
Federico Agostini
ecde200961
docs: fix code comment (#2939) 2023-04-27 21:14:56 +01:00
George Cushen
859b574642 starters(academic): switch from Avatar block to Biography block 2023-04-20 22:02:49 +01:00
George Cushen
951c7b6f70 feat: add Biography block to v2 block collection
To use, reference as: `about.biography`

Close #2925
2023-04-20 21:57:46 +01:00
rodrigoalcarazdelaosa
c329e54a1e
feat: update JS dependencies to their latest versions (#2934) 2023-04-20 21:35:43 +01:00
George Cushen
57e374fe08 docs: update hero image 2023-04-18 21:48:57 +01:00
George Cushen
d32a1ce197 fix: migrate Research Group template from v1 to v2 blocks (#2914) 2023-04-18 20:49:39 +01:00
George Cushen
ca2775cd57 fix: migrate Research Group template from v1 to v2 blocks (#2914) 2023-04-18 20:47:07 +01:00
Federico Agostini
a4e5661b88
templates: migrate Research Group template from v1 to v2 blocks (#2914) 2023-04-18 20:32:26 +01:00
Ted Magaoay
9ea080c354
fix: gallery images overlapping in latest Chrome version (#2930) 2023-04-14 20:28:29 +01:00
JOnathan duMonT
a7f7d7aa46
i18n: improve French (FR) translation (#2928) 2023-03-23 17:50:00 +00:00
Federico Agostini
f55ff594c0
fix: shortcode context for v2 blocks (#2919)
Shortcodes in the new block system do not get access to the correct .Page variable (see #2918 ). The problem is the use of markdownify function to parse $block.content.text, since it actually is an alias to site.Home.RenderString since v 0.93.0 (see gohugoio/hugo#9959 (comment)).

This causes the shortcodes to always get the Homepage as .Page variable. The fix is to substitute markdownify with $page.RenderString, which gives the correct context.

Fixes #2918
2023-02-13 20:03:01 +00:00
rodrigoalcarazdelaosa
b9752d697a
docs: reflect upstream changes to Hugo's tweet shortcode (#2903)
Update docs according to the latest changes documented [here](https://gohugo.io/content-management/shortcodes/#tweet).
2023-01-06 13:44:35 +00:00
Samuel Teuber
549d2cd126
fix(style): table class name in fixHugoOutput (#2897)
addClass must be called with class name only instead of '.table' as class name
2022-12-27 23:33:04 +00:00
George Cushen
943f2eb3ea feat: blocks v2: background.video.path -> background.video.filename 2022-12-27 23:31:36 +00:00
Geo
2c00b903e6
docs: edit 2022-11-30 18:21:39 +00:00
George Cushen
eb6b88f20e starters(academic): gallery detection in v2 block system 2022-11-27 21:57:20 +00:00
George Cushen
58b270a3e1 feat: gallery detection in v2 block system 2022-11-27 21:56:19 +00:00
George Cushen
b60ae7e07c starters(acadmic): migrate to v2 block system 2022-11-27 21:22:04 +00:00
George Cushen
0a571f7dbe starters(acadmic): migrate to v2 block system 2022-11-27 21:18:51 +00:00
George Cushen
41418661b6 feat: migrate more blocks to v2 block system 2022-11-27 21:17:34 +00:00
George Cushen
7a3d11a2a5 feat: migrate more blocks to v2 block system 2022-11-27 21:13:40 +00:00
George Cushen
712c955024 feat: update block config
For arrival of v2 block system.

Close #2883
2022-11-26 20:50:09 +00:00
George Cushen
45466f563a feat: add support for page-specific headers (navbars)
Both site header and footer now use dynamic block system.

E.g. for custom header at `layouts/partials/components/headers/simple.html:

```
---
header:
  navbar:
    block: simple
---
```

Also, Params.footer.widget changed to Params.footer.block
2022-11-06 16:38:05 +00:00
George Cushen
a29d4ed136 feat: add support for Hugo v0.101.0 breaking changes
Hugo v0.101.0 had breaking changes to relURL and relLangURL

See https://github.com/gohugoio/hugo/issues/9994
See https://discourse.gohugo.io/t/changing-the-title-link/41239/5
2022-11-06 15:59:39 +00:00
Robrecht Cannoodt
ff4b7b1193
fix: legacy support for custom_js/custom_head (#2866)
Hooks replaced custom_js.html  and custom_head.html

However, custom_js/custom_head remain supported for legacy purposes.

Despite commit acd74954b5 mentioning that the custom.html is still supported for now, I don't think it's being picked up at the moment. This PR resolves this issue.
2022-10-29 15:31:46 +01:00
George Cushen
5dcefaa0c5 feat(blocks-v2): add Collection, Contact, Tag Cloud 2022-10-25 22:48:55 +01:00
George Cushen
c51be55f93 docs: edit 2022-10-24 23:58:20 +01:00
George Cushen
a2a867ad9d docs: edit 2022-10-24 23:40:07 +01:00
George Cushen
0b624e2eff refactor: move old widgets to v1/ dir
Prevent conflicts with new v2 landing page block system

See #2049
2022-10-24 23:05:17 +01:00
George Cushen
340662423f starters(minimal): upgrade to use landing pages
See #2049
2022-10-24 22:48:34 +01:00
George Cushen
ad46623201 feat: add landing pages (aka widget pages v2)
Closes #2049
2022-10-24 22:43:04 +01:00
George Cushen
ed6595aae6 fix: algolia integration when common queries disabled 2022-10-22 22:10:19 +01:00
George Cushen
3349024c90 fix: load community block/widget styles
From `assets/scss/blocks/<unique-block-name>.scss`
2022-10-04 19:25:30 +01:00
George Cushen
931c901862 feat: load community block/widget styles
From `assets/scss/blocks/<unique-block-name>.scss`
2022-10-02 21:01:12 +01:00
Anirban Basu
82a4452e6b
feat: display more specific warning if theme variation doesn't exist (#2843)
Based on the suggestion at https://discord.com/channels/722225264733716590/1024935456313450506/1025050134083543152
2022-10-02 18:51:29 +01:00
George Cushen
b2e1006155 starters: update Academic 2022-10-02 17:58:21 +01:00
George Cushen
49c0268152 starters: update Academic 2022-10-02 17:52:41 +01:00
George Cushen
5acb1f8896 starters: update Academic 2022-10-02 17:41:19 +01:00
George Cushen
39a618761a feat: standardise blocks
- rename widgets/ folder to blocks/
- rename Blank block to Markdown
- rename Pages block to Collection
- replace Featured block with Collection block, filtered with `featured_only: true`
- standardise block variables to .wcPage and .wcBlock
- check requested block exists before loading
- refactor block parser to parse_block.html
2022-10-02 17:33:18 +01:00
George Cushen
537ba53461 feat: support SVG as section background 2022-10-02 15:45:24 +01:00
George Cushen
973bf69054 starters(academic): edit demo section 2022-09-29 20:00:32 +01:00
George Cushen
b9cb216870 starters(academic): add example gallery 2022-09-29 19:45:13 +01:00
George Cushen
cb585f4bba starters(academic): add example gallery 2022-09-29 19:40:19 +01:00
George Cushen
848a7c6a2a feat: add support for View wrappers
E.g. a custom view (views/custom.html) can be wrapped with:

views/custom-start.html
views/custom-end.html

This allows for custom grid-based views (cards, etc.)
2022-09-28 23:19:28 +01:00
George Cushen
230d4a35ce docs: fix broken links 2022-09-25 22:04:29 +01:00
George Cushen
f08786ecee starters: upgrade second-brain, markdown-slides
Renamed Notes starter -> second-brain
2022-09-24 13:44:00 +01:00
George Cushen
460f619542 chore: bump version 2022-09-24 13:18:32 +01:00
George Cushen
173224079f fix: mindmap first item rendered indented 2022-09-24 13:17:32 +01:00
George Cushen
a2b502f9d6 starters(slides): update modules
Fixes #2811
2022-09-24 12:57:01 +01:00
George Cushen
20fdc04606 feat(slides): remove dependency on Wowchemy Bootstrap module 2022-09-24 12:57:01 +01:00
Federico Agostini
342a418071
build: preserve comments in language pack synchroniser (#2831)
By migrating from PyYAML to Ruamel for YAML parsing
2022-09-17 15:56:54 +01:00
Anirban Basu
c85924ba3e
fix: use absolute path in cookie_consent.html (#2804)
Adding `site.GetPage /privacy.md` to reflect the absolute path to `privacy.md`, as per the Hugo documentation for GetPage.

This should force Hugo to only link to a `/privacy.md` page at the root of the site and prevent Hugo searching for unrelated pages with `privacy` in the name (as it currently does, if for example you also have a /tags/privacy/ page).

Note that currently there's a Hugo bug where Hugo does not respect absolute paths in `site.GetPage`. Hence, Hugo can still return other unrelated pages (for example any other pages that have `privacy....` in the filename) until this bug is fixed: https://github.com/gohugoio/hugo/issues/10243
2022-09-17 11:04:33 +01:00
George Cushen
71f51091fb feat: add Docsearch to 404 page 2022-09-16 19:43:46 +01:00
Pedro Ortiz Suarez
708b38cecc
feat: update Academicons to v1.9.2 (#2833) 2022-09-16 19:42:43 +01:00
Wei-Tse Hsu
5191e384bd
feat: add GitHub Discussions as a comment provider via Giscus (#2830) 2022-09-16 19:41:38 +01:00
George Cushen
c40f8ca503 feat: add support for different Footer Widgets
For example, params.yaml:

```
footer:
  widget: mega
```

loads `layouts/partials/components/footers/mega.html`
2022-09-12 22:40:50 +01:00
George Cushen
c36731acb3 fix: docs <article> wrap content only
Prevents Docsearch picking up Feedback Widget text etc. in search results
2022-09-07 22:44:54 +01:00
George Cushen
0f2261995e fix: dismiss Announcement Bar 2022-09-07 22:32:42 +01:00
George Cushen
1174c8564f feat: add Announcement Bar feature
In front matter:

```
announcement:
  text: ''Hello World!️'
```
2022-09-07 22:07:54 +01:00
George Cushen
769ac0e624 feat: add support for Algolia Docsearch
In params.yaml:

```
  search:
    provider: docsearch
    docsearch:
      app_id: ''
      api_key: ''
      index_name: ''
```
2022-09-07 21:51:28 +01:00
George Cushen
171a4dd85f refactor: import new wowchemy-core/seo modules 2022-09-07 21:39:52 +01:00
George Cushen
8cd28ca07f refactor: move utilities and seo to wowchemy-core/seo modules 2022-09-07 21:29:32 +01:00
George Cushen
18ac0b42a8 feat: align with .Params.image for featured/cover image 2022-09-07 21:22:53 +01:00
George Cushen
b46f34be28 docs: move page over 2022-09-03 15:43:47 +01:00
George Cushen
8aebca9c53 docs: make CONTRIBUTING.md easier to find 2022-09-02 20:18:53 +01:00
Federico Agostini
1fe36f5374
feat: load featured image from media library (#2799)
Adds support for loading featured image from media library via `image.filename` param as an alternative to placing a `featured.*` image in the page folder.

Supports setting a default feature image for all pages via Hugo Cascade in Hugo Config.

Supports featured image reuse without duplicating the image within each page folder.
2022-09-02 19:58:04 +01:00
Niskala Airaha
56994f726e
i18n: add Malay translations (Roman & Jawi) (#2808) 2022-08-30 18:47:45 +01:00
George Cushen
62cd90d0e0 fix: page feedback widget, ga -> gtag 2022-08-29 23:02:36 +01:00
George Cushen
875a3e5fa6 feat: add page feedback widget
Requires Google Analytics and production env.

New front-matter param for Book layout:

feedback: true
2022-08-28 00:55:24 +01:00
Federico Agostini
51cb8663ba
docs: add comments to document shortcode params (#2796) 2022-08-27 23:25:35 +01:00
Anirban Basu
1ef73475fc
i18n: add Bengali language pack (#2802) 2022-08-26 13:03:25 +01:00
Stefano Cecere
8eb59a8a45
i18n: update it.yaml (#2803) 2022-08-26 12:47:04 +01:00
George Cushen
58b2ca96ec chore: migrate GH issue template to issue form
See https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#creating-issue-forms
2022-08-26 00:14:18 +01:00
George Cushen
ccd378a66e chore: migrate GH issue template to issue form
See https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#creating-issue-forms
2022-08-26 00:12:49 +01:00
George Cushen
0a39615077 chore: migrate GH issue template to issue form
See https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#creating-issue-forms
2022-08-25 23:15:29 +01:00
George Cushen
74cc29c8ca chore: migrate GH issue template to issue form
See https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository#creating-issue-forms
2022-08-25 23:10:24 +01:00
George Cushen
005e361174 feat: add support for more complex filters in Portfolio widget
See https://isotope.metafizzy.co/filtering.html

E.g. filter on multiple tags:

```
  filter_button:
    - name: All
      tag: '*'
    - name: Machine Learning
      tag: ML
    - name: Computer Vision
      tag: CV
    - name: NLP
      tag: NLP
    - name: CV or NLP
      filter: '.js-id-cv, .js-id-nlp'
    - name: ML and NLP
      filter: '.js-id-ml.js-id-nlp'
```
2022-08-25 20:28:05 +01:00
George Cushen
d9b6d28562 fix: mindmap when using Hugo --minify 2022-08-21 11:37:46 +01:00
George Cushen
65edbaa28c docs: edit 2022-08-21 11:10:20 +01:00
George Cushen
ef8f0a96f3 feat: add support for mindmaps 2022-08-21 10:55:47 +01:00
George Cushen
7644a28711 docs: add content docs 2022-08-20 19:39:27 +01:00
George Cushen
de76516846 docs: add migration docs 2022-08-20 19:06:12 +01:00
George Cushen
b49528cf1e refactor: move Reveal.JS plugin to its own module
```
module:
  imports:
    - path: github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-reveal
```

See #2792
2022-08-15 18:06:37 +01:00
George Cushen
22e2a7cf74 fix: encoding of quotes in Page Sharer URL
Resolves merge conflicts in #2726

Fix #2726
2022-08-14 20:03:40 +01:00
Rudolf Lioutikov
9eb2f1fc3f
docs: update references to wowchemy-hugo-modules (#2780) 2022-08-14 13:26:10 +01:00
rodrigoalcarazdelaosa
24e842c9af
feat: upgrade FontAwesome from 6.0.0 to 6.1.2 (#2788) 2022-08-14 13:22:38 +01:00
Mohamamd AlMarzouq
76c48517a7
fix: Mermaid diagram rendering in Reveal slides (#2765)
See https://github.com/hakimel/reveal.js/issues/2863#issuecomment-1107444425
2022-08-14 13:08:18 +01:00
George Cushen
1ce2548dcf starters: add line numbers example 2022-08-11 18:49:31 +01:00
Rudolf Lioutikov
3c3e1ed96b
starters: update modules to v5.6.0 (#2779)
Updated module paths as described in #2754. Additionally changed the module names in go.mod to correspond to the repo path
2022-07-26 18:35:49 +01:00
Geo
bfb7d8e3f3 build: update view-starter-dev.sh with renamed modules
See #2754
2022-06-28 20:29:01 +01:00
Geo
45b102b7cc build: with Hugo v0.101.0 2022-06-28 19:58:23 +01:00
Geo
fa0a553b6e build: with Hugo v0.101.0 2022-06-28 19:56:38 +01:00
Geo
e11b64f36d test: update test site for renamed modules
See #2754
2022-06-28 19:54:43 +01:00
Geo
679c67290f chore: bump version 2022-06-28 19:41:39 +01:00
Geo
9f16e76314 refactor: Netlify CMS module name
github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-netlify-cms

See #2754
2022-06-28 19:36:44 +01:00
Geo
a1e764ece6 refactor: split out Netlify module
Creates dedicated module for Netlify deployment:

github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-netlify

See #2754
2022-06-28 19:34:26 +01:00
Geo
e186f9b782 refactor: rename module
github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugins-netlify-cms

See #2754
2022-06-28 18:52:40 +01:00
Geo
a042ab6e60 refactor: rename modules
github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5

github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugins-netlify-cms/v1

See #2754
2022-06-28 18:29:39 +01:00
Geo
1f3cbd0137 feat: redesign Gallery to use grid layout
Postfix -f (full width), -s (small), or -m (medium) to image names for them to span different areas of the grid.
2022-06-28 18:11:38 +01:00
Geo
565e5a40ae fix: invisible BibTeX citation in dark mode
Regression from migration of HLJS to Hugo's Chroma.

Fix #2753
2022-06-27 15:07:44 +01:00
Geo
4ce2a141a3
starters: fix readme news section 2022-06-21 17:31:45 +01:00
Yury Zhauniarovich
0d8a6eb42e
fix: pass context to the hook partial (#2749)
This commit fixes a bug of the context not being passed to the hook partial.
2022-06-21 17:15:32 +01:00
Daniel
f347d63546
feat: add Slider background fit option to cover or contain image (#2715)
Slider examples:

To scale the image to fit within the slide:

background:
  fit: contain

To fill the slide with the image (default behavior):

background:
  fit: cover
2022-06-15 18:29:38 +01:00
Stefano Cecere
b18d867d88
i18n: update it.yaml (#2738)
updated to sync entries with the latest en.yaml
2022-06-08 11:48:52 +01:00
Geo
acd74954b5 feat: more flexible hooks system
1. Use more standard hook names:
- head-start
- head-end
- body-end
- footer-start
- toc-start
- toc-end

2. Enable multiple files per hook. For example, a starter template may have `hooks/head-end/tpl.html` and a user may have customizations in `hooks/head-end/user.html`

custom_head.html -> hooks/head-end/custom.html
custom_js.html -> hooks/body-end/custom.html

Deprecates custom_head.html and custom_js.html but they remain supported for now.
2022-06-03 00:40:52 +01:00
Geo
d26624902d fix: inclusion of null locs in sitemap.xml
Impacted by Hugo changes

Fix #2732
2022-06-02 22:56:51 +01:00
Geo
d0aac60634 docs: clarify contribution steps 2022-06-02 21:09:20 +01:00
Geo
076464227c feat: migrate prev/next pager to Hugo's cascade system
New cascade front matter param: .Params.pager

Close #2737
See #2395
2022-06-02 20:12:36 +01:00
Geo
45f971c352 feat(book): auto-list child pages and add fallback title
Quality of life improvements for creating second brains or knowledge bases with apps like Obsidian.
2022-06-02 20:00:37 +01:00
Geo
50de7bd87e feat: check that Chroma theme exists
Also renames global Chroma theme variables to:

site.Params.features.syntax_highlighter.theme_light
site.Params.features.syntax_highlighter.theme_dark
2022-06-02 20:00:37 +01:00
Tatsuki
98932fcf96
i18n: improve Japanese translation (#2720) 2022-05-25 00:42:01 +01:00
Geo
aa03201adb starters(notes): add Cover image 2022-05-16 19:53:40 +01:00
Geo
2d2e58d8f4 feat: add Cover image to Book layout 2022-05-16 19:44:32 +01:00
Geo
0fa9b81706 starters(notes): get fix for regression space in Book menu 2022-05-16 13:31:57 +01:00
Geo
b804e4ab2f fix: regression space in Book menu
Fixes earlier commit

Fix 9868b04fae
2022-05-16 13:24:51 +01:00
Geo
77a684a7d2 starters(notes): edit 2022-05-16 12:25:32 +01:00
Geo
da81c3b8fe feat: add Notes starter template 2022-05-16 12:04:17 +01:00
Geo
3e7984306c refactor: consistency 2022-05-16 11:55:26 +01:00
Geo
9868b04fae fix: case with book at site root 2022-05-16 11:40:29 +01:00
Geo
c83227df43 feat: add legacy fallback to clipboard copy 2022-05-14 17:28:08 +01:00
Geo
fac5d24b4c feat: use built-in Hugo syntax highlighter
Increase site performance and reduce dependencies

Also, adds Copy button to code blocks.
2022-05-14 16:58:08 +01:00
Geo
872132abc6 style: upgrade devDependencies
Stylelint added many new default rules

Added some temp rule exclusions until code can be refactored

Ran ESlint and Stylelint auto-fixer to fix any new errors which can be auto-fixed
2022-05-14 13:50:15 +01:00
Geo
e0c66403a3 starters(slides): workaround Hugo span injection
See 2708
2022-05-12 18:58:15 +01:00
Geo
b26aa0f99f starters: allow frame embeds for speaker notes 2022-05-12 18:41:10 +01:00
Markus Hofbauer
814fa1db69
starters: update link to export slides as pdf (#2709) 2022-05-12 11:46:38 +01:00
Geo
c2752b9991 starters(course): update Hero 2022-05-11 21:02:18 +01:00
Geo
cacfcca779 starters(course): demo filtering by courses 2022-05-11 20:31:56 +01:00
Geo
f9565e3931 feat(portfolio): add filters for exclude_tags and page kind
Experimental Portfolio widget support for:

content.filters.exclude_tags
content.filters.kinds
2022-05-11 20:26:29 +01:00
Nathan Rutherford
6b1f2f3cf0
starters(academic): update default cms branch (#2705)
The Academic repo branch was renamed from master to main so when netlify creates a new repo based on this template, the default branch is named 'main' instead of 'master'.

Leaving the default cms branch param as 'master' will result in a credentials error whenever a user tries to login using the /admin page. Renaming this to 'main' fixes the error.
2022-05-08 15:02:44 +01:00
Geo
30cbf91201 docs: edit 2022-04-24 23:15:02 +01:00
Geo
d13358e38f starters: update 2022-04-23 19:11:19 +01:00
Geo
17d5d3f0ca starters: update 2022-04-23 19:09:19 +01:00
Geo
74223e9458 fix: upstream Bootstrap bug in mobile menu toggle
Bootstrap error: TypeError: Cannot read properties of undefined (reading '_isTransitioning')

Resolved in Bootstrap v4.6.1

See https://discord.com/channels/722225264733716590/742863504515793149/967407603284078662

See https://github.com/twbs/bootstrap/releases/tag/v4.6.1
2022-04-23 19:01:11 +01:00
Geo
6f48b6368a fix: upstream Bootstrap bug in mobile menu toggle
Bootstrap error: TypeError: Cannot read properties of undefined (reading '_isTransitioning')

Resolved in Bootstrap v4.6.1

See https://discord.com/channels/722225264733716590/742863504515793149/967407603284078662

See https://github.com/twbs/bootstrap/releases/tag/v4.6.1
2022-04-23 18:40:13 +01:00
Geo
4f9bb2bb82 starters: redesign of Minimal template 2022-04-23 15:11:29 +01:00
Geo
378aa6124f starters: redesign of Minimal template 2022-04-21 13:52:47 +01:00
Geo
1325f0a9c1 starters: redesign of Minimal template 2022-04-21 13:35:30 +01:00
Geo
719dcbe8f8 feat: support tooltip and PDF in new tab in about.avatar widget 2022-04-21 13:34:17 +01:00
Geo
1ed86e35ab fix: regression in cite copy button
Button action started copying wrapping HTML tags too
2022-04-20 15:40:21 +01:00
Geo
b026701dd6 feat: re-add link option to figures 2022-04-17 15:37:27 +01:00
Geo
3f178a06f4 starters: mod update 2022-04-14 13:57:06 +01:00
Geo
f6b6d73605 chore: edit go.mod 2022-04-12 12:37:04 +01:00
amistyrain
3ee572954a
fix: post list duplicated on project page (#2682)
Fixes recent copy/paste typo
2022-03-25 14:09:50 +00:00
Geo
fa9827b726 feat: autodetect Isotope usage
Remove Params.extensions.isotope.enable
2022-03-24 19:11:49 +00:00
Geo
4de6c3e203 starters: fix image 2022-03-24 15:38:42 +00:00
Geo
5c26e66f6d feat: migrate social sharing config to Hugo Cascade
Just add `share: false` to page front matter or via Hugo Cascades to disable the page sharer at the bottom of pages.

See https://discord.com/channels/722225264733716590/742863504515793149/956507676806877235
See #2601
2022-03-24 15:38:42 +00:00
Stefano Cecere
15e9e631f8
chore: update version string to 5.5.0 (#2677) 2022-03-24 14:23:13 +00:00
Geo
5a882fab11 starters: add Academic and update all 2022-03-22 21:29:51 +00:00
Geo
cc5708bb9c feat: detect Mermaid on nested headless pages
See #2643
2022-03-22 21:27:41 +00:00
Geo
d773f436c3 ci: update Hugo version to match latest reqs
See #2643
2022-03-22 20:17:16 +00:00
Geo
1df9a874f9 feat: auto detect Mermaid diagrams
Via the ```mermaid code fences.

Deprecate the Params diagram setting

Close #2643
2022-03-22 20:13:03 +00:00
Geo
06921addf2 feat: add filtering and sorting options to Portfolio widget
Add content.filters.folders and content.filters.tags to filter on folders or tags.

Add content.sort_by (str) and content.sort_ascending (bool) options.

Close #2666
2022-03-22 19:54:22 +00:00
Geo
94fc0df0b8 feat: add sort_by and sort_ascending options to Page Widget
See #2666
2022-03-22 19:51:53 +00:00
Geo
2d6cad18d6 fix: get site description from marketing.seo.description
Fix #2673
Fix 439dfb3a408564703696bfd121790358f592e0f0439dfb3a408564703696bfd121790358f592e0f0
2022-03-22 19:31:08 +00:00
Geo
c0d0690a83 fix: abstract no longer displayed in Compact view
Fix #2668
2022-03-13 12:48:20 +00:00
rodrigoalcarazdelaosa
acd5e742af
feat: update Font Awesome from v5.15.3 to v6 (#2650)
Close #2649
2022-03-09 00:06:24 +00:00
Geo
9ad66cdfc8 starters: update 2022-03-07 12:59:08 +00:00
Geo
f79d022518 starters: add Resume page to Portfolio 2022-03-07 12:57:23 +00:00
Geo
e04ccf7a25 fix: display of button links in views
Fix #2655
Fix #2656
Fix #2658
2022-03-07 12:56:11 +00:00
George Cushen
d75dbe7f3d starters: update to support Hugo 0.93 2022-03-03 21:17:51 +00:00
Mickaël Canouil
97a4b87534
feat: address Hugo v0.92 notice RE changing behaviour of .Path (#2642) 2022-03-03 20:24:39 +00:00
bkrl
7d4f8d5650
feat: run PostCSS on vendor CSS (#2644)
Currently, PostCSS can optionally be run on the main CSS bundle. This commit allows PostCSS to also be run on the vendor CSS. This can greatly reduce the size of the vendor CSS bundle when combined with PurgeCSS since most of the Font Awesome CSS is unused.
2022-03-03 20:13:03 +00:00
George Cushen
381a6c2073 fix: move font_size under site.Params.appearance
See https://discord.com/channels/722225264733716590/742863504515793149/947330978089676830
2022-02-27 10:45:00 +00:00
George Cushen
48f2ceefe1 feat: add security option to allow frames
site.Params.security.allow_frame
2022-02-26 14:06:13 +00:00
Foivos
55d7a2bff4
fix: get license from footer.copyright.license (#2638)
See #2601
2022-02-26 12:49:02 +00:00
George Cushen
ebcb34b523 starters: Slider bg position 2022-02-23 21:37:33 +00:00
George Cushen
47f37ee211 fix: Slider bg position 2022-02-23 21:36:57 +00:00
George Cushen
45734d8e98 starters: add Research Group template
BREAKING CHANGES:
New, improved Slider widget
2022-02-23 21:20:05 +00:00
George Cushen
360638b17b starters: add Research Group template
BREAKING CHANGES:
New, improved Slider widget
2022-02-23 20:57:35 +00:00
George Cushen
e34e6372b1 starters: add Minimal template 2022-02-20 20:00:12 +00:00
George Cushen
008f07dc36 starters: add Course template 2022-02-20 19:36:21 +00:00
George Cushen
98d590223d docs: edit 2022-02-20 18:27:31 +00:00
George Cushen
a956bdff02 docs: edit 2022-02-20 17:36:04 +00:00
George Cushen
d0da1f2199 starters(blog): fix unescaped math 2022-02-16 21:59:25 +00:00
George Cushen
96826d5ea9 build: add script to view starters 2022-02-16 21:55:41 +00:00
George Cushen
92cd830811 feat(style): make it obvious that toggled text is not body text 2022-02-16 21:55:02 +00:00
George Cushen
6110bcf371 feat(style): style task lists with emoji check boxes 2022-02-16 21:54:03 +00:00
George Cushen
8e2b1cc26b feat(style): use Bootstrap table style 2022-02-16 21:52:48 +00:00
George Cushen
9982c23440 feat: add Math shortcode
No longer need to escape Markdown symbols within math. For example,

{{< math >}}$\nabla F(\mathbf{x}_{n})${{< /math >}}
2022-02-16 19:34:34 +00:00
George Cushen
7080641443 feat: enable multiple contact widgets
Move contact params from params.yaml to contact widget

SEO contact details (phone, address, coords) now under params.yaml > marketing > seo

See #2601
2022-02-14 21:22:54 +00:00
George Cushen
ec6d170ce4 fix: new locale params
See #2601
2022-02-14 19:40:17 +00:00
AlidiPatrick
90c53aa0ca
i18n: add Malagasy (mg) translation (#2626) 2022-02-14 18:58:54 +00:00
George Cushen
487e4810bd starters: add Portfolio starter 2022-02-13 22:55:35 +00:00
George Cushen
210721e04f starters: add Portfolio starter 2022-02-13 22:34:48 +00:00
George Cushen
b5f6b98ab1 starters: add Portfolio starter 2022-02-13 22:34:02 +00:00
George Cushen
585a65e926 starters: add Portfolio starter 2022-02-13 22:25:26 +00:00
George Cushen
31333ef8d4 fix: center Portfolio toolbar in 1 col layout 2022-02-13 22:23:31 +00:00
George Cushen
6ca1b15ab4 starters: upgrade Docs starter to use v5.5-dev 2022-02-13 17:12:52 +00:00
George Cushen
f2a7091eaa starters: fix link 2022-02-13 13:54:39 +00:00
George Cushen
8fce64e801 starters: add Slides readme 2022-02-13 13:44:45 +00:00
George Cushen
e576f7c3c3 starters: add Docs starter 2022-02-13 13:10:22 +00:00
George Cushen
6224270ab3 fix(scss): prevent HLJS default text and bg colors getting overrided 2022-02-09 00:23:42 +00:00
George Cushen
30e85a648b fix(scss): prevent HLJS default text and bg colors getting overrided 2022-02-09 00:08:13 +00:00
George Cushen
753da251dd starters: add Blog starter 2022-02-08 21:54:05 +00:00
George Cushen
7c83d94590 starters: add Blog starter 2022-02-08 21:50:36 +00:00
George Cushen
8985075341 refactor: site.Params.require_isotope -> site.Params.extensions.isotope.enable
BREAKING CHANGE

See #2601
2022-02-08 21:33:09 +00:00
George Cushen
63d414dd7b refactor: site.Params.cms -> site.Params.extensions.cms
BREAKING CHANGE

See #2601
2022-02-08 21:31:09 +00:00
George Cushen
fa9b6c511c refactor: site.params.search -> site.Params.features.search
BREAKING CHANGE

See #2601
2022-02-08 21:27:50 +00:00
George Cushen
162004b21e refactor: site.params.edit_page -> site.Params.features.repository
BREAKING CHANGE

See #2601
2022-02-08 21:26:40 +00:00
George Cushen
39e6f6142d refactor: site.params.comments -> site.Params.features.comment
BREAKING CHANGE

See #2601
2022-02-08 21:22:17 +00:00
George Cushen
dba78beda6 refactor: site.params.avatar -> site.Params.features.avatar
BREAKING CHANGE

See #2601
2022-02-08 21:19:04 +00:00
George Cushen
284560727c refactor: site.params.diagram -> site.Params.features.diagram.enable
BREAKING CHANGE

See #2601
2022-02-08 21:15:55 +00:00
George Cushen
0a6e711f81 refactor: site.params.math -> site.Params.features.math.enable
BREAKING CHANGE

See #2601
2022-02-08 21:14:08 +00:00
George Cushen
479b0ad9f1 refactor: site.params.highlight -> site.params.features.syntax_highlighter
BREAKING CHANGE
2022-02-08 21:11:35 +00:00
George Cushen
52d2c4f97a style: remove margin from last P 2022-02-08 20:43:58 +00:00
George Cushen
05f56c7c78 feat: show page content in about.avatar 2022-02-08 20:37:43 +00:00
George Cushen
699c2517dd feat: show page content in about.avatar 2022-02-08 20:36:24 +00:00
George Cushen
d7088182cb starters: update mod 2022-02-08 19:45:38 +00:00
George Cushen
eb26160ea9 feat: add package splitter 2022-02-08 19:25:00 +00:00
George Cushen
2ccc34471c feat: modularise JS map, publication, carousel
BREAKING CHANGES:

site.Params.icon.pack.ai -> site.Params.extensions.academicons.enable
site.Params.map -> site.Params.features.map
site.Params.features.privacy_pack -> site.Params.features.privacy_pack.enable
site.Params.marketing and site.Params.seo combined and restructured.

Performance improvements:

Only include pub JS and cite model if site has publications.

Only include carousel JS if site uses Slider widget.

Only include map JS if site uses maps (sets map provider).
2022-01-22 15:26:57 +00:00
George Cushen
963107a536 feat: rename old Params.header to Params.banner
Avoid conflict with new `header` param that configures site header
2022-01-20 21:43:29 +00:00
George Cushen
9e1704c71f feat: add breadcrumb to all pages
With `show_breadcrumb: true` in front matter
2022-01-20 21:37:57 +00:00
George Cushen
0f612575bc fix: Headroom console error when no header 2022-01-20 21:37:12 +00:00
George Cushen
ab96e174c2 refactor: use Hugo's cascade system for edit, related, breadcrumb
BREAKING CHANGES:

The editable and show_related options must now be controlled from front matter, either directly or cascaded from Hugo config

Move breadcrumb option from params.yaml to front matter `show_breadcrumb: true`
2022-01-19 23:10:53 +00:00
George Cushen
cf47911ab9 fix: links in Showcase view
Fix #2589
2022-01-19 22:49:02 +00:00
George Cushen
fb267f3b02 refactor: move fallback theme from config to theme parser 2022-01-19 22:32:38 +00:00
George Cushen
273bbe2370 refactor: move fallback theme from config to theme parser 2022-01-19 22:32:20 +00:00
George Cushen
6d6b4b4c83 feat: let a specific page have no navbar
```
header:
  navbar:
    enable: false
 ```
2022-01-19 22:30:30 +00:00
George Cushen
61ce4e59a3 refactor: use Hugo's cascade system for commentable
BREAKING CHANGE: remove commentable from params.yaml
2022-01-19 21:01:09 +00:00
George Cushen
439dfb3a40 feat: more intuitive settings
BREAKING CHANGES: in params.yaml:

```
appearance:
  theme_day: minimal
  theme_night: minimal
  font: minimal
  font_size: L

seo:
  site_type: Person
  local_business_type: ''
  org_name: ''
  description: ''
  twitter: ''

header:
  navbar:
    enable: false

footer:
  text:
  copyright:
    notice: '© {year} Me. This work is licensed under {license}'
    license:
      enable: true
      allow_derivatives: false
      share_alike: true
      allow_commercial: false

features:
  privacy_pack: false
```
2022-01-13 22:01:15 +00:00
Mikhail Usvyatsov
d134dc7f12
fix: migrate mr_robot font to Google Font API v2 (#2583) 2022-01-10 20:45:53 +00:00
George Cushen
619dbfd16f feat(tpl): add Markdown Slides Starter 2022-01-09 16:18:35 +00:00
George Cushen
be9e2fde4a fix: slides WebAppManifest URI 2022-01-09 16:03:54 +00:00
George Cushen
d615d9d89c refactor: site locale params under params.locale
BREAKING CHANGE: in params.yaml:

```
date_format: 'Jan 2, 2006'
time_format: '3:04 PM'
address_format: en-us
```

to

```
  locale:
    date_format: 'Jan 2, 2006'
    time_format: '3:04 PM'
    address_format: en-us
```
2022-01-09 14:27:15 +00:00
Oka bRionZ
98f15e88e2
i18n: update Indonesian (id) (#2581) 2022-01-04 19:22:32 +00:00
George Cushen
6c38574055 fix: cite shortcode in v5.5-dev is missing page context
Fix #2578
2022-01-03 15:21:25 +00:00
George Cushen
6d4989f90f feat: add support for Hugo v0.91 breaking changes
Hugo team prevented users from building Hugo sites unless all env vars are added to an allow list.

Refer to Hugo v0.91 breaking changes: https://github.com/gohugoio/hugo/releases/tag/v0.91.0
2021-12-31 13:33:58 +00:00
George Cushen
611b5215c3 feat: add folder filter to Pages widget
New front matter key: `content.filters.folders`
2021-12-31 13:25:06 +00:00
rodrigoalcarazdelaosa
0a09b435e3
feat: update reveal.js from 4.1.0 to 4.2.1 with MathJax 3 integration (#2566) 2021-12-30 14:12:14 +00:00
IceCodeNew
f7a91f5217
feat: convert slides from Cloudflare to JSDelivr CDN (#2513)
Help support sites in China where Cloudflare's CDNJS can be blocked/throttled.
2021-12-23 21:19:01 +00:00
kazutoiris
87f69f8c26
Show name pronunciation in About widgets (#2489)
Add `name_pronunciation: ...` to an author profile to use.
2021-12-21 22:05:55 +00:00
George Cushen
f7c06211fa feat: lazy load more images 2021-12-19 19:09:07 +00:00
George Cushen
4fccaa0f4b feat: migrate Project page to unified View system 2021-12-19 19:08:36 +00:00
George Cushen
b12b5901b6 feat: reduce image sizes with WEBP
Can reduce image sizes by > 5x on a typical site that previously output JPGs and PNGs

(Facilitated now that Hugo reliably supports WEBP)

Also, adds some missing image Heights and Widths to help improve SEO and reduce CLS.
2021-12-19 18:14:40 +00:00
George Cushen
4a07f9eaa7 feat: include Algolia in 404 search 2021-12-19 17:03:04 +00:00
George Cushen
5216e4c8b3 chore: use fixed Hugo version in GH Action 2021-12-18 19:52:54 +00:00
George Cushen
994d21b3dd feat: add support for Headroom
When header.on_scroll == "disappear", with sensible defaults
2021-12-18 19:42:10 +00:00
George Cushen
8ff1659261 feat: debounce Algolia search 2021-12-18 16:02:26 +00:00
George Cushen
e23e23e847 feat: migrate Portfolio widget to unified view system
See https://wowchemy.com/docs/getting-started/page-builder/#view

Close #2557
2021-12-18 11:42:28 +00:00
George Cushen
ee434ab7ef feat: upgrade Algolia integration from v2 to v4 2021-12-15 23:34:45 +00:00
George Cushen
1e48b12bf8 feat: add support for Portfolio's Showcase view in all normal, non-portfolio views 2021-12-14 20:20:09 +00:00
George Cushen
a99a1efa45 feat: support community grid views
Third party, community views can be added to the new community folder, e.g. by creating a file at layouts/partials/views/community/MY_VIEW.html

And referencing it as `view: community/MY_VIEW`
2021-12-14 20:18:45 +00:00
George Cushen
36bc271272 feat: support common queries in Algolia integration too
Intro experimental 'searchable' front matter param too
2021-12-14 19:24:54 +00:00
George Cushen
c937b22f1e refactor: paths for components 2021-12-14 19:21:52 +00:00
George Cushen
2eecb5875a chore: prep 5.4.0 release 2021-11-28 21:00:23 +00:00
George Cushen
50eeef1f2b feat: workaround Hugo bug with localized dates
Hugo 0.87 added support for localized dates yet Hugo localizes dates on non-English sites to a different language, English.

Close #2539
2021-11-28 20:39:21 +00:00
Li Yao
d26f01d5d6
feat: improve style of publication search box (#2533)
Added `form-control form-control-sm` to the search box so that it has the same appearance as the selectors
2021-11-22 23:10:30 +00:00
Geo
6d19ea178e
docs: edit 2021-11-21 19:06:52 +00:00
IceCodeNew
a420936533
refactor: migrate from CDNJS to JSDelivr (#2512)
Helps complete #2351
Better support sites in China
2021-11-14 22:08:42 +00:00
Gavin Rozzi
0d97991430
feat: upgrade Classic font pack to GFonts API v2 (#2516)
Small update to fix error re: Google fonts on Classic font set. Without this change Hugo raises the following ERROR:

"There is a new version of Google Fonts. Learn how to upgrade your font pack at https://wowchemy.com/docs/customization/#custom-font
Error: Error building site: logged 1 error(s)"
2021-11-01 18:42:41 +00:00
Mitchell Olsthoorn
c43d078def
feat: update Academicons to v1.9.1 (#2505) 2021-10-25 23:06:23 +01:00
George Cushen
7201a4fa8c style: increase emoji alpha 2021-10-17 23:26:40 +01:00
George Cushen
690968b3aa feat: add support for status icon in about.avatar widget
To use add the new field to an author file:
```
status:
  icon: an emoji here
```
2021-10-17 23:09:36 +01:00
George Cushen
a6a82317f8 chore: req Hugo 0.86.1 for cascading front matter params from config 2021-10-17 23:05:45 +01:00
George Cushen
b02a90a434 feat: CLS - preconnect to Google Fonts earlier
Also, allow disabling Isotope on a specifc page, such as home
2021-10-04 20:19:17 +01:00
George Cushen
6d382a393a feat: CLS - preconnect to Google Fonts earlier
Also, allow disabling Isotope on a specifc page, such as home
2021-10-04 20:17:50 +01:00
George Cushen
922e22cca5 feat: add support for page seo.title 2021-10-04 12:59:57 +01:00
George Cushen
64c3c7e8a2 feat: rename repo to wowchemy-hugo-themes
Except repo name in module names as that would be a breaking change
2021-10-04 12:18:12 +01:00
James Tatum
c7616ab568
feat: don't index private pages (#2464)
Setting the private attribute on pages currently prevents them from showing up in Wowchemy search.

This change instructs search engines to also ignore pages set to private.

Fixes #2444
2021-09-20 19:20:57 +01:00
George Cushen
c9831b5c1e fix: sharer being aria hidden but having focusable dependents 2021-09-13 00:48:19 +01:00
George Cushen
9ccb06531f fix: ToC tap target size (Lighthouse) 2021-09-13 00:32:05 +01:00
George Cushen
d054640701 fix: SVG header logo missing size (Lighthouse fix)
Part 2/2.

See unresolved Hugo issue: gohugoio/hugo#3700

Workaround is to manually define SVG size:
site.Params.header.image.width
site.Params.header.image.height
2021-09-13 00:16:54 +01:00
James Tatum
0c287152ef
fix: add width and height to header/featured image (#2463)
Prevent layout shift (Lighthouse)
2021-09-12 23:58:40 +01:00
George Cushen
509c887370 fix: ToC tap target size (Lighthouse) 2021-09-12 23:56:01 +01:00
George Cushen
f6356f5ceb fix: SVG header logo missing size (Lighthouse fix)
See unresolved Hugo issue: https://github.com/gohugoio/hugo/issues/3700

Workaround is to manually define SVG size:
site.Params.header.image.width
site.Params.header.image.height
2021-09-12 23:20:49 +01:00
George Cushen
8b6612e763 feat: add simple Avatar variation of About widget 2021-08-30 16:08:13 +01:00
rodrigoalcarazdelaosa
81345fad46
style: remove extra spaces in link buttons (#2412) 2021-08-11 10:10:31 +01:00
George Cushen
88ec9270d0 chore: move HugoThemeSite files
As per Bep comment
2021-08-07 13:52:57 +01:00
George Cushen
437c4f0fde feat: Table: rename src -> path 2021-08-07 13:29:04 +01:00
Bevan Stanely
44819d4299
feat: add Table shortcode to render a CSV (#2393) 2021-08-07 13:22:32 +01:00
hk7math
18817339c3
i18n: improve zh-Hant translation (#2404)
- "more" means "更多" instead of "全部"
- fix a simplified character "费" to "費"
- some more recent language strings translated
2021-08-07 13:13:20 +01:00
George Cushen
0a81156278 chore: move theme.toml and images/ - workaround for Hugo 2021-07-25 21:21:42 +01:00
George Cushen
4bf054e44f chore: move theme.toml and images/ 2021-07-25 21:00:41 +01:00
George Cushen
bbe35065fb chore: move theme.toml and images/ 2021-07-25 11:42:39 +01:00
George Cushen
3670e8959f chore: add theme.toml and images/ 2021-07-25 11:32:47 +01:00
rodrigoalcarazdelaosa
cda364b190
feat: add attachments and success_url options to contact form (#2394)
Scope: Netlify forms
2021-07-24 17:32:02 +01:00
George Cushen
ce834f7b9c fix: typo in audio shortcode
Although typo didn't actually cause any issues as there's a URL-based fallback in place.
2021-07-24 14:04:53 +01:00
Bevan Stanely
265894f904
feat: add support for rCAPTCHA in Formspree forms (#2377) 2021-07-21 21:51:00 +01:00
George Cushen
58dc5154c3 fix(cms): cannot save project without entering an external link
Fix #2388
2021-07-21 21:31:24 +01:00
Roneo.Org
8e019feb3c
docs: fix broken link in Readme (#2385) 2021-07-21 21:25:30 +01:00
Jonathan Dumont
f2a43d13cd
i18n: add en-ca and fr-ca address formats (#2389) 2021-07-21 21:24:08 +01:00
Mitchell Olsthoorn
9a5cd58eaf
i18n: add Dutch address format (#2387) 2021-07-21 21:22:33 +01:00
George Cushen
1db799ea74 fix: Lighthouse btn accessibility and image size 2021-07-17 15:05:02 +01:00
George Cushen
c750304197 perf: install core libs directly rather than via external CDN
Increase performance in countries such as China.

Addresses the case where countries block or restrict CDNs, or when external CDNs go offline.

See https://github.com/wowchemy/wowchemy-hugo-modules/pull/2351
2021-07-17 14:03:31 +01:00
George Cushen
a9189fd7c7 perf: optimise size and format of section backgrounds 2021-07-17 10:39:39 +01:00
George Cushen
42d1cf0063 feat: add support for video backgrounds
Via design > background > video > path

Also add flip option and move `advanced` params under `design` instead, whilst maintaining legacy compat.
2021-07-10 00:20:23 +01:00
Paaz CA
20705590cc
i18n: update Hebrew translation (#2375) 2021-07-09 18:53:42 +01:00
George Cushen
94ce6a21f2 docs: edit 2021-07-01 20:37:29 +01:00
Geo
028d5cbef5
fix: test for new module versions 2021-06-29 21:02:26 +01:00
George Cushen
97397f4386 feat: support Hugo 0.84.1 and full Go modules 2021-06-29 20:38:32 +01:00
George Cushen
559885af86 feat: support Hugo 0.84.1 and full Go modules 2021-06-29 20:29:04 +01:00
George Cushen
4b0c292a07 feat: support Hugo 0.84.1 and full Go modules
Remove `markup` from test/config as Hugo 0.84.1 enables to inherit it
2021-06-29 20:19:20 +01:00
George Cushen
644fd14ba8 feat: support Hugo 0.84.1 and full Go modules
Remove webmanifest output spec as Hugo now has it built-in
2021-06-25 00:00:37 +01:00
Alexander Zhang
6f46a68181
feat: support custom footers (#2335)
Support custom footer in site folder at `layouts/partials/hooks/footer.html`

For example, can be used to add columns of nav links to the footer.
2021-06-24 21:26:30 +01:00
xxfye
aa3c072904
feat: add option to change the CDN for highlight.js languages (#2351)
Required due to unstable CDNJS in China
2021-06-24 21:14:50 +01:00
George Cushen
c5bc30be99 docs: edit 2021-06-22 19:55:34 +01:00
George Cushen
b739d8d390 fix: anchor linking (e.g. ToC) does not work when navbar is disabled
Fix #2345
2021-06-19 23:45:13 +01:00
George Cushen
caf535a66d fix: anchor linking (e.g. ToC) does not work when navbar is disabled
Fix #2345
2021-06-19 22:05:49 +01:00
George Cushen
cc42eb4135 feat: add show_date page option to hide date 2021-06-19 16:14:01 +01:00
George Cushen
19ca4a39f2 feat: remove deprecated Docs layout - was replaced with Book in v5.0b0 2021-06-15 20:05:06 +01:00
George Cushen
3b4bcad8c6 feat: portable figures - display figures in Markdown editors
Figures can now be created by using the standard, portable Markdown syntax:

![screen reader text](image.jpg "caption")

Where the image is in the page folder, the media library, or is a remote URI.
2021-06-14 22:08:31 +01:00
George Cushen
27b4916784 feat: check user's choice of color theme exists 2021-06-13 14:32:02 +01:00
Bryan J Hogan
526d011a44
fix: workaround Hugo bug with GetPages fetching page from diff path to that specified (#2284)
User reported Hugo trying to fetch privacy page from a "tag/privacy" folder rather than root
2021-06-13 00:14:37 +01:00
George Cushen
efdea8f259 perf: async load icons 2021-06-11 20:50:08 +01:00
George Cushen
db4dcf6541 feat: support view for course archive & custom section archives
The fullback list view for archive pages did not previously support the `view` option, instead presenting lists in one specific format.

If a user creates a custom section name (e.g. `content/prj/`) that doesn't correspond with a built-in page type, they now have the option not to use the default list view by defining `view` in the associated `_index.md` file.

See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/2323
2021-06-06 14:07:13 +01:00
Ewe Zu Lin
c0d8f2a41a
fix: editorial_workflow mode for Wowchemy CMS (#2319)
The publish_mode option should be placed at the top level instead of under backend.
2021-06-04 18:38:04 +01:00
George Cushen
e9d82a2421 fix: nested figure in callout 2021-06-02 23:21:23 +01:00
George Cushen
01a25ecaec feat: delay PostCSS processing with resources.PostProcess
resources.PostProcess delays processing of a resource until the rest of the build has finished.

This allows the public folder or Hugo's hugo_stats.json file to be used as the content for PurgeCSS, so that only CSS that is used on the final website will be included.

Close #2318
2021-06-01 19:35:57 +01:00
George Cushen
70cef473ae docs: edit 2021-05-31 19:13:49 +01:00
George Cushen
3ea78d2c66 feat: support animated GIF in figures
Workaround Hugo converting animated gifs to static gifs: https://github.com/gohugoio/hugo/issues/5030
2021-05-31 18:59:42 +01:00
George Cushen
bbca6dea78 feat: load gallery from media dir & add gallery display options
Add gallery `order` with options "asc" or "desc"

Add gallery `resize_options` which supports Hugo image processing options.

BREAKING CHANGE:
Move gallery album folders to `assets/media/albums/`. Album name should be defined in shortcode as `album`.

Fix #2245
2021-05-31 12:21:56 +01:00
George Cushen
81ba175229 fix: 404 "latest" don't list pages which Hugo doesn't render
where

_build:
  render: never
2021-05-26 23:38:49 +01:00
George Cushen
f2a5331af0 fix: 404 "latest" order when some pages contain weights
Revert addition of homepage in latest - from prev commit
2021-05-26 23:20:38 +01:00
George Cushen
079a61ab10 fix: 404 "latest" order when some pages contain weights
Prevent Hugo ordering weighted pages higher in the "latest" content list.

Also include course/docs index pages (Hugo "sections") and remove private pages (although Hugo render option is preferred equiv to "private:true")
2021-05-26 23:09:50 +01:00
George Cushen
89d079bcf0 fix: comment 2021-05-25 22:07:30 +01:00
George Cushen
f6e3fa4442 chore: bump version 2021-05-25 21:55:51 +01:00
George Cushen
8711be90e7 feat: support custom order for experience
Close #1761
2021-05-25 21:55:30 +01:00
George Cushen
8bba30b81a fix: unminified JavaScript (#2305)
Repeat prev commit action on the init script
2021-05-25 19:51:11 +01:00
George Cushen
83e9ee7542 chore: edit stale config 2021-05-25 19:38:30 +01:00
Alexander Zhang
b860e6c775
fix: unminified JavaScript (#2305)
Appears that behavior of recent Hugo versions changed w.r.t. JS formatting
2021-05-25 19:32:39 +01:00
Mito
14aea8f8a3
i18n: improve Finnish translations (#2306) 2021-05-25 19:16:08 +01:00
George Cushen
f54794f046 chore: replace defunct Stale bot with GH action 2021-05-22 19:59:22 +01:00
George Cushen
1c4f02fe34 chore: replace defunct Stale bot with GH action 2021-05-22 19:42:27 +01:00
Mark Boss
84e462a5a1
feat: support Bing site verification (#2287)
Via params.yaml > marketing > bing_site_verification
2021-05-16 11:12:31 +01:00
Alexander Zhang
2d9c18ecf0
fix: nonexistent navbar button aria-controls ID (#2268) 2021-05-01 20:13:34 +01:00
George Cushen
0afcc81296 feat: remove deprecated netlify-cms-academic module
Was replaced by wowchemy-cms module in v5.0 (specifically v5.0.0-beta.3): https://wowchemy.com/blog/v5.0.0-beta.3/

See https://wowchemy.com/docs/getting-started/cms/
2021-04-25 20:12:48 +01:00
Alexander Zhang
bfa3808cb6
style: prevent empty p tag when there is no copyright (#2271) 2021-04-22 20:27:24 +01:00
George Cushen
e9cec2d3e9 feat: add new gradient_angle option to page builder 2021-04-18 20:43:15 +01:00
George Cushen
aa4ca206c8 feat: only show User Group headings in People widget when multiple
Hide User Group headings in People widget if admin chooses to only show one user group.
2021-04-18 20:42:27 +01:00
George Cushen
0994df7177 feat: allow SVG as Hero image 2021-04-18 20:41:34 +01:00
George Cushen
171648c808 fix: style mb 2021-04-16 21:57:38 +01:00
George Cushen
1e2347192a fix(widget): error msg 2021-04-16 19:38:34 +01:00
George Cushen
ab8d28988e feat(widget): Experience - add brand logo error msg
Close #1781
2021-04-13 20:22:02 +01:00
George Cushen
153cf5b780 feat(widget): show brand logo in Experience + Accomplishments
To use, add SVG brand logo in lowercase to your `assets/media/icons/brands/` folder

BREAKING CHANGE:

Rename `assets/media/icon-pack/` to `assets/media/icons/`

Close #2259
Close #1781
2021-04-13 20:07:59 +01:00
George Cushen
97ff003d9f fix: Language name doesn't appear for zh-Hant
Language name doesn't appear when LanguageCode has a sub-code

The issue appears to be an inconsistency/bug with Hugo's `.Translations` lowercasing zh-Hant to zh-hant without offering a way to get the language code as it was defined.

We can workaround it for now by converting to lowercase to align with Hugo's current implementation.

Fix #2256
2021-04-13 19:56:28 +01:00
Naomi Chen
f3ea40cc5f
i18n: update zh-Hant.yaml (#2257) 2021-04-13 19:16:09 +01:00
George Cushen
fda9f39d87 chore: bump min hugo version
To v0.81 to get Hugo bug fixes and enable multiline Hugo tpl refactoring, see https://github.com/gohugoio/hugo/releases/tag/v0.81.0
2021-03-24 19:42:00 +00:00
George Cushen
35b8b1f82c chore: bump version 2021-03-24 19:30:07 +00:00
George Cushen
35b5e1d420 feat: move media library from static/ to assets/
Refactor:
- business JSON-LD
- site_head
- Slider
- Gallery
- Video

Gallery is now intended only for local images in the page bundle (so that they can be optimized by Hugo).

Close #2119
2021-03-24 19:29:27 +00:00
George Cushen
17505c4581 refactor: Bootstrap JS URI
Rename URI as GitHub Pages doesn't automatically publish folders with underscores.

Netlify was unaffected.

See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/2201#discussioncomment-508553
2021-03-22 00:47:51 +00:00
Imran Pollob
0eae617819
feat: upgrade Rose font pack (#2216)
to Google Font API v2
2021-03-18 23:26:15 +00:00
George Cushen
cf32fde824 refactor: yarn format 2021-03-08 21:25:18 +00:00
George Cushen
e14c68cb6d feat: migrate Audio shortcode to use assets/media/
Also support page dir asset or URL
2021-03-08 21:22:08 +00:00
George Cushen
bd11c2663b fix: Mermaid diagrams not rendered on race condition
Appears to be race condition when using Mermaid's automatic rendering with `startOnLoad: true` option.

Workaround by manually rendering diagrams.
2021-03-08 21:19:19 +00:00
George Cushen
f9505c2803 feat: make it easier to upscale figure images 2021-03-06 22:34:13 +00:00
George Cushen
1475a49114 fix: JS convert ESM back to iife 2021-03-06 21:45:15 +00:00
George Cushen
142c7c1d5d i18n: sync language packs 2021-03-06 14:44:28 +00:00
George Cushen
fc38e80952 feat: add option to show translations in footer
Adds `Params.footer.show_translations` and `Params.main_menu.show_translations` options
2021-03-05 18:55:08 +00:00
George Cushen
ae4d671d4c feat(style): wider XL container 2021-03-05 17:47:29 +00:00
George Cushen
3edb4ff8e7 feat: get page header image from page dir or assets media library 2021-03-05 17:23:43 +00:00
George Cushen
ae7897c868 feat: add Hero support for design.flip and new media location
Flip reverses the order of the Hero. Can be used with multiple Heros to create the classic alternating feature showcase.
2021-03-05 17:19:57 +00:00
George Cushen
d70e23ef55 refactor: build JS as ESM
Remove Bootstrap sourcemap ref as Hugo doesn't detect/publish it.
2021-03-04 19:00:51 +00:00
George Cushen
98294a9f1d refactor: simplify Figure style 2021-03-04 17:42:29 +00:00
George Cushen
1dfeec02ce refactor: ToC hooks 2021-03-03 13:21:07 +00:00
George Cushen
f4b96e1432 refactor: ToC hooks 2021-03-03 12:41:52 +00:00
George Cushen
5529404d19 feat: workaround Hugo v0.81 error on Windows with remote figure
Hugo v0.81 on Windows will error when figure destination is a remote URL such that we have `resources.Get (path.Join "media" <URL>)`.

See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/2205
2021-03-03 11:14:50 +00:00
George Cushen
3952bfc85c fix: previous commit 2021-02-26 16:45:04 +00:00
George Cushen
33e92dc8cb feat: update widget page to get backgrounds from assets/media/ dir
See #2119
2021-02-26 00:12:49 +00:00
George Cushen
6b9fdd9482 feat: enable Wowchemy attribution to be translated
Add EN and ZH translations.

See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/2161
2021-02-25 18:14:21 +00:00
George Cushen
ad6e481c0a feat: add options for page specific styling or integrations
Page's ID applied to body as `data-wc-page-id`. Can be accessed via CSS and JS to perform page-specific styling or integrations.

Also, introduces new page parameters, similar to widget params:
design.css_style
design.css_class

Close #1975
2021-02-25 16:08:09 +00:00
George Cushen
40e01c083e fix: previous commit - migrate lazysizes data-src to native src 2021-02-22 22:36:15 +00:00
George Cushen
432c6326ee feat: complete migration to native lazy loading
One less JS dependency.
2021-02-22 21:37:48 +00:00
George Cushen
69de00c0cd feat: add support for baidu_tongji and baidu_site_verification
The new options can be added under `marketing` in `params.toml`
2021-02-22 20:51:20 +00:00
George Cushen
a9a74e160d feat: remove deprecated Alert shortcode which was replaced by Callout 2021-02-22 20:29:10 +00:00
George Cushen
0c48d88d80 feat: add support for Figure image theme and max_width
New options:

`theme="light"` inverts image when browsing in dark mode
`theme="dark"` inverts image when browsing in light mode
`max_width="300px"` sets an image max width

Also, improves use of Figure in `{{%` Markdown shortcodes (e.g. Callout) by further stripping HTML indentation.
2021-02-22 20:11:22 +00:00
George Cushen
e27cbaca79 feat: enable Figure to be nested within a {{% Markdown shortcode
Based on user request to parse both Markdown and nested HTML shortcodes (Figures) within Callout shortcode: https://discord.com/channels/722225264733716590/742863504515793149/813105748283883570

Uses `{{-` to unindent HTML so that Figure shortcode can be nested within a `{{%` Markdown shortcode, such as Callout, without the HTML being rendered as a Markdown code block. This way we utilise Hugo's HTML in Markdown approach (aka Goldmark `unsafe`) rather than separating HTML from Markdown.

Previously, Figure could only be nested within a `{{<` HTML shortcode.
2021-02-21 21:24:03 +00:00
George Cushen
61bdd1108d fix: event/talk archive page
Fix https://github.com/wowchemy/wowchemy-hugo-modules/discussions/2187
2021-02-21 18:58:21 +00:00
George Cushen
d47703395c fix: callout rendering nested child shortcodes as markdown
See https://discord.com/channels/722225264733716590/742863504515793149/813105748283883570
2021-02-21 18:18:56 +00:00
George Cushen
1d58e5e819 feat: rename assets/images/ to assets/media/ and auto detect sharing image
The file uploader in Wowchemy CMS has also been updated to reflect the change.

BREAKING CHANGES:
- rename assets/images/ to assets/media/
- move default social sharing image (if any) to assets/media/sharing.*
2021-02-20 17:28:11 +00:00
George Cushen
05c772f389 fix: responsive Figure aspect ratio in Safari
See https://discord.com/channels/722225264733716590/742863504515793149/812308038174244904
See https://stackoverflow.com/a/61196907
2021-02-19 13:35:16 +00:00
George Cushen
eebefd8a59 feat: add option to disable zoom in re-written Figure shortcode
Compatible with previous `lightbox` option.
2021-02-19 13:13:07 +00:00
vesvalim
55fd017f98
i18n: add Finnish (fi) translation (#2178) 2021-02-19 10:39:04 +00:00
George Cushen
dc09534e2b fix: gallery detection on homepage
Workaround HasShortcode detection issue by defaulting to requiring fancybox. Can temporarily be disabled by setting `site.Params.require_fancybox` to `false`
2021-02-19 10:35:51 +00:00
George Cushen
3ae036b9c3 feat(style): update Bootstrap from 4.5 to 4.6
Get fixes and minor improvements
2021-02-19 10:01:40 +00:00
George Cushen
f37581febe refactor: reflect renamed default branch
site.Params.edit_page.repo_branch will now also default to `main` if unset.
2021-02-19 09:04:29 +00:00
George Cushen
11814feeee fix(disqus): missing comment count in listing previews
Fix #2171
2021-02-19 08:31:12 +00:00
George Cushen
68595a20ae feat(shortcode): revert to img SVGs
Cacheable, zoomable, and lazily loaded.

Also, prevents conflicts if admin attempts to include multiple inline SVGs which unintentionally reuse each other's components.
2021-02-17 22:21:39 +00:00
George Cushen
0fd5d2a250 feat(style): center figure SVGs 2021-02-17 21:15:12 +00:00
Arho Huttunen
3cf9f6cdee
fix: comment provider not found (#2165)
Hugo v0.80.0 `Exists` function requires file extension unlike Hugo's Partial statement
2021-02-15 22:41:17 +00:00
George Cushen
7b235ea453 feat: rewritten Figure shortcode supporting multi-resolutions
New shortcode supports
- enable re-usable *optimized* image assets from new primary media library location at `assets/images/`
- new behavior: load image from page dir falling back to media library at `assets/images/` and then to remote URI.
- multi-res support. leading to increased perf.
- custom ID for cross-refs
- efficient, vanilla (non-jQuery), MIT licensed image zooming
- FancyBox now only loaded for Gallery shortcode
- themeable SVG support
- native lazy loading

Experimental, may change.

BREAKING CHANGE:
Move any figure images (i.e. not the `sharing.*` image) from `static/media/` to `assets/images/`

See #2164
2021-02-14 22:59:12 +00:00
George Cushen
b811f9a1bb chore: bump version 2021-02-11 18:59:22 +00:00
George Cushen
c36f3b7878 feat: auto scroll active book menu and ToC links into view
Also, fix ScrollSpy highlighting previous ToC link for some Book anchors.

Close #1964
2021-02-10 08:25:28 +00:00
George Cushen
4c35de770c feat: only load Google Optimize in prod 2021-02-10 08:05:09 +00:00
George Cushen
95e128c8dc feat: support new Google Analytics cookie requirements
Firefox console notice: Cookie “_ga” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute.
2021-02-10 08:00:29 +00:00
George Cushen
ebef2543c3 feat: remove special Book sort for folder named updates 2021-02-10 07:57:23 +00:00
George Cushen
211d8b330b feat: add support for emoji lists
With new `emoji_list` shortcode. For example:

```
{{% emoji_list %}}
- 🔥 sdf
  - 🔥 sdf
- 🔥 sdf
{{% /emoji_list %}}
```
2021-02-10 07:55:09 +00:00
George Cushen
dbeee61620 feat: add default security permissions policy 2021-02-10 07:49:34 +00:00
George Cushen
aa4fe0c757 docs: new cms branch option 2021-02-09 22:00:00 +00:00
George Cushen
7819a912d2 fix: new cms options 2021-02-09 21:45:52 +00:00
George Cushen
e470c4e2cf feat: add options for branch, local_backend, and publish_mode (editorial flow)
Example for a YAML config:

```
  cms:
    branch: main
    local_backend: true
    publish_mode:
 ```

Close #2124
2021-02-09 21:44:47 +00:00
George Cushen
60d36e66d2 refactor: rename options for maps, search, and comments
Use provider names rather than integers.

BREAKING CHANGE:

- Rename `site.Params.comments.engine` to `site.Params.comments.provider`
- Rename `site.Params.search.engine` to `site.Params.search.provider`
- Rename `site.Params.map.engine` to `site.Params.map.provider`
- Use provider name (string) rather than integer
- For built-in search, provider is "wowchemy"
- For leaflet maps, the provider is "mapnik" or "mapbox"
2021-02-09 21:19:42 +00:00
George Cushen
50d3d41e9e feat: dispatch wcThemeChange event to support themeable user plugins
See https://discord.com/channels/722225264733716590/742863504515793149/807370581611511858
2021-02-05 22:48:25 +00:00
George Cushen
aa1071adfc feat: support site.Params.marketing.google_optimize
Also:

- refactor Bootstrap JS out of wowchemy.js for easier maintenance
- refactor lengthy env checks to hugo.IsProduction
- refactor window.PlotlyConfig from inline JS to the init script
- no longer prevent loading GA if GTM provided, in case user wants both
2021-02-05 20:30:40 +00:00
George Cushen
5072eddcc1 feat: add Wowchemy CMS module 2021-02-03 20:32:25 +00:00
George Cushen
76478cb4a5 refactor: move test/ and yarn to repo root 2021-02-03 20:14:43 +00:00
George Cushen
3f1c4b4df2 refactor: move test/ and yarn to repo root
Also lint and format entire repo, beyond just wowchemy/ dir

URL encode `(` and `)` in `[#MadeWithWowchemy](...(..)...)` in Readme.md for Prettier
2021-02-03 20:11:16 +00:00
George Cushen
9bbf6fa2a6 feat: support Params.marketing.google_site_verification
Also trial self-closing tags over void tags as Prettier doesn't support void tags: https://github.com/prettier/prettier/issues/5246
2021-02-02 23:55:30 +00:00
George Cushen
3b32a8188f feat(style): dynamically theme SVGs
And refactor HL shortcode to use semantic <mark>
2021-02-02 23:45:20 +00:00
Tony Lam
995d2181a0
i18n: add Finnish (fi) address format (#2135) 2021-02-01 13:16:02 +00:00
Prof. Lorenz
1dae5a2300
i18n: add Israel (il) address format (#2133) 2021-01-31 15:23:09 +00:00
George Cushen
4ac1c6aa1a docs: link to 中文 2021-01-27 22:57:30 +00:00
George Cushen
9e984eca83 feat(security): add Referrer-Policy
Also, support multi-line CSP and Permissions policy
2021-01-27 17:56:25 +00:00
George Cushen
64b7d5189b fix(style): consistency across landing section breakpoints
Fix #2123
2021-01-26 21:46:37 +00:00
George Cushen
c15f621515 fix(style): consistency across landing section breakpoints
Fix #2123
2021-01-26 17:44:47 +00:00
George Cushen
393b19c76f feat(security): add support for Permissions-Policy
To use, set Params.security.permissions.policy
2021-01-26 01:01:45 +00:00
rodrigoalcarazdelaosa
7dbc1f73ed
feat: reduce apple-touch-icon size
Trade off Hugo build time rather than re-use existing standard icon sizes.
2021-01-23 18:04:13 +00:00
Geo
69b7e22be8
ci: add codeQL 2021-01-23 02:49:52 +00:00
rodrigoalcarazdelaosa
bc942ec48b
feat(i18n): translate "authors" label in search results (#2115)
For non-English sites using the built-in search with published author profile pages
2021-01-23 01:25:26 +00:00
Alessandro Samuel-Rosa
6992449564
feat(i18n): add Brazil (pt-br) address format (#2118) 2021-01-23 01:17:11 +00:00
George Cushen
e0ae7c979c chore: bump version 2021-01-20 02:52:05 +00:00
George Cushen
cbf15cd470 fix(slides): enable menu by default 2021-01-20 01:34:24 +00:00
George Cushen
6c7237fc0a feat(cms): add slides editor
Also,
- filter out archive pages
- add `squash_merges`
- convert deprecated valueType to value_type
2021-01-20 01:03:37 +00:00
George Cushen
2d515e5fa5 feat(netlify): add security headers + configurable CSP
Adds some default security headers.

CSP is configurable via Params.security.csp.policy (string) and Params.security.csp.report_only (boolean).

To enable, add `headers` to config.toml > outputs > home

Dedicated Netlify redirects file can also now be generated from front matter `aliases` by adding `redirects` to config.toml > outputs > home, and `disableAliases = true` to config.toml.
2021-01-20 00:12:13 +00:00
koutbo6
de6860b8b3
feat(slides): upgrade reveal.js from v3.8.0 to v4.1.0 (#2018) 2021-01-19 23:22:34 +00:00
George Cushen
9f5c626c8f fix: show button links in listings irrespective of Type
Hugo cannot yet understand more than one return statement.

See https://discord.com/channels/722225264733716590/742863504515793149/800107285246246993
2021-01-16 23:49:44 +00:00
George Cushen
b6dc6d8777 feat: show button links in listings irrespective of Type
Extend scope to include Portfolio's Card view.
2021-01-16 22:42:00 +00:00
George Cushen
2b9041dc87 feat: show button links in listings irrespective of Type
For example, if a blog post has an attachment, it will now be linked in the listing as well as in its page header.

May also reduce excess spacing by preventing empty attachment DIV in the case of no attachments/buttons since it now checks if a page has buttons.
2021-01-16 20:48:15 +00:00
George Cushen
d4ecdca0eb feat: show button links in listings irrespective of Type
For example, if a blog post has an attachment, it will now be linked in the listing as well as in its page header.

May also reduce excess spacing by preventing empty attachment DIV in the case of no attachments/buttons since it now checks if a page has buttons.
2021-01-16 20:24:05 +00:00
George Cushen
273405e59b refactor: modularise styles + fix more style lint issues 2021-01-14 21:01:41 +00:00
George Cushen
ac4b4e3157 fix: style lint issues 2021-01-13 21:27:12 +00:00
George Cushen
f1da2c5ca8 feat: book menu - link to book of books if exists
Example: `courses/learn-x/` will have a new item added to the book menu to link back to `courses/` whereas a site with just a first-level book e.g. `docs/` won't see any change to the menu.
2021-01-11 23:53:50 +00:00
George Cushen
92707a1a46 fix: multilingual search broke
Fix recent refactor that migrated to Hugo's best practice of js.Build.

js.Build was performing excessive caching, only running the pipeline once even though the pipeline parameters changed for each multilingual site.
2021-01-11 23:05:13 +00:00
George Cushen
b0ffb4ddc7 feat(widget): allow to constrain Portfolio by set of tags 2021-01-11 22:14:58 +00:00
George Cushen
9872428a3f feat(shortcode): show summaries by default in list_children 2021-01-11 20:53:49 +00:00
George Cushen
362cb1510b feat: add CSS postprocessing support
Enabled with env `WC_POST_CSS="true"`
2021-01-10 17:23:17 +00:00
George Cushen
468d327370 feat(shortcode): make in-page ToC collapsable
Useful for long pages with large ToCs and/or on small screens.

Also add `hide_on` and `show_on` options accepting Bootstrap responsive breakpoints.

Useful for setting `{{< toc hide_on="xl" >}}` in conjunction with Book layout which only shows right sidebar ToC on XL screens and above.
2021-01-09 20:59:42 +00:00
George Cushen
a4bc42feb6 refactor: lint JS
Follows on from d18b2c9def
2021-01-09 19:53:11 +00:00
George Cushen
e233094d2c Revert "refactor: format code"
This reverts commit 067b2a7f

Github Action didn't pick up ignored file list.
2021-01-09 19:51:56 +00:00
George Cushen
9c997e60d7 ci: disable format job
As it's not picking up the ignored list
2021-01-09 19:50:24 +00:00
gcushen
067b2a7f09 refactor: format code 2021-01-09 19:38:09 +00:00
George Cushen
68c25ddc4a ci: convert json config to yaml 2021-01-09 19:37:31 +00:00
George Cushen
020a14902f ci: fix format job 2021-01-09 19:28:29 +00:00
George Cushen
1ae0fdbb74 ci: use yarn for consistency 2021-01-09 19:26:12 +00:00
George Cushen
6a8dd446ce feat: show chapter in Book mobile menu
Effectively replaces breadcrumbs on mobile and hides the dedicated Book search box.
2021-01-09 19:09:33 +00:00
George Cushen
095cd1e691 ci: add JS linter, code formatter, and fix Hugo working dir 2021-01-09 18:15:38 +00:00
George Cushen
d18b2c9def refactor: lint JS and SCSS
Add JS and style linters.
All JS linted and refactored.
TODO: Further SCSS refactoring required - temporary "no-descending-specificity" rule added.
2021-01-09 18:13:47 +00:00
George Cushen
0153af8283 refactor(yaml): run code formatter 2021-01-09 00:12:12 +00:00
George Cushen
79b48a3730 refactor(style): run code formatter 2021-01-08 23:58:43 +00:00
George Cushen
3d8b76f092 refactor(js): run code formatter 2021-01-08 23:29:50 +00:00
Julen Etxaniz
2918496790
i18n: update EU and ES translations (#2085) 2021-01-08 19:03:26 +00:00
George Cushen
a3ff1f31c6 feat: support multi-lingual common searches
Workaround Hugo's lack of support for multilingual data files.
2021-01-08 18:54:42 +00:00
George Cushen
7b3aff07a7 feat: migrate to latest web best practices
Improve accessibility, informed by Google Lighthouse insights.

Part 3
2021-01-08 18:50:55 +00:00
George Cushen
09b3dca341 feat: support multi-lingual common searches
See https://discord.com/channels/722225264733716590/742863504515793149/796527990522511370
2021-01-07 15:44:49 +00:00
George Cushen
68b9925c93 fix(js): no Popper tooltips when search disabled
Fix #2084
2021-01-06 23:32:22 +00:00
George Cushen
70c465806c feat: migrate to latest web best practices
Informed by Google Lighthouse insights.

Part 2 - also see 4b9ee3021c
2021-01-06 22:20:27 +00:00
George Cushen
4b9ee3021c feat: migrate to latest web best practices
Informed by Google Lighthouse insights.

The demo of the light Academic template now achieves 100% Accessibility, 100% Best Practices, and 100% SEO scores.

Hero image can now be moved from the media library to the widget page folder, e.g. `home/`, to become responsively sized.
2021-01-06 21:55:05 +00:00
George Cushen
fe24b613d5 fix(scss): shortcut overflow with some font packs
Fix 7c3ee80
2021-01-05 22:55:57 +00:00
George Cushen
7c3ee805f7 feat: change behavior of sidebar search to open modal
Scope: the built-in search engine.

Provides one consistent interface for searching and thus surfacing common search queries to the user and in future typeahead.

Also, display the search keyboard shortcut and improve accessibility in Book TOC menu.
2021-01-05 22:37:27 +00:00
Nobuto Murata
f35d4b1858
feat: enable site admin to disable WebAppManifest (#2056) 2021-01-05 19:24:46 +00:00
Tony Lam
6bcba757cd
feat(js): migrate Google Maps options to be compatible with latest API
Google have deprecated and changed options in the API.

See https://developers.google.com/maps/documentation/javascript/reference/map
See #2075
2021-01-05 19:09:58 +00:00
George Cushen
ccd2ab1ce2 fix(js): case of theme variation flicker
The set of conditions that can cause a flicker in this case are `day_night: true` (allow visitor to change theme mode) with a dark theme (`light: false`) and a user device which prefers dark themes.

Fix #2080
2021-01-05 18:54:35 +00:00
Julen Etxaniz
f40841ce36
i18n: update EU and ES translations (#2072)
This PR updates eu.yaml and es.yaml translations with the recent changes.
2021-01-02 00:58:08 +00:00
George Cushen
25e0b0627f feat: support common queries in search dialog
Common queries can be added to `data/search_queries.yaml` (experimental feature).
Refactor Wowchemy keyboard shortcut parser.
Fix JS/CSS assets being minified/fingerprinted in dev env.

Close #2060
2020-12-30 22:46:46 +00:00
George Cushen
e74f28542d perf: cache website.html partial 2020-12-30 22:01:00 +00:00
Christian Olsen
14a72fa460
feat: add support for breadcrumb navigation (#2009)
Adds support for breadcrumb navigation on Book pages.

Consider this feature experimental for now as it may still change. Add the following to bottom of `params.toml` to use:

```
[breadcrumb]
  page_types = {book = true}
```

Future work: prefix link title with page icon when set in order to be consistent with Book menu links (https://github.com/wowchemy/wowchemy-hugo-modules/pull/2009#discussion_r549530364)
2020-12-30 18:16:47 +00:00
George Cushen
219b05cbd2 refactor: support any event type
Informed by user demand to support all event types rather than just talks.

Brings consistency to further align Academic and Research Group templates.

BREAKING CHANGE:

Rename `talk` folder to `event`
Remove `type` set to `talk` in any event front matter (if applicable)
To keep existing `/talk/` URLs, set the following in `config.toml`:

```
[permalinks]
  events = "/talk/:slug/"
```
2020-12-28 23:18:01 +00:00
Eugen Richter
ca84784cf4
i18n: update DE (#2061)
Add missing translations for theme switching
2020-12-28 16:58:37 +00:00
George Cushen
ed047ad576 fix(css): hide any .article-style Y-overflow
Close #2051
2020-12-28 16:56:44 +00:00
George Cushen
9cce661db8 feat(cms): add label and display options to Author admin
See #2010
2020-12-24 14:45:27 +00:00
Christian Olsen
e99eb34795
feat: add option to show superuser social links in header (#2010)
To use, add label and display options to superuser's `social` links:

```
social:
- icon: twitter
  icon_pack: fab
  link: https://twitter.com/<USERNAME>
  label: Follow me on Twitter
  display:
    header: true
```
2020-12-24 14:15:26 +00:00
George Cushen
e47738df59 feat: add Earth theme pack 2020-12-21 15:32:45 +00:00
George Cushen
ce5b08f719 fix(css): scroll wide tables
Caused by a previous commit which added word-break to `article-style`.

Fix #2044
2020-12-21 14:41:54 +00:00
George Cushen
817e89f73b feat(css): allow gradient section BGs in color theme packs 2020-12-21 01:00:35 +00:00
George Cushen
0eb331a7f6 fix(js): theming flash
Fix case of potential theming flash when `day_night` disabled.

Fix 6c434e6de2
2020-12-21 00:59:06 +00:00
George Cushen
6c434e6de2 refactor: fixMermaid() to dedicated vanilla JS module
Refactored from JQuery.
Module can now also be imported for use in Reveal v4 PR.

Also fix Theme Chooser due to 5b7f5da refactor.

See #2018
Fix 5b7f5da
2020-12-20 00:45:21 +00:00
George Cushen
5b7f5daa5b fix: Mermaid and HLJS theming
A recent refactor caused Mermaid and HLJS themes to not always be applied correctly, for example with theme pack default of light mode but user chosen Dark mode.
2020-12-19 23:10:16 +00:00
George Cushen
dd2bde730e feat(shortcode): migrate Spoiler to new standardized HTML
Toggle lists have now been standardized in HTML. Functions just like the toggle lists on Github.

Also now supports Markdown in title and works better with longer titles (unlike the previous button based component).
2020-12-19 20:17:58 +00:00
George Cushen
666ae317ea chore: edit .github 2020-12-19 19:30:46 +00:00
George Cushen
014fdb8ebf feat(cms): add support for editing Publications
Close #1631
2020-12-19 17:47:01 +00:00
George Cushen
769d5f0ad1 feat: if using GitHub API, reduce requests in dev env
For sites using the `.js-github-release` feature to get the latest release of their project, prevent sending request to GitHub everytime Hugo Server reloads pages.
2020-12-19 15:32:48 +00:00
George Cushen
42e60e0287 fix: author sharing image due to Hugo breaking change
When sharing the page of an author profile (/author/author-name), the avatar image was no longer shown as the sharing image.

Hugo team made a breaking change in recent Hugo versions to rename the page `.Kind` to `term` instead of `taxonomy` in this case so the statement was no longer triggered.

Fix #1987
2020-12-19 15:02:50 +00:00
George Cushen
69856326c6 feat(cms): add support to edit widget backgrounds
Supports:
- Solid color
- Gradient color
- Image background
- Darken image
- Text color light/dark
2020-12-16 15:28:42 +00:00
George Cushen
a0b9887f37 fix(cms): don't require to select the featured image in the image chooser 2020-12-13 18:41:17 +00:00
George Cushen
332dd21791 feat(cms): add support for editing homepage in CMS
Also, make more params optional such as `draft`
2020-12-13 17:50:53 +00:00
George Cushen
a03ad69ff6 refactor: replace site.Params.link_authors with Hugo's new _build capability
Hugo now directly supports page build options, so can remove workaround.
2020-12-13 16:00:15 +00:00
George Cushen
f6090cd7e5 fix: JS when Portfolio widget created without a toolbar 2020-12-11 02:36:54 +00:00
George Cushen
172150c6f0 feat: add Cyberpunk font theme 2020-12-09 23:37:49 +00:00
George Cushen
9d9149a2ae feat: add Cyberpunk color theme 2020-12-09 23:23:50 +00:00
George Cushen
1d54566688 refactor: JS 2020-12-08 22:17:17 +00:00
George Cushen
d70da89199 fix: Mermaid and Plotly page overflow
Mermaid and Plotly need to have their max-width constrained or they can overflow page width as they set their own fixed max-width in pixels, which can be wider than the page.

One workaround is to set `grid-template-columns` to `100%`. Another is to set a responsive fixed max-width on their parent elements or article-container.

Fix 1c05374
2020-12-05 22:43:43 +00:00
Paaz CA
1c053746c5
fix: case of vertical scrollbar overlaying content (#2013) 2020-12-05 21:10:21 +00:00
Paaz CA
9675a85372
fix: CSS fingerprinting when using Hugo's -e arg (#2017)
Hugo allows two ways to set a production environment.

The HUGO_ENV approach used by Netlify was working fine, but in case of running `hugo server -e production`, the CSS file wasn't fingerprinted.
2020-12-05 20:30:45 +00:00
Paaz CA
a67ec5e691
i18n: update Hebrew translation (#2014)
Updates Hebrew translation and improves consistency.
2020-12-05 20:14:14 +00:00
George Cushen
5fa9412f9e chore: bump version to v5 Beta 1. 2020-12-04 17:47:23 +00:00
George Cushen
ec46e9e38f feat: support multiple books each with its own dedicated sidebar
Previously, in case of a site with multiple books in a folder, all books shared the same side bar menu listing ALL books and their pages.

List of books (aka book of books) is naturally supported by creating an `_index.md` of `type: page` in the parent folder which contains multiple book folders.

Also bump version to v5 Beta 1.
2020-12-04 17:46:56 +00:00
George Cushen
161cdb903e feat(widget): add support to customize See All link in Featured widget
Documentation: https://github.com/wowchemy/wowchemy-hugo-modules/issues/1800#issuecomment-678817441

BREAKING CHANGE
Removes the old experimental option `content.link_to_archive`

Follows on from Pages widget implementation in 05bfd7c
See #1800
2020-12-04 16:25:23 +00:00
George Cushen
b634d637f1 feat(widget): show email (if entered) in About widget
Previously email only shown if exists and the email form is disabled.

However, both Formspree and Netlify no longer use email address as a parameter, and received request to show email (if entered), in addition to email form, so visitors have the choice to use their usual email client to send a message.

Therefore, show the email address if it was entered.
2020-12-04 15:45:16 +00:00
George Cushen
cdcfa2da28 fix: load page with hash + multiple Portfolio widgets with images
In case of loading a page with a hash set and having multiple Portfolio widgets (Isotope instances) with images, scroll directly to the offset only once all Isotope instances have fully loaded their images and initialised.

Fixes issue with scrolling conflicts due to 600ms hash scroll on page load combined with 600m hash scroll on each Isotope widget loaded, whilst hash offset, if occurring after one or more Portfolio widgets, can be converging.

Replace JS approach for onload scroll to anchor with CSS scroll-padding-top, now that the CSS standard added support for scroll offsets.

Fix #1992
2020-11-29 12:47:59 +00:00
rodrigoalcarazdelaosa
e0d593e688
i18n: update es.yaml (#1998)
Put it on par with the latest en.yaml.
2020-11-27 23:22:26 +00:00
George Cushen
81c301acbb docs: edit contributing.md
Add create widget
Add create shortcode
Add scope info
2020-11-27 22:20:38 +00:00
rodrigoalcarazdelaosa
d5663b2abb
fix(widget): Portfolio .project.card width (#1985)
Fixes 2 and 3 column responsive card layouts leaving extra space at far right side.

Fixes #1981
2020-11-27 22:08:47 +00:00
George Cushen
3a03b728de feat: lazy load images in list items
Assumes list items generally occur below the fold.

May increase Lighthouse scores.

See #1986
2020-11-25 23:02:19 +00:00
George Cushen
8c20b50361 fix(axe): gallery alt 2020-11-23 23:22:32 +00:00
George Cushen
2cdf158914 fix(axe): accessibility improvements 2020-11-23 22:32:03 +00:00
George Cushen
057ded33f5 chore: remove Wowchemy as direct dependency in Hello World theme mod 2020-11-23 00:57:17 +00:00
George Cushen
83f9eef4bc chore: fix Hello World mod to latest master 2020-11-23 00:55:34 +00:00
George Cushen
0a5f34e243 fix(axe): dark header contrast improvement 2020-11-23 00:46:27 +00:00
George Cushen
9e64cb52c7 fix(axe): accessibility improvements 2020-11-22 20:42:42 +00:00
George Cushen
1370a7faa1 chore: update .github/ 2020-11-21 22:51:18 +00:00
George Cushen
38b599c504 fix(scripts): path 2020-11-21 22:27:16 +00:00
George Cushen
c8ceff11dd fix: spacing issue with nested lists in Experience widget
Original style wasn't intended for nested lists to be used within card text.

Fix #1979
2020-11-21 20:35:04 +00:00
George Cushen
58c7dd7a0a fix: edge case causing horizontal scrollbar
Prevent horizontal scrollbar in case of 100vw grid applied to page with vertical scrollbar.

Fix f851142
Fix #1976
2020-11-20 23:16:09 +00:00
George Cushen
1c275b0e61 fix: edge case causing horizontal scrollbar
Prevent horizontal scrollbar in case of 100vw grid applied to page with vertical scrollbar.

Fix f851142
Fix #1976
2020-11-20 22:58:05 +00:00
George Cushen
4dc8eff074 fix: Hugo minfiy removes spaces in Figure captions
Add explicit &nbsp; to prevent Hugo stripping desired spaces.

Fix #1972
2020-11-19 20:22:04 +00:00
Jim Vine
c9c3e5f51a
feat: make users' roles optional in People widget (#1971)
Add `show_role` option to People widget to hide/show users' roles.
2020-11-19 16:03:53 +00:00
Emanuele Bardelli
fe49f96267
fix: add definition for $show_organizations to People widget
Commit 97606bf added support for show_organizations in the people widget. The original author forgot to add the definition of this variable at top of the widget, leading to hugo not being able to build the site because the variable was not initialized.

This commit adds a definition for show_organizations at the top of the widget and fixes the build error.

Fix 97606bf
2020-11-19 11:45:12 +00:00
Tom Vercauteren
97606bf9c6
feat: option to list each person's organization in People widget
To use, add `show_organizations: true` to People widget front matter

Closes #1941
See #1953
2020-11-18 20:43:02 +00:00
George Cushen
9852d63bc4 build: inc Hugo version to get bug fixes
Hugo 0.78.0 bugs may affect user sites - https://discord.com/channels/722225264733716590/742863504515793149/778311348819853392
2020-11-17 18:11:03 +00:00
George Cushen
1597dca920 feat: provide safe fallback for publication type
In case pub_type missing from pub front matter

See https://github.com/wowchemy/starter-academic/issues/147#issue-744067542
2020-11-16 22:44:57 +00:00
George Cushen
31ce192ed9 docs: edit contributing.md 2020-11-15 20:41:49 +00:00
George Cushen
891f811312 feat: add CTA shortcode style 2020-11-15 16:27:04 +00:00
George Cushen
786b0341ee feat: migrate to ES6 modules + Hugo's JS build system
The latest Hugo version, v0.78, enables support for JS ES6 module build support within Hugo/Go modules.

Initial refactor to ES6 modules with imports/exports. Further refactoring todo.

Refactor to use Hugo's new approach to JS param injection.

Refactor theming code from JQuery to vanilla JS.

Add fix for browser deprecation of the MediaQueryList listener.

Requires Hugo 0.78+

See #1929
See #1930
See #1402
2020-11-15 16:12:52 +00:00
George Cushen
9ee65a120f fix: remove scrollToAnchor() from dropdown mouseover
Had somehow got enclosed in the wrong code block.
2020-11-13 21:38:07 +00:00
George Cushen
34a48f8670 fix: typo in Contact widget 2020-11-13 11:31:55 +00:00
George Cushen
8047fac2c1 refactor: make Portfolio widget use new 1-2 column wrapper
(it already supported the logic but didn't use the new wrapper)
2020-11-13 11:30:13 +00:00
egon w. stemle
08190d38dd
fix: use Font Awesome for CC icons in page footer (#1932)
The CC SVG icons, e.g.
 - `<img src="https://search.creativecommons.org/static/img/cc_icon.svg" alt="CC icon">`
started resulting in 404 errors.

[Creative Commons Site](https://creativecommons.org/about/downloads/)
currently suggest something like
 - `<img src="https://mirrors.creativecommons.org/presskit/icons/cc.svg" alt="CC icon">`

But we can get the CC icons from the fab icon pack which is even better.
2020-11-13 01:53:13 +00:00
George Cushen
4dd8f996a4 fix(style): bg-image selector hierarchy
Fixes #1951
2020-11-13 01:28:57 +00:00
George Cushen
6c596cd500 feat: enable Netlify captcha by default to help prevent spam 2020-11-13 00:51:26 +00:00
George Cushen
bc07e3e614 feat: move autolink to content.autolink in Contact widget
See #1940
2020-11-13 00:09:01 +00:00
George Cushen
dbb7d942f0 feat: migrate Formspree due to deprecation
Address "Formspree contact forms do not seem to work anymore for new projects as simple email forms are being deprecated"

New system provides a Form ID to enter in contact widget after registering at https://formspree.io/register

Close #1940
2020-11-12 23:59:56 +00:00
George Cushen
d9db95e245 fix(style): typo
Fixes 05f70db
2020-11-12 18:23:10 +00:00
George Cushen
05f70db041 fix(style): workaround mobile browser issues with fixed bg
Revert the parallax-like fixed background effect on mobile to scroll based attachment.
2020-11-11 23:46:48 +00:00
George Cushen
41f68f4f9b fix(netlify): inconsistent defaults
Netlify Identity was disabled by default in 5d827c258a

So update default in corresponding snippet that checks for Netlify Identity
2020-11-11 16:33:01 +00:00
George Cushen
165dcd6c3e fix(view): inconsistency with external links in Compact view
Fix consistency of link target on summary

Further to 6a44f79db7
2020-11-11 00:54:43 +00:00
George Cushen
4ef2aa3e55 feat(style): remove fade-in animation from widget pages
Make pages appear to load faster, consistent with removal of fade-in animation from other pages.
2020-11-11 00:51:12 +00:00
George Cushen
6ff8f5c3ee fix(style): fix case where widget background overlays content
Issue was primarily noticed when setting a background image on the Hero or Portfolio widgets.

Also, fix background not showing in Firefox due to unsupported `fill-available`.

Fixes b647d7e81a
2020-11-11 00:07:00 +00:00
George Cushen
f21a0cf8f4 test: further simplify site output 2020-11-10 23:17:24 +00:00
George Cushen
6a44f79db7 fix(view): inconsistency with external links in Compact view
As reported here: https://discord.com/channels/722225264733716590/742863504515793149/775671255600070686
2020-11-10 20:28:15 +00:00
George Cushen
1ed538027a feat: make landing page checks give warnings rather than errors
Hugo team have added warnf function to enable this.

Also, parse refactored widget titles for Markdown and emojis.
2020-11-09 17:41:24 +00:00
George Cushen
b647d7e81a feat: support both 1 and 2 column variations for most widgets
- support both 1 and 2 column variations for following widgets: "pages" "featured" "experience" "accomplishments" "contact" "blank" "tag_cloud"
- fix parallax conflict with new CSS page grid causing 100% entire page height for a section
   - add dedicated child div for bg prevents parallax 100% height issue within new CSS grid page wrapper
- fix `.page-wrapper` min-height when no-navbar
- fix `.home-section.fullscreen` min-height when no-navbar
- refactor `contact-widget` styles to use existing `wg-contact` class
2020-11-08 22:55:18 +00:00
Vaidic Joshi
49515d9e14
feat(analytics): add support for Microsoft Clarity
Documentation: https://wowchemy.com/docs/guide/analytics/

See #1938
Closes #1923
2020-11-08 13:42:35 +00:00
George Cushen
93ce3d22ad feat: add Hello World theme 2020-11-07 23:40:21 +00:00
George Cushen
e18ecbbff3 feat: add Hello World theme 2020-11-07 23:35:47 +00:00
George Cushen
1d67b495d6 feat: add Hello World theme 2020-11-07 23:30:58 +00:00
George Cushen
eb76e56841 fix(style): prevent page overflow
Pages with wide horizontal content could horizontally scroll on mobile due to `.page-wrapper` not having fixed width in f851142fb2

Re-add overflow-wrap which was removed in e6dba41f3d (in attempt to simplify logic).

Add horizontal scroll to unresponsive Plotly charts.

Also, refactor chart style and refactor callout styles into dedicated file.

This commit attempts to fix https://discord.com/channels/722225264733716590/742863504515793149/774343154949816350
2020-11-06 21:50:12 +00:00
George Cushen
8e23f3f748 fix: Hugo does not fully mount multiple modules
Fixes sites missing speaker note capability for slides when loading multiple Hugo Modules.

Fix #1933
2020-11-06 13:53:33 +00:00
George Cushen
80fce98e72 feat(style): improve Hero image size on mobile 2020-11-02 17:02:05 +00:00
George Cushen
e6dba41f3d feat: reduce wordwrap hyphenation
The strategy appeared to affect hyphenation in inline code blocks.

Reduce wordwrap hyphenation, similar to wordwrap on blogging platforms like Medium etc.
2020-10-31 18:36:16 +00:00
George Cushen
ab5b005820 feat: push footer to window bottom for short pages
Remove 100% height for .parallax as conflicts with new page grid CSS and Leaflet map interactions.
2020-10-28 22:41:28 +00:00
George Cushen
f851142fb2 feat: push footer to window bottom for short pages
Also, for Card view, add image zoom on hover.
2020-10-28 22:37:13 +00:00
George Cushen
e8c96d1db9 feat: remove back to top button
Limited use given the fixed navbar and ToC sidebar for Books
2020-10-28 22:21:27 +00:00
Mario Zigliotto
c055788cab
feat: namespace footer
See #1873
2020-10-28 00:51:46 +00:00
George Cushen
2f98b006bf test: add github action
builds test site with latest Hugo version
2020-10-27 23:44:15 +00:00
George Cushen
a08f805ddd test: add github action
builds test site with latest Hugo version
2020-10-27 23:39:09 +00:00
George Cushen
7294158fdf test: add github action
builds test site with latest Hugo version
2020-10-27 23:36:31 +00:00
George Cushen
61e85bbd76 perf: add require_isotope option (experimental)
If a site doesn't require Isotope Layout Engine (i.e. not using filter on publication archive page or the Portfolio widget), it can be disabled in params.toml for performance increase:

require_isotope = false
2020-10-27 19:03:51 +00:00
George Cushen
f55fed9d88 fix: aria label for "back to top"
Gives 100% Accessibility score on Lighthouse for test site.
2020-10-26 22:50:54 +00:00
George Cushen
5d827c258a feat: add more defaults to Wowchemy's config.toml
Also, disable HighlightJS and Netlify Identity by default to optimize performance.

Hugo restricts a module's own config file to only defining params, menu, outputformats, and mediatypes: https://gohugo.io/hugo-modules/theme-components/ . Lets define outputformats, and mediatypes directly in the module so there's one less thing for a user to add to their site's config file.
2020-10-26 22:32:20 +00:00
Carlos Cámara
a4c1a37e8b
docs: update Contributing guide (#1915)
Update name and chat link.
2020-10-26 16:57:49 +00:00
Øyvind Bye Skille
1c9b4ed9e7
i18n: add Norwegian (nb) translation (#1914) 2020-10-26 16:55:01 +00:00
George Cushen
fa8e64327e fix: don't require site.Params.comments
Enable `comments` to be removed from `params.toml` for a site that doesn't use comments
2020-10-24 19:47:55 +01:00
George Cushen
f759efccf7 test: add bare-bones test site 2020-10-24 19:45:13 +01:00
George Cushen
b2f2eb3c27 chore: bump version 2020-10-23 18:10:18 +01:00
George Cushen
be0fa17ac0 chore: update GitHub config.yml 2020-10-16 19:28:37 +01:00
Paaz CA
98d093a073
fix: disqus.html (#1876)
Using 'let' keyword doesn't properly work for the disqus configuration variables. 
The original Hugo disqus template uses 'var' (https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates/disqus.html),
and the Disqus documentation (https://help.disqus.com/en/articles/1717084-javascript-configuration-variables) also uses the 'var' keyword.
2020-10-08 21:37:20 +01:00
Paaz CA
77166314c0
feat(cms): add noindex for bots (#1881)
Adding the noindex tag can prevent Google from indexing the CMS admin page.
2020-10-08 21:36:20 +01:00
George Cushen
e58ee0ffc5 feat: add netlify-cms-academic module 2020-10-01 15:49:23 +01:00
George Cushen
f5d9cab6be fix: space before links
Mainly noticeable in CKJ languages.

Fix #1872
2020-10-01 13:09:54 +01:00
Mario Zigliotto
2522f0f120
feat: update head
Close #1852
2020-09-30 19:35:38 +01:00
George Cushen
41772d6c8c feat: improvements to author profile cards
- Re-refactor code to use Hugo's `GetTerms` function now that Hugo fixed the unordered bug
  - GetTerms may provide better support for names with unicode or spaces
- Make avatar pic linked (in addition to name)

Close #1750
2020-09-30 16:05:49 +01:00
George Cushen
eb15a07dc3 feat: improvements to author list
- Re-refactor code to use Hugo's `GetTerms` function now that Hugo fixed the unordered bug
  - GetTerms may provide better support for names with unicode or spaces
- Use Bootstrap's bundled PopoverJS for *instant* and more legible author note tooltips.
- Make author notes more intuitive and mobile friendly - use FA icon with left padding to discern touches.
- Add support for highlighting multiple author names (e.g. team members)

BREAKING CHANGE:

To highlight an author name, add `highlight_name: true` to the author's profile.

Close #1750
Fix #1861
Close #1864
2020-09-30 15:46:04 +01:00
George Cushen
0583f02f70 feat: improvements to author list
- Re-refactor code to use Hugo's `GetTerms` function now that Hugo fixed the unordered bug
  - GetTerms may provide better support for names with unicode or spaces
- Use Bootstrap's bundled PopoverJS for *instant* and more legible author note tooltips.
- Make author notes more intuitive and mobile friendly - use FA icon with left padding to discern touches.
- Add support for highlighting multiple author names (e.g. team members)

BREAKING CHANGE:

To highlight an author name, add `highlight_name: true` to the author's profile.

Close #1750
Fix #1861
Close #1864
2020-09-30 15:43:50 +01:00
George Cushen
42793fe7f0 feat(assets): update PlotlyJS to 1.55.2
See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/1860
2020-09-30 15:43:50 +01:00
Paaz CA
7ccfc0b79f
i18n: add Hebrew (he) translation (#1863) 2020-09-29 16:16:48 +01:00
George Cushen
12b7ad9f01 feat(assets): update MermaidJS to 8.8.0
8.7.0 introduced new theming system. However, appears no changes necessary as they state "Site-wide themes are still declared via initialize" - see http://mermaid-js.github.io/mermaid/tutorials-and-community/CHANGELOG.html#870-2020-08-09

See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/1860
2020-09-28 01:46:51 +01:00
George Cushen
7158a80983 feat(assets): update LeafletJS to 1.7.1
See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/1860
Close https://github.com/wowchemy/wowchemy-hugo-modules/issues/1857
2020-09-28 01:38:29 +01:00
George Cushen
27e2b41b3b feat(assets): update LazysizesJS to 5.2.2
See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/1860
2020-09-28 01:33:47 +01:00
George Cushen
b78a4eace1 feat(assets): update HighlightJS to 10.2.0
See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/1860
2020-09-28 01:29:43 +01:00
George Cushen
b8aa71372a feat(assets): update Academicons to 1.9.0
See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/1860
Close https://github.com/wowchemy/wowchemy-hugo-modules/issues/1818
2020-09-28 01:28:06 +01:00
George Cushen
85d629124e feat(assets): update AnchorJS to 4.2.2
See https://github.com/wowchemy/wowchemy-hugo-modules/discussions/1860
2020-09-28 01:23:50 +01:00
George Cushen
217538023f fix(scss): case where invisible text on dark button hover/focus
Affects .dark a .btn :hover/focus

For example, with red button and red link color, led to red button with (invisible) red text on button hover/focus.
2020-09-27 00:35:09 +01:00
George Cushen
170204126a feat(shortcode): add cta shortcode for call to action buttons
Examples

Main button CTA:

{{< cta cta_link="https://..." cta_new_tab="true" cta_text="emoji 🚀" >}}

Alternative text CTA:

{{< cta cta_alt_link="./my-page/" cta_alt_text="Go to my page" >}}

Main button CTA and alternative text CTA:

{{< cta cta_link="https://..." cta_new_tab="true" cta_text="emoji 🚀" cta_alt_link="./my-page/" cta_alt_text="Go to my page" >}}
2020-09-27 00:19:35 +01:00
George Cushen
b585d9207b feat(archetype): add template for new book pages 2020-09-26 23:50:54 +01:00
George Cushen
c67339ac16 refactor: update remaining Academic refs 2020-09-26 23:16:52 +01:00
George Cushen
514d7a0e55 fix: wrong sort order for book folder named updates
Use descending title name order in menu for book folder named `updates`.

Fixes `updates` sidebar sort order in Wowchemy docs site.

Fix #1839
2020-09-26 17:56:25 +01:00
George Cushen
66d1d207fd chore: move monorepo files to theme 2020-09-26 14:48:44 +01:00
George Cushen
2376fb5177 chore: move monorepo files to theme 2020-09-26 14:47:36 +01:00
George Cushen
bcf6297b11 feat(shortcode): add callout
Add warning that Alert shortcode will be deprecated and replaced with Callout.

Also fix some old Academic refs.
2020-09-26 14:38:39 +01:00
zertrin
841053c6c8
feat(widget): update Mapbox API due to classic style deprecation
Since June 1, 2020, the Mapbox classic styles are deprecated and may be removed in the future.
This change updates the Leaflet code to use the currently supported Mapbox style API according to the official documentation at https://docs.mapbox.com/help/troubleshooting/migrate-legacy-static-tiles-api/

See #1854
2020-09-25 16:28:21 +01:00
George Cushen
d325991ffb feat(shortcode): enable cross-referencing audio
Adds id param to audio shortcode

Hashes are prefixed in the form `#audio-<ID>`

E.g. add `id="my-talk"` when calling the audio shortcode and then reference it using [link to my talk audio](#audio-my-talk)
2020-09-22 23:02:24 +01:00
George Cushen
6789c8948f docs: edit readme 2020-09-20 22:44:45 +01:00
George Cushen
ec6c60ba64 refactor: footer styles 2020-09-20 15:42:22 +01:00
George Cushen
c4ce9f5bd3 feat(menu): change palette icon to moon + add option to hide search
- a static moon icon is currently commonly used by popular sites such as Facebook and Reddit to represent a light/dark chooser
- fix automatic light/dark theming when the chooser is hidden with `show_day_night` set to `false`
- add boolean `show_search` option to `main_menu` in `params.toml` to hide search button from main (still accessible from the standard / keyboard shortcut)
2020-09-20 14:26:29 +01:00
George Cushen
73d157ece0 feat(menu): option to hide day/night chooser
In params.toml, head to `main_menu` options and set `show_day_night=false` to hide the day/night chooser and theme automatically according to the user's day/night preference for their device.
2020-09-03 22:29:26 +01:00
George Cushen
7455541b48 build: move module config to module 2020-09-03 22:22:29 +01:00
George Cushen
86da39719c refactor: hugo-academic to wowchemy sub-module 2020-09-02 20:59:27 +01:00
George Cushen
e5e24fc55c refactor: Go mod name 2020-09-02 20:55:09 +01:00
George Cushen
3623959e65 feat: add support for widget container config
Requires widget to have corresponding config file at `widgets/<name>-config.html`
2020-09-02 20:35:06 +01:00
George Cushen
182c09f49d fix(docs): menu Z->A sort order
Fixes issue with using Docs layout for sections that need reverse menu sorting, such as updates (v5, v4.9, ..).

Affected Docs site prior to conversion to Books layout.
2020-09-02 20:33:07 +01:00
George Cushen
514907d534 feat(seo): add default robots.txt with sitemap
Help automate adding new site to Google Search Console
2020-09-02 20:28:21 +01:00
George Cushen
70861b33c8 feat: add optional fullscreen class for widgets 2020-09-02 20:26:34 +01:00
George Cushen
07facf5828 perf: pre-connect to Google Fonts if using Google Fonts
Increase performance.
2020-08-31 17:36:30 +01:00
George Cushen
d8367bbe52 fix: v5-dev error when using dark themes where light = false
Fix #1825
Fix https://github.com/sourcethemes/academic-kickstart/issues/115
2020-08-27 13:17:04 +01:00
George Cushen
ffca5924ec fix: page flickers when user's dark/light pref differs to theme's default
Fixes typo calling canChangeTheme().

Fix eb8748ff17
Fix #1601
2020-08-26 10:00:04 +01:00
George Cushen
e034f7782e fix: page flickers when user's dark/light pref differs to theme's default
Fixes typo calling canChangeTheme().

Fix eb8748ff17
Fix #1601
2020-08-26 09:59:13 +01:00
George Cushen
70cbc5b90a fix: page flickers when user's dark/light pref differs to theme's default
Add check that admin enabled Light/Dark chooser (Params.day_night).

Fix eb8748ff17
Fix #1601
2020-08-25 22:02:38 +01:00
George Cushen
31dff55e7f demo: add demo resume pdf 2020-08-24 23:59:21 +01:00
George Cushen
05c4cf673c feat: add data visualization feature
Adds chart shortcode with support for Plotly JSON chart format.

Given Plotly formatted line-chart.json in page bundle, use
{{< chart data="line-chart" >}}

Close #1673
2020-08-24 20:36:03 +01:00
George Cushen
464a10d947 demo: convert home/ from TOML to YAML (WIP) 2020-08-24 18:29:12 +01:00
Julen Etxaniz
88060814a4
i18n: add missing eu translations (#1810) 2020-08-24 16:02:42 +01:00
Bangyou Zheng
bb19e13adb
fix(book): hide sidebar menu when printing (#1820) 2020-08-24 16:01:40 +01:00
George Cushen
c0f0326de7 fix: $media_dir edge case for shortcode instance within widget 2020-08-24 13:21:29 +01:00
George Cushen
aa22bcefd8 demo: update pre-computed resources 2020-08-24 00:21:05 +01:00
George Cushen
eb8748ff17 fix: page flickers when user's dark/light pref differs to theme's default
Fix by setting dark/light theme as soon as body tag exists.

Highlight JS and Mermaid JS theming must still occur later during page load.

Opportunity to refactor this fix and existing OnReady theme code to avoid duplicate JS and reuse code.

Fix #1601
2020-08-23 20:24:15 +01:00
George Cushen
173f6a7f60 i18n(zh): add light/dark translations 2020-08-23 20:14:32 +01:00
George Cushen
d953106116 fix: case where main menu toggle and title not visible in dark mode
Apply new SCSS $sta-dark-menu-* vars

Fix #1819
2020-08-23 19:57:50 +01:00
George Cushen
34a16bef39 fix: two active links at the same time in navbar
Caused when `/` rather than an anchor or blank string used to represent homepage URL in a menu link.

Note: further improvement possible such as by applying similar logic to non-root widget pages which have menu links to root widget page and its anchors.

Fix #1812
2020-08-23 19:54:28 +01:00
George Cushen
1f6d31c93a refactor: move params.toml>address_formats --> data/address_formats.toml
BREAKING CHANGE:
Possible breaking change for sites using custom address formats.
Override `address_formats.toml` to add custom address formats for a site.
2020-08-23 19:43:36 +01:00
George Cushen
fef46cfbe0 fix: paragraph margin for para within list
Note: Goldmark appears to occasionally render paragraphs within lists even if it's unnecessary.

Fix #1816
2020-08-19 17:30:42 +01:00
George Cushen
05bfd7c48d fix: Pages archive link
For case where *not* using content.archive.link to customize link.
2020-08-15 11:17:47 +01:00
George Cushen
6f36c1624c fix: btn style 2020-08-12 18:27:55 +01:00
George Cushen
0a8cbcb8d9 fix: word wrap long lines on mobile 2020-08-12 00:44:30 +01:00
George Cushen
bfa72389cd fix: hybrid dark nav on mobile
FIx 37d247911c
2020-08-12 00:22:44 +01:00
George Cushen
cdcd83f724 feat: experimental support for single column Pages and Contact widgets
Enable single column centered layout for Pages and Contact widgets.

To use this feature, add the following to the widget front matter:

[design]
  columns = "1"

See #984
2020-08-11 23:36:29 +01:00
George Cushen
37d247911c feat: experimental support to define both light and dark themes
Ability to define both light and dark color themes, rather than use the default settings for the alternative theme.

Add `[dark]` or `[light]` section to theme file to define the alternative theme.

Most vars supported except `primary`.

See #997
2020-08-11 23:16:39 +01:00
George Cushen
be8cae3a1f feat: add optional .js-scroll class for smooth anchor scrolling 2020-08-11 23:08:40 +01:00
George Cushen
35287c2391 feat: support fullstops in widget names
Supports Java package naming convention for unique widget names.
2020-08-11 23:07:29 +01:00
George Cushen
6d04dbe81a feat: add support for Book-based homepage
Enables the Book layout to be used directly at the root of the site.
2020-08-07 18:13:12 +01:00
George Cushen
886eb23663 fix: workaround Hugo Modules incompatibility with Bootstrap
"In Go Modules, the /vendor directory in a module has a special meaning, so they delete it from the bundle"

Enables Academic to be installed as a Hugo Module.

See https://github.com/gohugoio/hugo/issues/6945
2020-08-06 23:57:16 +01:00
George Cushen
38514dbc73 fix: workaround Hugo Modules incompatibility with Bootstrap
"In Go Modules, the /vendor directory in a module has a special meaning, so they delete it from the bundle"

Enables Academic to be installed as a Hugo Module.

See https://github.com/gohugoio/hugo/issues/6945
2020-08-06 23:48:33 +01:00
George Cushen
437d478f69 build: add module config with Hugo compatibility info
Attempt to add initial support for importing Academic as a Hugo Module.
2020-08-05 22:41:59 +01:00
George Cushen
b2f90cb15f build: require Hugo v0.73+ GetTerms fix for author order 2020-08-05 22:37:14 +01:00
George Cushen
150190dcf6 feat: update highlight.js from v9 to v10
Close #1788
2020-08-05 20:15:00 +01:00
George Cushen
8cec7d2d7e feat: update Font Awesome to 5.14.0
Close #1801
2020-08-05 20:09:10 +01:00
George Cushen
0c13d0dc78 feat: make navbar optional
Add `enable` option to `main_menu` settings in `params.toml`
2020-08-05 19:45:06 +01:00
George Cushen
161ede094e style: add audio 2020-08-05 19:45:06 +01:00
beckerjohannes
6bf282275a
feat: add support for SVG in Figure shortcode (#1749) 2020-07-31 16:31:26 +01:00
Thom Wiggers
ca0a0e264e
demo: update media dir in cms example config (#1796) 2020-07-31 16:22:07 +01:00
George Cushen
7108eefac1 fix: make media library dir configurable
Fixes shortcode scratch context

Fix d9ff93a1c2
2020-07-29 20:24:17 +01:00
George Cushen
2b1ec2d000 demo: doc media library defaults to static/media/ 2020-07-29 19:01:26 +01:00
George Cushen
d9ff93a1c2 feat: make media library dir configurable
Move default media library from static/img/ to static/media/ as it can now contain audio, video, and other kinds of media in addition to images.

BREAKING CHANGE:
Either rename your site's static/img/ to static/media/ (and update any references to this folder in your Markdown files);

Or, add `media_dir = "img"` to `params.toml` to continue using the legacy location.
2020-07-29 18:54:28 +01:00
George Cushen
5de4c11730 fix: search for index of Book type 2020-07-29 13:58:21 +01:00
George Cushen
ca4f7b07ef feat: add Audio shortcode 2020-07-29 13:57:10 +01:00
George Cushen
4afdb4deba feat: add cite shortcode 2020-07-29 13:56:16 +01:00
George Cushen
0513bee773 chore: init Go module 2020-07-28 01:02:05 +01:00
George Cushen
9421994179 demo: bump Hugo v for Netlify 2020-07-27 23:07:51 +01:00
George Cushen
5456b6decd fix: Book layout
Fixes prev/next direction
2020-07-27 13:39:01 +01:00
George Cushen
42696869c1 perf: disable Academicons integration by default
Increase performance.

To enable, add the following to bottom of `params.toml`:

[icon.pack]
  ai = true  # Academicons icon pack https://jpswalsh.github.io/academicons/
2020-07-25 20:42:21 +01:00
George Cushen
64f921f141 fix: Book layout
Add anchor links from Docs layout
2020-07-25 20:39:30 +01:00
George Cushen
9a5a33e354 fix: Book layout
Remove duplicate footer.
2020-07-25 02:19:48 +01:00
George Cushen
0b9cbc4150 feat: add Book layout
Similar to the Docs layout but much easier to use.

Add `type: book` to a page's front matter and place Markdown files within a folder hierarchy to automatically create the book sidebar navigation.

Introduces {{< list_children >}} shortcode for listing children of a book chapter.
2020-07-25 01:47:37 +01:00
George Cushen
34dcc6f9d3 feat: preload pages
Preload pages and remove gradual fade in animation on pages to increase performance and make pages appear to load more instantly.
2020-07-23 13:14:32 +01:00
George Cushen
c4f0317cdf feat: enable non-rectangular widget styles
Introduces `design.clip_path` widget option.

Refer to CSS docs on `clip-path` for use.

E.g. to create a slanted bottom to a widget:

```
[design]
clip_path = "polygon(0 0,100% 0,100% 80%,0% 100%)"

[design.background]
color = "navy"
text_color_light = true
```
2020-07-12 19:36:37 +01:00
Mario Zigliotto
ad674e92cb
i18n: add missing Spanish translations (#1778) 2020-07-12 01:11:49 +01:00
George Cushen
ba401912b8 fix: more consistent search input:focus rendering
...across browsers and devices
2020-07-10 19:34:04 +01:00
George Cushen
0ba00ee0c8 chore: add support link to Github Issues 2020-07-09 23:16:54 +01:00
George Cushen
47c58faf81 fix(gallery): don't lazy load media library or remote images
`class="lazyload"` was earlier removed but the `data-src` was not reverted to `src`.

Fixes gallery images not loading from `static/img/` or from remote URL.

Fix #1771
2020-07-06 22:00:59 +01:00
Jacques Supcik
cd023168da
feat: add support for Google Fonts API v2
See #1767
Close #1714
2020-07-01 23:30:04 +01:00
George Cushen
486c70c216 feat: add Netlify form options to Contact widget
Help reduce spam
2020-06-30 19:53:06 +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
4efb4d3ab0 refactor: link page summary block rather than text
Enables the visitor to easily click anywhere on the summary (even between lines) rather than having to click exactly on the text.

Close #1751
2020-06-17 19:14:02 +01:00
George Cushen
033e1bd32c feat: link page summary to page
Provides an experience similar to popular blogging platforms.

Make it easier for the visitor to click through and more obvious that it's just a excerpt of the page.

Close #1751
2020-06-17 18:47:01 +01:00
ascholerChemeketa
ed29a71afa
fix: isDarkTheme from int to boolean in academic.js
Fixes data type inconsistency between `isDarkTheme` (int) in `academic.js` and 
 `isSiteThemeDark` (bool) in `site_js.html` that might prevent proper initialization of Mermaid diagrams.

See #1745
Fixes #1742
2020-06-15 20:41:21 +01:00
George Cushen
16b0e67da9 feat(cms): add support for projects and make subtitle/summary optional 2020-06-15 00:33:02 +01:00
Alison Presmanes Hill
7abfbcdb05
style: use consistent pre and code bg colors
See #1740
2020-06-14 23:19:33 +01:00
George Cushen
1af6a8d46e refactor: rename icons.scss to _icons.scss 2020-06-14 23:02:58 +01:00
George Cushen
0f6f9b9d70 refactor: rename _footer to _footer.scss 2020-06-14 22:59:23 +01:00
George Cushen
0db000a841 feat: add options to add author notes + highlight superuser
To highlight the site author (superuser) in author lists, set the following in `params.toml`:

highlight_superuser = true

Author notes can be added to a page's front matter in the form:

author_notes:
- "Equal contribution"
- "Equal contribution"
2020-06-07 20:02:12 +01:00
George Cushen
ff252a6a74 fix: copyright license logic for derivatives
Attempts to align logic with that used at https://chooser-beta.creativecommons.org/

Fix b4901e3
Fix 1729
Close #1730
2020-06-03 12:20:30 +01:00
Dan Kortschak
cae1088586
fix: parsing copyright license attributes
Fix b4901e3fd2
Fix #1726
See #1727
2020-06-02 15:41:16 +01:00
George Cushen
a5f4b872c5 fix: prevent errors if show_related hasn't been added to params.toml
Fix 9e562fc076
2020-05-30 11:12:51 +01:00
George Cushen
3830aed960 fix: prevent all spoilers opening when have same button text
Fix #1723
2020-05-30 11:03:37 +01:00
George Cushen
5dbcff6167 fix: jQuery bugs
Improves Lighthouse Best Practices score.
2020-05-28 22:20:32 +01:00
George Cushen
dbeb7fd871 feat: enable rich text in figure lightbox captions
By adding `safeHTMLAttr`, similarly to the gallery shortcode.

Enables links to show within the figure lightbox, for example.

Close #1706
2020-05-28 21:52:04 +01:00
George Cushen
dfae6dca85 feat: add slides translation for search result content type label
Fallback to `btn_slides` translation for language packs which don't yet have a `slides` translation.

Close #1716
2020-05-28 21:45:32 +01:00
George Cushen
8af8d15d82 feat: add spoiler shortcode
To use:
{{< spoiler text="Click to view the spoiler" >}} You found me! {{< /spoiler >}}

Close #1712
2020-05-28 21:09:54 +01:00
George Cushen
9e562fc076 feat: add show_related option to control related content
The following option has been added to `params.toml` to control related content on pages:

`show_related = {docs = true, page = false, post = true, project = true, publication = true, talk = true}`
2020-05-27 01:23:10 +01:00
George Cushen
67028328d0 feat: open WhatsApp sharing links in app rather than web
Close #1707
2020-05-27 01:10:16 +01:00
Nicholas Nadeau, Ph.D., P.Eng
ca0b898cbf
feat: increase accessibility with alts and labels
Can increase accessibility score in Google Lighthouse from 97% to 100% (exact score may vary depending on the site).

See #1694
2020-05-27 01:04:11 +01:00
Thom Wiggers
88d83a615c
fix: if statement in publications/single.html (#1715)
Fixes Hugo v0.71.1 unable to build site.
2020-05-27 00:53:24 +01:00
rakelgamito
d0552aefc0
i18n: update eu translation (#1686) 2020-05-16 12:26:05 +01:00
George Cushen
3f94927149 demo: edit comments 2020-05-15 00:12:12 +01:00
George Cushen
3cb96be5c6 feat: rename custom icon pack from svg to custom
# To use custom SVG icons.
# Place custom SVG icon in `assets/images/icon-pack/`, creating folders if necessary.
[[feature]]
  icon = "beach-sunset"
  icon_pack = "custom"
  name = "Surfing"
  description = "90%"

See #1692
2020-05-14 23:46:31 +01:00
George Cushen
a357b09682 feat: enable emoji and custom SVG icons in Featurette widget
# To use emoji icons.
[[feature]]
  icon = "😄"
  icon_pack = "emoji"
  name = "Emojiness"
  description = "100%"

# To use custom SVG icons.
# Place custom SVG icon in `assets/images/icon-pack/`, creating folders if necessary.
[[feature]]
  icon = "beach-sunset"
  icon_pack = "svg"
  name = "Surfing"
  description = "90%"

Close #1149
Close #1692
2020-05-14 23:42:44 +01:00
George Cushen
b4901e3fd2 feat: add copyright license option
Enables adding Creative Commons copyright licenses on both site wide and per page basis with the new option:

`copyright_license = {enable = false, allow_derivatives = false, share_alike = true, allow_commercial = false, notice = "This work is licensed under {license}"}`

Close #1670
2020-05-14 22:45:23 +01:00
George Cushen
7eb8d35ddf chore: revise image for Hugo Themes Site
Show screenshot without device mockups as requested.

Close #1684
2020-05-14 22:37:18 +01:00
George Cushen
fc94d95016 feat: complete user management in Netlify CMS 2020-05-06 19:46:30 +01:00
George Cushen
cfa5460dd9 feat: enable user management in Netlify CMS
Adds initial support for managing users/authors.
2020-05-06 18:44:25 +01:00
George Cushen
bd8062f5cb feat: add initial style for RTL languages
See #1639
2020-05-05 20:08:45 +01:00
Mohammadreza Khoshbin
cd841d619d
i18n: add Farsi (fa) language pack (#1683) 2020-05-04 09:15:47 +01:00
George Cushen
a05bc974c7 demo: update math example from Mmark to Goldmark 2020-05-01 22:07:09 +01:00
George Cushen
48b39f8550 fix: workaround Hugo Page.GetTerms bug
Hugo bug causes authors not to be listed in the order in which they were defined in the front matter.

See Hugo bug report at https://github.com/gohugoio/hugo/issues/7213

This commit partially reverts f78feefee9 where the code was refactored to use Page.GetTerms for authors.
2020-05-01 00:03:57 +01:00
George Cushen
f78feefee9 feat: add support for non-ASCII tags, authors, and categories
For example, now Chinese can be used in the names of tags, authors, and categories.

Previously, this was blocked due to bugs in Hugo.

As of Hugo v0.65, new functionality for taxonomies was introduced. The Hugo taxonomy feature powers authors, categories, and tags in Academic.

BREAKING CHANGE:
Requires Hugo v0.65+
2020-04-24 20:32:58 +01:00
George
88fe1f013f
chore: update FUNDING.yml 2020-04-20 20:13:53 +01:00
Abdulaziz
353fab199d
i18n: complete Arabic (ar) translation (#1654) 2020-04-19 19:19:29 +01:00
Abdulaziz
dc0d310af1
i18n: add Arabic (ar) translation (#1642) 2020-04-15 01:30:41 +01:00
George Cushen
3e74580053 feat: update author archetype
To reflect changes to author data model in 601620c .
2020-04-15 01:26:28 +01:00
George Cushen
601620c7a6 feat: make taxonomy URLs singular
- make taxonomy URLs singular, consistent with other Academic pages (workaround Hugo attempting to publish taxonomy URLs with plural names). This requires the breaking change below.
- Fix extra space/lines appearing in the author cards underneath page content as reported at https://spectrum.chat/academic/help/publication-widget-adds-additional-lines-at-bottom-of-the-page~315f77d8-7cc8-44a9-a431-5b64b7556c53

BREAKING CHANGE:
Rename `name` to `title` in author profiles within `author/` folder.
2020-04-15 01:17:56 +01:00
George Cushen
f075bc2d74 feat: add native font theme 2020-04-13 01:40:29 +01:00
George Cushen
2d63a0090a feat: add initial RTL language support 2020-04-11 22:25:03 +01:00
George Cushen
14839190f6 chore: build demo with latest Hugo v0.68.3 2020-04-08 22:37:33 +01:00
George Cushen
42d0e5f8cd fix: 5738cdd41e 2020-04-08 22:31:35 +01:00
George Cushen
5738cdd41e feat: integrate Netlify CMS support
Adds a `[cms]` section in `params.toml` to configure CMS integration.

Supports editing posts, talks, and pages (terms & privacy pages) in Netlify CMS.
2020-04-08 22:29:07 +01:00
George Cushen
9d842f584f fix: social sharing image for author pages
The social sharing logic was attempting to use the legacy system of defining the avatar image name in `site.Params.avatar`, however since the author system was added to Academic, `site.Params.avatar` is now a group of params and the avatar itself is stored in the author's page bundle.

Hence, use the avatar in the author's page bundle (if it exists) to represent an author page.

This bug could affect the image used to represent a page in social sharing and RSS.
2020-04-05 12:27:00 +01:00
Thom Wiggers
ce5196f099
i18n: update NL translation (#1622) 2020-03-29 12:05:16 +01:00
Mike Arpaia
adb09f8dab
fix: parse error when loading widget_page.html
```
Error: add site dependencies: load resources: loading templates: "/Users/marpaia/git/website/themes/academic/layouts/partials/widget_page.html:21:1": parse failed: template: partials/widget_page.html:21: unterminated quoted string
```

Fix 8d25dbc
See #1621
Fix #1618
2020-03-29 11:15:21 +01:00
George Cushen
8d25dbc61f refactor: clarify error message when Hugo fails to load a Widget Page
See #1595
See #1599
2020-03-28 20:49:23 +00:00
Dainius Jocas
ba7680ac2c
i18n: add Lithuanian language pack (#1617) 2020-03-28 20:29:34 +00:00
haybdiid
a7dc76f007
i18n: add Somali language (#1607) 2020-03-22 23:05:04 +00:00
George Cushen
ea84a0c392 fix(navbar): prevent language + theme selectors rendering off page
See https://github.com/gcushen/hugo-academic/issues/1596#issuecomment-599515919
See #1596
2020-03-16 19:46:11 +00:00
George Cushen
eceb8b6312 feat: clarify day/night modes in appearance chooser
Rather than a 3-way icon-based toggle through light, dark, and automatic modes, present the user with a dropdown list of modes displayed in full textual representation.

Adds language pack options for translating `theme_light`, `theme_dark`, and `theme_auto`.

See #1596
2020-03-15 21:40:00 +00:00
Stanislav Valasek
2a713f8e7d
i18n: fix Czech translation (#1597) 2020-03-15 14:16:40 +00:00
George Cushen
ebfb1d9fff feat: support alt-text for featured images
An optional `alt_text` parameter can be added when specifying a featured `image` in a page's front matter.

Alt text is used to describe the image when the page is read via a screen reader.

This commit also changes profile photo alt text from "avatar" to the person's name in alignment with major CMS and social sites.

Close #1592
2020-03-14 01:05:25 +00:00
Stanislav Valasek
b5963ac66c
demo: fix link in comment (#1581) 2020-03-08 00:09:04 +00:00
George Cushen
21e7bc8d3d chore: bump version 2020-03-06 21:13:26 +00:00
George Cushen
c3faa9439d fix: color of back to top arrow in dark mode
Fix #1560
2020-03-06 21:07:12 +00:00
George Cushen
58c8bc4609 feat: add options to customise length of listing summaries
When `summary` is defined, the full summary text is now shown in listings.

Add `summaryLength = 30` (length in words) to `config.toml` to customise automatic summaries from using `<!--more-->` tag or full content (when `summary` and `abstract` are not defined).

Add `abstract_length = 135` (length in characters) to `params.toml` to customise truncation when `abstract` is used as the summary.

Close #1374
2020-03-06 21:05:17 +00:00
George Cushen
63918091fb feat: show profile cards for all page authors, not just first author
If `site.Params.profile` is set to `true`, an author profile card will be displayed at the end of the page for every author (assuming that a profile has been setup for them under `content/authors/`).

Close #1481
2020-03-06 20:18:06 +00:00
beckerjohannes
f9794e9f09
feat: add ID to figures to make them linkable (#1475)
Generates linkable IDs for figures by anchorizing the caption and namespacing the figure ID by prefixing it with `figure-` to help prevent conflicts with other existing IDs.
2020-03-06 19:57:33 +00:00
George Cushen
90aca0659c feat: filter by author in Pages and Featured widgets
To use, just set an `author` filter to a username in instances of the Pages or Featured widget:

```
[content.filters]
    tag = ""
    category = ""
    publication_type = ""
    author = "admin"
```

Close #1422
2020-03-06 19:51:04 +00:00
George Cushen
2dec2f91dc fix: encapsulate font-families in quotes
Fixes issue with using font names containing a space followed by a number such as `Exo 2`.

Fix #1548
2020-03-06 19:24:55 +00:00
George Cushen
4ed72d85b2 fix: revert "fix: workaround Hugo GetPage/urlize bug with non-ASCII usernames"
This commit completes 94e6169320 in reverting commit 03af4df

Ensure `removePathAccents = true` in `config.toml` to workaround the Hugo bug: gohugoio/hugo#5687

Fix #1575
Fix #1563
2020-03-05 20:53:26 +00:00
George
337a554a25
feat(widget): add option to link to archive from Feature widget (#1557)
To add a "See all" link underneath featured content, set `link_to_archive = true` under the `[content]` section in the front matter of the Featured widget.
2020-03-05 20:37:58 +00:00
George
4834058bfe
fix: remove space after author names in MLA citation list (#1536)
This commit removes the space after the author names and before the period when using the MLA citation style.
2020-03-05 20:21:48 +00:00
George
f8bbd828cb
feat: update Mermaid from 8.4.4 to 8.4.8 (#1576) 2020-03-05 20:06:07 +00:00
George
4f2daafe51
fix: inconsistent breakpoints for body margin-top and navbar height
Breakpoints for dynamic navbar height and corresponding body margin-top offset differed slightly.

Fix #1577
2020-03-05 20:04:46 +00:00
George Cushen
94e6169320 fix: revert "fix: workaround Hugo GetPage/urlize bug with non-ASCII usernames"
This reverts commit 03af4df1

Ensure `removePathAccents = true` in `config.toml` to workaround the Hugo bug: https://github.com/gohugoio/hugo/issues/5687

Fix #1575
Fix #1563
2020-03-05 19:54:20 +00:00
Daniel Schemmel
a14d21f7c8
feat: upgrade highlight.js from 9.15.10 to 9.18.1 (#1553) 2020-03-01 20:05:07 +00:00
Stanislav Valasek
7130499dc4
i18n: add Czech translation (#1555) 2020-03-01 20:03:01 +00:00
George Cushen
c5b26892a9 feat: add support for SVG logo format + fix logo URL in JSONLD
Can now upload an SVG logo to `assets/images/logo.svg`.

If your site is for an organization, Google currently requires that the logo is PNG rather than SVG otherwise the site may not receive rich search results based on the JSONLD (see https://developers.google.com/search/docs/data-types/logo).

Also, this commit fixes the logo URL in the site's JSONLD metadata - irrespective of the above feature, the logo URL metadata broke when adding the new automated logo detection system in #1439.

Close #1512
Fix #1516
Fix #1439
2020-02-09 00:53:02 +00:00
George Cushen
5e62b09331 fix: day/night mode and enable reverting to the default auto day/night mode
Fixes:
- There is no easy way for a user to reset their day/night preference back to automatic (currently, they must use their web browser to clear the local storage data for the site)
- When changing the theme variation is disabled by admin (by setting `day_night` to `false` in `params.toml`), the operating system's day/night preference is still applied
- If the admin removes the option to change the theme variation, the preference for a user who already visited the site is still read from the localstorage and applied. For example, this could result in the user seeing a theme variation with poor contrast that was not intended to be shown as the site's theme was optimized for the other variation.

Fix #1385
Fix #1526
Fix #1534
2020-02-09 00:10:45 +00: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
Mikel
7ce6e75542
i18n: update Basque (#1539)
Translation to Basque was unfinished. Also, I corrected some mistakes.
2020-02-01 22:32:15 +00:00
George Cushen
4b6b625b51 docs: edit min Hugo version 2020-02-01 22:22:29 +00:00
Suh. Junmin
da92e3d584
Update korean translation (#1538)
i18n: update Korean translation
2020-01-30 19:39:11 +00:00
George Cushen
0b2f6997ef demo: sync resources 2020-01-26 20:32:16 +00:00
George Cushen
0d8d0d43a1 feat: add support for Hugo v0.63
Hugo v0.63 introduced breaking changes such as breaking templates that don't immediately begin with a `define` (even if the first line is just a code comment): https://gohugo.io/news/0.63.0-relnotes/

Adds compatibility with Hugo v0.63, fixing author pages rendering blank.
2020-01-26 20:29:18 +00:00
George Cushen
1f6beec9f7 fix: GA outbound link tracking
Fixes external links opening both in current tab and new tab when `google_analytics` enabled.

Fix #1511
2020-01-26 16:38:01 +00:00
George Cushen
2f00beab89 feat: default to fixed width icons with icon shortcode 2020-01-26 00:52:40 +00:00
George Cushen
581faa19e7 feat: add icon shortcode to render icons within Markdown content
See https://sourcethemes.com/academic/docs/writing-markdown-latex/#icons
2020-01-25 22:39:22 +00:00
George Cushen
df2e1ed79d docs: update language pack lister 2020-01-25 22:35:02 +00:00
George Cushen
f3c1bed36f feat: update Font Awesome from 5.11.x to 5.12.x
Close #1533
2020-01-25 22:33:29 +00:00
George Cushen
7b4470ebb5 fix: 55228b7ade
Fix figure images not loading when not within page bundle.
2020-01-24 02:08:50 +00:00
George Cushen
c74f07dd01 refactor: docs menu name detection logic
Enables streamlining Academic docs front matter with just `menu: "updates"` for example.
2020-01-24 00:57:50 +00:00
Aleks Aleksandrovs
7c87076824 i18n: add Latvian language (#1531) 2020-01-23 23:47:53 +00:00
George Cushen
55228b7ade fix: lazy loading causing inaccurate anchor scrolling + link highlighting
As of a recent update, gallery and figure images are lazy loaded. However, lazy loading without initial sizes defined can lead to inaccurate anchor scrolling and active link highlighting as the anchor offset changes after an uncached image occurring before the anchor is lazily loaded.

See https://github.com/gcushen/hugo-academic/issues/1199#issuecomment-577293818
Fix #1199
2020-01-23 23:44:08 +00:00
George Cushen
4a7f4dc088 fix: improve active link highlighting for edge cases
Attempt improvement by moving the scroll to anchor logic to the end of window load and adding 1 to elementOffset in case of navbar border.

Appears to solve any issues that could arise (such as when clicking Courses and then Publications, but Projects being highlighted instead) in local testing.

See https://github.com/gcushen/hugo-academic/issues/1199#issuecomment-577293818
See #1199
2020-01-23 22:36:42 +00:00
George Cushen
d9e553a96b style: upgrade Bootstrap from 4.3.1 to 4.4.1 2020-01-23 22:15:37 +00:00
chivitchhoeun
bf0d133262 i18n: add Khmer language (#1523) 2020-01-20 12:05:36 +00:00
George Cushen
350beb358b fix: only allow auto day/night when day_night enabled
Fix #1526
2020-01-20 11:19:55 +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
242479c5ed feat: add support for displaying square avatars
Simplify generated avatar resources and commit.

See #1509
2020-01-12 14:35:59 +00:00
George Cushen
1a3efac296 feat: add support for displaying square avatars
Also, make About widget avatar responsive, appearing larger on large devices.

BREAKING CHANGE:
`gravatar` option moved under new `[avatar]` section in `params.toml`.
`shape` option added under new `[avatar]` section in `params.toml`.

Close #1509
2020-01-12 14:27:27 +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
d995e4d14d fix: 0cc80f90ee
Fix logo in navbar transforming into site title on mobile.

See #1439
Fix #1507
2020-01-04 18:00:33 +00:00
George Cushen
d1d761fbc6 chore: bump version 2020-01-02 17:04:11 +00:00
George Cushen
48397fb6d4 fix: multilingual mode with different baseURLs
With Hugo v0.60+, the translation menu in the navbar is broken when a different baseURL is set for each multilingual site. This update attempts to fix that.

See #1503
2020-01-02 11:19:30 +00:00
George Cushen
eb953ed475 demo: sync preprocessed resources for Hugo Themes Site 2020-01-01 12:56:19 +00:00
George Cushen
1990134455 fix: add author name to profile page title
Author name now appears in browser tab when visiting an author's profile page.
2019-12-30 00:59:34 +00:00
George Cushen
0cc80f90ee feat: automatically detect logo image
Simplify the process of adding a logo to a site.

BREAKING CHANGE:
Removes param for logo from params.toml. Instead, move logo image to `assets/images/logo.png`, creating the folders if necessary.

See #1439
2019-12-29 22:00:38 +00:00
Dawid Gosławski
577eeeaca2 i18n: update Polish translation (#1501)
Translate missing Polish translations from English.
2019-12-29 21:47:34 +00:00
George Cushen
ce75013228 feat: automatically generate website icons
See #1439
2019-12-28 23:48:40 +00:00
Slashdoom
6c86640af4 fix(widget): tag cloud max size calculation (#1497)
Calculate max value first since the list is mutable to Hugo's `Reverse` function - i.e. Hugo's `Reverse` function currently appears to operate in-place.
2019-12-28 20:44:44 +00:00
Julian Pawlowski
30b6d5c7e5 demo: Germany and France address format should be the same (#1487) 2019-12-28 20:30:29 +00:00
thomase1993
3965252fc5 refactor: define cookie consent assets in assets.toml
Moved the Cookie Consent asset definition to assets.toml so that it's possible for offline site to use local Cookie Consent assets.

Also upgraded Cookie Consent to 3.1.1.

Close #1495
2019-12-28 20:13:15 +00:00
George Cushen
361707f4fd feat: lazy load figures and gallery images
The proportion of image data in the typical payload of a website can be significant. Lazy loading is a solution that lowers initial page payload and load time, without removing content. Non-critical resources are instead loaded at the moment that they are needed.

Also, load MathJax async in head if required, rather than at end of body.

Close #1106
2019-12-18 14:33:22 +00:00
Märt Põder
41d3bf8aa7 i18n: add Estonian translation (#1482) 2019-12-16 19:36:57 +00:00
George Cushen
949e15d19a demo: simplify inline math example for Goldmark 2019-12-16 11:49:06 +00:00
George Cushen
03af4df12a fix: workaround Hugo GetPage/urlize bug with non-ASCII usernames
Attempt to use anchorize rather than urlize for fetching user profiles for users with non-ASCII usernames. Apparently `anchorize` does not perform URL encoding unlike `urlize`, so may be better suited for use with `GetPage`.

See https://github.com/gohugoio/hugo/issues/5687
2019-12-15 16:16:09 +00:00
George Cushen
5c6c8770b1 feat: add support for Hugo v0.60
Slides now work correctly in Hugo v0.60.

Close #1479
2019-12-15 15:52:53 +00:00
George Cushen
45c6e7027d chore: update thumbnail 2019-12-12 21:48:45 +00:00
George Cushen
ba772f60ce feat: upgrade from Mermaid v8.3.1 to v8.4.3
Close #1419
2019-12-12 20:54:47 +00:00
George Cushen
42defb4684 fix: highlight active ToC item for Goldmark (Hugo v0.60)
Equivalent to previous workaround for Hugo's Blackfriday ToC in ea2a98a2c3

See ea2a98a2c3
2019-12-09 18:29:06 +00:00
Russell J. Hewett
4e893ca29e fix(widget): Portfolio responsive breakpoint (#1462)
Make Portfolio responsive breakpoint consistent with other widgets.

Likely this specific code was missed in the migration from Bootstrap 3 to 4.
2019-12-09 16:33:43 +00:00
Emilia Trollros
b5b5f125e9 i18n: add Swedish language pack (#1457) 2019-12-08 01:33:23 +00:00
George Cushen
ea2a98a2c3 feat: add support for Hugo v0.60 - remove Blackfriday TOC workaround 2019-12-07 20:37:26 +00:00
George Cushen
aa4c95277c feat: add support for Hugo v0.60 2019-12-07 20:02:54 +00:00
George Cushen
6d97e95942 feat: add support for Hugo v0.60 2019-12-07 19:58:43 +00:00
Samuel Guay
023a9fef27 feat: add a template (archetype) for adding new authors
I thought this would be useful for people who need to create many authors. Instead of copying and pasting the `admin/_index.md`, they can simply use the hugo command `hugo new authors/FIRSTNAME-LASTNAME` and have an empty but commented _index.md file ready to be filled in for each author.

Close #1445
2019-12-07 16:40:35 +00:00
Florian Pöhler
bba41637a0 feat: add option to use self hosted Commento
If you are using the Commento cloud service, you do not need to
change anything, but if you want to use a self hosted instance, you can now
 provide the base url to your Commento instance.

Close #1446
2019-12-07 16:38:25 +00:00
George Cushen
cdf5ef1096 chore: bump version 2019-12-07 16:36:16 +00:00
Ronny Chevalier
c7b71e6c4b fix: console error when highlight disabled (#1455)
If "hightlight" was disabled, the following error appeared in the
console:

    Uncaught ReferenceError: code_highlighting is not defined
2019-12-07 16:25:33 +00:00
Arto Bendiken
b631115926 i18n: fix typos in Russian translation (#1456) 2019-12-07 16:23:51 +00:00
George Cushen
981704c0d8 fix: navbar logo is too big on Firefox
Fix #1449
2019-12-07 16:22:17 +00:00
Arto Bendiken
3508912fd0 i18n: add Ukrainian translation (#1444) 2019-11-30 13:17:56 +00:00
George Cushen
6d92b0e8ab chore: bump version 2019-11-24 14:25:11 +00:00
George Cushen
197b5d1f06 fix: off-centre logo on mobile
Fix #1436
Close #1437
2019-11-24 14:16:21 +00:00
Jacob Peacock
ef4ec47722 docs: fix semi-broken link (#1438)
Old link redirected to correct page but missing hash after redir.

Close #1435
2019-11-24 11:53:54 +00:00
George Cushen
c3c4d9560a fix: "Edit Page" links for multilingual sites
Fix #1232
Fix sourcethemes/academic-www#14
2019-11-24 11:47:26 +00:00
George Cushen
15e00e60de fix: "Edit Page" links for multilingual sites
Fix #1232
Fix https://github.com/sourcethemes/academic-www/issues/14
2019-11-24 11:05:55 +00:00
George Cushen
037d75f6da fix: race condition between HighlightJS and Mermaid
In some cases, the race condition could prevent Mermaid diagrams from being rendered.

Fix #1434
See #1298
2019-11-21 21:41:58 +00:00
wusphinx
fc0d15d0d7 i18n: update Chinese (#1431)
Adjust Chinese translation for minute_read
2019-11-19 18:31:24 +00:00
George Cushen
b45d4c5432 chore: bump version 2019-11-19 00:19:39 +00:00
George Cushen
74688bad25 docs: add contributing guide 2019-11-19 00:09:38 +00:00
George Cushen
d7749fdaa8 fix: theme's menu_text_active stopped working
Fix #1430
2019-11-18 23:11:01 +00:00
Bertrand Thierry
b9bba28813 feat: add French address format
Close #1428
2019-11-18 13:49:10 +00:00
Michael Rennecke
fd1a7e71a2 fix: typo leading to braces displayed in talk address
Fix e6eb27deee
Close #1429
2019-11-18 13:46:31 +00:00
George Cushen
51c0d87e54 fix: dropdowns broken in main menu
Also fixed dropdown style.

In order to fix, temporarily disabled horizontal scrolling of menu item overflow.

Fix 766c559
Fix #1425
2019-11-18 00:55:31 +00:00
auntiehuat
d6b44a4e02 docs: fix typo in comment (#1426) 2019-11-17 21:16:49 +00:00
Marc Schulder
01740917be feat: add German address format
Close #1427
2019-11-17 21:14:30 +00:00
George Cushen
a1f5a3cdd0 chore: bump version 2019-11-16 18:03:00 +00:00
George Cushen
e6eb27deee feat: enable semantic address format to be localised
For example, US sites can use the US address format and Chinese sites can use the Chinese address format.

A default address_format can be set in params.toml, which can be overriden on a per page basis using a parameter of the same name in a page's front matter. Optionally, multilingual sites may wish to add a default format for each site in languages.toml.

BREAKING CHANGES
- list_delimiter removed from params.toml
- address_format added to params.toml
- [address_formats] added to params.toml

Close #1344
2019-11-16 17:55:17 +00:00
Simone Rossi
d0fb759153 feat: add Mention shortcode to mention people
To mention someone, type `{{% mention "username" %}}` where `username` corresponds to a user account in Academic. This will create a link to the user's profile page.

Close #1421
2019-11-16 16:14:08 +00:00
George Cushen
9cbf5f8ffc chore: commit pre-computed resources for demo on Hugo Themes Site
See https://github.com/gohugoio/hugoThemes/issues/761
2019-11-16 15:49:47 +00:00
George Cushen
766c559e50 feat: improve mobile-first menu
- On mobile, position toggle on left and logo in centre (adopt standard)
- Show Search, Day/Night, and Language icons in mobile menu bar
- Add option to align menu items to left, centre, or right
- Add option to remove logo image/text from menu
- Complete navbar SCSS redesign, making use of Bootstrap vars
- Add automatic menu dropdowns on mouseover (for desktop)

Also,
- Apply live day/night update on system prefs change (no need for refresh)
- Add Mermaid security level on init - a req. for latest Mermaid version

BREAKING CHANGES:
menu_align_right option removed from params.toml
main_menu option added to params.toml

Close #1418
2019-11-16 15:42:31 +00:00
George Cushen
24bfa6fa4d feat: recognize env via -e argument in addition to HUGO_ENV
Also, see https://github.com/gohugoio/hugo/issues/6456#issuecomment-546524056
2019-10-30 13:20:25 +00:00
George Cushen
5abeaaac7e fix(widget): allow spaces in filters in Pages and Featured widgets
Fix #1388
2019-10-19 21:15:18 +01:00
Bertrand Thierry
bbda2cce0f feat(talk): do not require event
Close #1397
2019-10-19 21:06:55 +01:00
George Cushen
f30d3252a7 refactor: rename sass folder to scss 2019-10-19 20:53:42 +01:00
George Cushen
ede8cef959 feat: update vendor assets & refactor custom CSS path
- Upgrade MathJax from v2 to v3
- Updated Highlight, Leaflet, Fancybox, Mermaid, FontAwesome
- Fixed multilingual icon paths in Web App Manifest
- View Demo script now binds to all network I/F to enable testing on
  other physical devices like smart phones

BREAKING CHANGES:
Removed `plugins_css` from `params.toml`.
Override `custom.scss` to add custom styling.

Close #1400
2019-10-19 20:33:56 +01: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
MineCola
d8e90e9d64 i18n: add 中文 (繁體)
See #1381
2019-10-09 14:20:16 +01:00
George
ccc23382b2
chore: fix issue template 2019-10-08 19:38:34 +01:00
George
040898a4db
chore: fix issue template 2019-10-08 19:38:14 +01:00
George
d146580291
chore: fix issue template 2019-10-08 19:37:57 +01:00
George
72fca5c748 chore: add GitHub issue templates 2019-10-08 19:35:22 +01:00
George Cushen
44f9170f07 fix: in-page anchor scrolling on mobile 2019-10-05 18:39:33 +01:00
George Cushen
18ae2268f3 feat: add bg size, position, and parallax options to Widget Pages
#  Options are `cover` (default), `contain`, or `actual` size.
image_size = "actual"
# Options include `left`, `center` (default), or `right`.
image_position = "right"
# Use a fun parallax-like fixed background effect? true/false
image_parallax = true

See #1377
2019-10-02 21:18:34 +01:00
George Cushen
9cbf096db5 feat: add bg size, position, and parallax options to Widget Pages
#  Options are `cover` (default), `contain`, or `actual` size.
image_size = "actual"
# Options include `left`, `center` (default), or `right`.
image_position = "right"
# Use a fun parallax-like fixed background effect? true/false
image_parallax = true

See #1377
2019-10-02 21:17:24 +01:00
George Cushen
3911b8ff53 chore: increase min Hugo version
May solve #1375
2019-10-02 12:18:01 +01:00
Bertrand Thierry
02b4ce0e68 fix: no users appear in People widget
Bug caused by search/replace during last People widget update in #1323 .

Also:
- Fix closing div placement
- Hide group if empty

Fix #1360
Close #1372
2019-10-01 19:19:47 +01:00
George Cushen
b028457922 fix: gtag.js config 2019-09-28 18:20:03 +01:00
George Cushen
6d0c021011 feat: improve search for diacritics + Chinese/Korean/Japanese languages
Close #1361
2019-09-28 15:25:26 +01:00
George Cushen
01189e8056 fix: space after author name when using link_authors
Fix dc0407a0e2
Fix #1356
2019-09-25 11:12:57 +01:00
George Cushen
8e9b045edb refactor: remove GoogleAnalytics from config.toml (moved to Params) 2019-09-24 22:51:20 +01:00
George Cushen
dc0407a0e2 feat: add option to disable linking authors to their profile page
`link_authors` option added to `params.toml`.

Close #982
2019-09-24 22:25:16 +01:00
George Cushen
47427cc527 fix: People widget
Fixes 4b72dba09d
2019-09-24 22:13:04 +01:00
Christophe Bedetti
4b72dba09d feat: add optional social icons to People widget
BREAKING CHANGES

The `user_groups` field has been moved under the new `[content]` front matter section.

See #1345
2019-09-24 22:07:24 +01:00
George Cushen
f0ad140f07 feat: add support for Google Tag Manager + refactor GA to use gtag.js
GT (gtag.js) and GTM are the modern Google analytics solutions.

New `[marketing]` config section added to `params.toml`.

GT will fall back to site.GoogleAnalytics if the new `[marketing]` param
for GT/GA isn't specified, so currently no breaking changes.

May deprecate site.GoogleAnalytics in future.

Close #1349
2019-09-24 14:00:23 +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
829995656e fix: console error when clicking back_to_top button
Note: bug did not affect functionality, still scrolled to top.

Fix #1352
2019-09-22 14:34:24 +01:00
George Cushen
b5a05867d8 fix(publication): DOI link not shown if it's the only link
Fix #1340
2019-09-14 22:56:20 +01:00
George Cushen
b2494b2172 refactor: JSONLD author 2019-09-14 22:21:19 +01:00
George Cushen
d486867326 fix: don't show address in Contact if it's slice of empty strings
An alternative is to comment out the `address` in Params if it's unused.
2019-09-14 21:51:33 +01:00
George Cushen
2192b11d04 style: center figure captions
Since figures are now centered.
2019-09-14 19:41:11 +01:00
George Cushen
7ebcc69d42 chore: bump version 2019-09-11 17:50:26 +01:00
George Cushen
874a013b79 feat(jsonld): add publisher to article metadata
Forms part of the transition from Microdata to JSON-LD.

Close #413
2019-09-11 17:47:28 +01:00
George Cushen
c163931702 fix: HTML5 validation errors on Demo site
Fix #1197
2019-09-11 17:25:12 +01:00
George Cushen
eacadc7935 feat(search): show talk and publication abstracts in results
Instead of their page bodies which are often empty.

Close #1253
2019-09-11 15:39:04 +01:00
George Cushen
55106c1ff6 refactor: page author link based on site_type in params.toml 2019-09-11 13:27:11 +01:00
George Cushen
bd2e4ec418 feat: add JSONLD schema for organizations
Forms part of the transition from Microdata to JSON-LD.

BREAKING CHANGES

Upgrades to your `params.toml` file are required:

- Address field has been split into semantic parts
- Latitude and longitude have moved under `coordinates` option
- Map settings have moved under `[map]` section
- Office hours can now be specified more simply, as a list
- Added optional `list_delimiter` option for formatting addresses

See #413
2019-09-11 13:18:49 +01:00
ns68
8055c9d20f i18n: add missing RU translations (#1335) 2019-09-11 10:17:29 +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
e9a7925152 feat: add XS and XL font sizes and change default font size to L 2019-09-09 21:00:56 +01:00
George Cushen
ec4f5a11bf feat(talk): add support for event address
Forms part of the transition from Microdata to JSON-LD.

See #413
2019-09-09 17:33:08 +01:00
George Cushen
d8fa0b9523 refactor: strip out Microdata from About widget
Forms part of the transition from Microdata to JSON-LD.

See #413
2019-09-09 14:59:19 +01:00
George Cushen
1b2e20cc2a refactor: convert Event Microdata to JSONLD
Requires further work to add support for full semantic event address.

Forms part of the transition from Microdata to JSON-LD.

See #413
2019-09-09 14:42:55 +01:00
George Cushen
5d590b64f6 refactor: strip out Microdata for list items and page metadata
Forms part of the transition from Microdata to JSON-LD.

See #413
2019-09-09 13:59:22 +01:00
George Cushen
76ade21d36 chore: add configuration for stale-bot 2019-09-06 18:51:39 +01:00
George Cushen
887114dac0 docs: add GitHub support.md 2019-09-06 18:35:23 +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
2e01db268d feat: add JSON-LD structured data for website, posts, and pubs
Forms part of the transition from Microdata to JSON-LD.

See #413
2019-09-05 16:34:04 +01:00
George Cushen
bc85b6800a demo: simplify documentation for writing content in Jupyter 2019-09-05 14:15:23 +01:00
George Cushen
9a2a4d40b9 demo: simplify documentation for writing content in Jupyter 2019-09-05 14:11:15 +01:00
George Cushen
ae4afde2c0 fix: font not found when using some themes
Fix #1314
2019-09-04 18:04:16 +01:00
George Cushen
2479177a34 fix: font not found for 1950s and Coffee themes
Fix #1314
2019-09-02 15:56:24 +03:00
George Cushen
166ded2480 refactor: update installation checks
Fix #1308
2019-08-30 14:37:43 +03:00
George Cushen
aa13a4d28c feat(themes): implement new font sizing system
Specify `font_size` as s, m, or l in `params.toml`.
Font size is now a site setting rather than theme setting.

Also:

Be less strict on user input of theme and font set names - allow lower
or upper case as well as spaces.
Fall back to Minimal theme and font set on user input error.
Keep category icon on same line as category links, otherwise context
lost.
Change search-header position in modal now that it overlays entire page
*including* navbar.
2019-08-30 13:40:45 +03:00
George Cushen
3ee76244e9 demo: remove old theme gallery from post 2019-08-30 13:40:45 +03:00
George Cushen
4a201569f6 refactor: params.toml changes for improved theme system
Rename `color_theme` to `theme`.
Default theme has been renamed from Default to Minimal.
The Font set is now set by the theme unless overrided by user in `params.toml`.
Font size is now set in `params.toml` rather than in the font set.
Options for `font_size` are now s,m, or l.
2019-08-30 13:40:45 +03:00
George Cushen
d1b84a505a feat(themes): 1950s and Coffee default to using Rose font set 2019-08-30 13:40:45 +03:00
George Cushen
ff1e8d1b61 refactor(themes): rename Default to Minimal 2019-08-30 13:40:45 +03:00
George Cushen
94542577a5 refactor(fonts): move font size to Params + rename Default to Minimal
Rename Default font set to Minimal.
Move `font_size` option from font sets to `params.toml`.
2019-08-30 13:40:45 +03:00
George Cushen
f49b3f96e6 fix: add missing <p> for Card view 2019-08-30 13:40:45 +03:00
George Cushen
46ef0c5c86 fix(portfolio): add <p> now that we use truncate 2019-08-30 13:40:45 +03:00
sbilly
f9782426dd i18n: update Chinese translation (#1301)
Correct one translation and add a missing translation to the Chinese language pack.
2019-08-29 12:02:29 +03:00
Julian Pawlowski
92c1bca1a9 fix: web app manifest URI for multi-language sites (#1279) 2019-08-19 17:15:06 +01:00
Julian Pawlowski
3e79f2b37b feat(sharer): add Tumblr (#1280) 2019-08-14 22:31:38 +01:00
George Cushen
180656e84c docs: add Writing GIF to readme 2019-08-06 00:49:25 +01:00
George Cushen
371ec59897 docs: update Readme with v4.4 and v4.5 themes 2019-08-03 14:16:10 +01:00
George Cushen
c2650cc239 feat(widget): Tag Cloud: add taxonomy and font size options
Enables the widget to be used for categories etc. and not only tags.

Also fix tag ordering by title rather than by count (d0ec05a).

Fix #1267
Fix d0ec05a
2019-08-03 13:53:30 +01:00
George Cushen
d0ec05a65b feat: add max count option to Tags widget
Choose how many tags you would like to display.
2019-08-01 20:09:04 +01:00
George Cushen
32b6145c06 feat: start web app at localized home page where applicable
Also, add support for 512x512 pixel splash screen icon
`static/img/icon-512.png` .

Close #1247
2019-07-31 01:23:42 +01:00
George Cushen
3326ad410e fix: include manifest URL on all pages
BREAKING CHANGE:
If overriding icon.png, rename it to icon-32.png and add icon-512.png.

Fix #1245
See #1247
2019-07-31 01:01:31 +01:00
Julian Pawlowski
07f4cea1d6 fix: web app manifest link
Fix #1245
2019-07-31 00:36:00 +01:00
George Cushen
15e7aa01c3 style: fix aside to appear same as alert 2019-07-30 23:33:05 +01:00
George Cushen
b57c5f87b8 fix: just include Disqus comment count JS once if enabled
Fix dc2c70e
See #1229
2019-07-28 20:40:08 +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
0011592861 feat: dynamically generate manifest
Adds name, lang, theme_color and background_color.

Removes 32px icon and adds 512px icon based on latest Google best
practices.
2019-07-27 22:56:26 +01:00
Julian Pawlowski
8688f1d4af demo: disable editing and commenting on Terms & Privacy pages 2019-07-27 22:43:00 +01:00
George Cushen
dc2c70ecec fix: just include Disqus comment count JS once if enabled
Fix #1229
Fix a1ba678e79
2019-07-27 21:19:27 +01:00
George Cushen
e24de2a2ca feat: support .webm videos in Video Shortcode
Close #1226
2019-07-27 21:07:12 +01:00
Julian Pawlowski
835d3d76c0 feat: support commenting for project, publication, and talk pages (#1240)
To use, set `commentable = {page = true, post = true, docs = true, project = true, publication = true, talk = true}` under the Comments section in `params.toml`.
2019-07-27 21:03:50 +01:00
Julian Pawlowski
8272c2c8fb feat: add support for Terms in footer (#1236)
To use, copy `themes/academic/exampleSite/content/terms.md` to `content/terms.md` in your site, add your legal terms, and remove the `draft` option to publish.
2019-07-27 20:51:18 +01:00
Julian Pawlowski
0fe72a339c feat: add Xing to Page Sharer (#1239) 2019-07-27 20:35:32 +01:00
Julian Pawlowski
86910f17bb i18n: update German translation (#1233) 2019-07-27 20:33:11 +01:00
Julian Pawlowski
a78bf3d48f style: fix navbar language chooser spacing when --minify used
Fix #1231
2019-07-27 20:29:40 +01:00
George Cushen
3e62662d53 refactor: edit_page.html --> page_edit.html 2019-07-27 20:23:17 +01:00
Alessandro Bahgat
472d43ed41 fix: HTML of author page when no authored content (#1225)
An `{{end}}` was in slightly the wrong place
2019-07-24 19:35:22 +01:00
George Cushen
310357e346 style: fix category icon spacing when --minify used
Fix #1219
2019-07-23 21:57:42 +01:00
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
e9ffc5bd9f
feat: add git branch option for editing pages 2019-07-23 09:25:24 +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
57ae6c297e demo: fix Hero CTA note 2019-07-22 21:32:46 +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
96d061bfff bump version 2019-07-22 01:10:46 +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
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
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
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
George Cushen
5b24f2aa13 refactor: pages as blocks of a base template
Refactor pages as blocks of a base template rather than not using a base template and directly including all necessary elements on each page.

May make Academic more modular and maintainable whilst making it easier for users to apply advanced customizations.

See https://gohugo.io/templates/base/#define-the-base-template

Close #634
Close #1115
2019-06-01 15:31:34 +01:00
George Cushen
9263fcd3c9 refactor docs to use baseof 2019-06-01 15:15:19 +01:00
George Cushen
dcd3c05abd Merge branch 'baseof-refactor' of https://github.com/rhewett/hugo-academic into rhewett-baseof-refactor 2019-06-01 14:05:05 +01:00
George Cushen
316bfe2d8f fix(demo): BaseURL 2019-06-01 00:39:01 +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
07b921a6e8 fix(demo): BaseURL
Some paths in the demo were wrong due to missing BaseURL.
2019-05-29 21:03:14 +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
Marc Schulder
2f3bfa2ff4 i18n: update German (#1109)
Change the German translation of "education" from "Ausbildung" to the more general "Bildung".
2019-05-27 14:36:38 +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
icf20
11df1131dd i18n: add Romanian (#1107) 2019-05-26 22:53:30 +01:00
George Cushen
7cb7e497f7 refactor: convert archetypes from TOML to YAML 2019-05-26 18:49:23 +01:00
Marc Schulder
cd19779d8e i18n(de): consistently use formal German (#1097)
All but one message used the formal "Sie" to address the reader. Therefore, adjust the one case in which informal "du" is used.
2019-05-21 19:05:52 +01:00
Marc Schulder
3c2cd8dc87 i18n(de): fix typo (#1096) 2019-05-21 19:03:53 +01:00
Dominik Vogel
23e2c4dcab i18n: update DE translation (#1095) 2019-05-20 18:05:52 +01:00
George Cushen
29ce18a050 feat(theme): add Strawberry theme
Also, refactor themes and theme system to replace primary_light and
primary_dark with SCSS lighten/darken funcs.

See #1091
2019-05-19 23:51:32 +01:00
George Cushen
79db5acc1b docs: clarify Hugo version 2019-05-19 20:46:04 +01:00
George Cushen
0438fabbc3 bump version 2019-05-19 18:51:49 +01:00
George Cushen
49ac91fef9 refactor: parse_theme
Clean up code, add some defaults, and add error messages when the
specified font or color theme cannot be found.

Refactor `text-muted` color from CSS override to Bootstrap variable.

Close #680
2019-05-19 18:49:41 +01:00
George Cushen
efb4f32ade fix: inconsistent column widths in People widget
Fix #1070
2019-05-19 18:31:45 +01: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
9b3e1baa46 feat: re-add Slider widget's height option
Although Slider height is now automatically normalised, it can be useful
to override the height when using the Slider as an image gallery.

Close #1086
2019-05-18 20:42:17 +01:00
FLaco
aeab0b6618 feat(js): update Highlight JS from 9.12.0 to 9.15.6 (#1075)
Adds support for more languages like plaintext and SAS.

See https://github.com/highlightjs/highlight.js/blob/master/CHANGES.md
2019-05-11 15:59:48 +01:00
George Cushen
e8966f703a fix(shortcode): remove Hugo 0.55+ deprecation warning for Gallery
Fix #1074
2019-05-11 15:41:13 +01:00
George Cushen
9acaa6f852 feat: convert demo front matter from TOML to YAML
Convert publications.

See #1069
2019-05-08 21:11:09 +01:00
George Cushen
ced350c547 refactor: publication types as TOML at data/publication_types.toml 2019-05-08 20:13:18 +01:00
George Cushen
507523aeb9 fix(widget): Hugo 0.55 broke display of taxonomy term names (e.g. tags)
Prior to this update, Hugo began displaying urlized tags like
`deep-learning` rather than `Deep Learning` in the Tag Cloud widget and
the list_tags/categories shortcodes.

Fix #1072
2019-05-07 22:55:02 +01:00
George Cushen
c88f90bd5d fix: build fails on Windows: "Error: Could not find author page at..."
Fix #1068
Fix #1064
2019-05-07 22:36:24 +01:00
George Cushen
71f0959b9e fix: build fails on Windows: "Error: Could not find author page at..."
Caused due to Windows backslashes in path when extracting username from
folder name.

Fix #1068
2019-05-07 21:39:43 +01:00
George Cushen
8857bffa20 feat: convert demo front matter from TOML to YAML
Unfortunately, the popular Markdown editors (VS Code and Typora) still
don't support the more human-friendly TOML front matter syntax.

Therefore, make it easier to edit content in popular editors by
converting the demo front matter from TOML to YAML.

Except for publications as they are primarily data based (rather than
content based) and are automatically generated by Academic Admin.

Also, continue to use TOML for configuration files.

See #1069
2019-05-06 17:48:02 +01:00
George Cushen
32e6009edb fix(widget): People widget broke due to renaming of author -> authors 2019-05-06 15:57:23 +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
8a6d151efb fix(nav): extend navbar active link highlighting to non-home pages
The original commit of the feature in abbd540 didn't work when `baseurl`
contained a sub-dir like we have for the docs site.

Fix abbd540
See #991
2019-05-05 23:41:33 +01:00
George Cushen
abbd54045c feat(nav): extend navbar active link highlighting to non-home pages
Also,
- Fix ScrollSpy link scrolling/highlighting not working on widget pages
  except the home page
- Add `docs_section_pager = true` to `params.toml`.
- Add more demo tutorial pages and content to showcase the improved
navbar highlighting for child pages and the table of contents feature.
- Bump version in prep. for release

Close #991
2019-05-05 22:23:32 +01:00
George Cushen
346f1575e0 refactor: Academic's SCSS style file into more manageable modules
See #680
2019-05-05 20:43:05 +01:00
George Cushen
93150a55e9 i18n: sync language packs against master to fix missing interface text
The structure of some language packs is very outdated, leading to
missing user interface text when using these packs.

Developed a Python script to sync the structure of all language packs
against the master pack (English) so that each pack has the latest set
of localisation strings.

Note that synced items will still need translating, this commit just
ensures that all language packs have the same structure.

Fix #1062
2019-05-05 20:14:39 +01:00
George Cushen
88e0459e68 fix: Hugo 0.54+ breaks links to user profiles with non-ASCII usernames
* check if the Hugo generated author profile URL is valid
  * works around the Hugo bug, preventing invalid links
* rename `author` folder to `authors`
  * no need to GetPage authors/x and then GetPage author/x to check if
    user account was created
  * can just rename the folder and use `if .File` instead
  * more aligned with how Hugo's taxonomy system was designed
* refactor all author code

BREAKING CHANGE: rename `author` folder to `authors`

Fix #1064
2019-05-05 14:13:49 +01:00
George Cushen
a40d7af8b8 feat: add search box to 404 page 2019-05-04 13:13:33 +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
d664b4bcba refactor: .Site.x to site.x 2019-05-01 23:36:59 +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
925d781bb0 fix: some tag and category links are broken
Links may break due to breaking changes in GetPage in Hugo 0.55.2+.

Solution: add explicit urlize to taxonomy term GetPage call

Fix #1053
2019-04-26 08:50:50 +01:00
zertrin
2edf7cf351 fix: authors no longer shown on publication page
Bug caused in the recent refactoring to support Hugo 0.55.2+.

Fix #1055
2019-04-25 23:24:51 +01:00
George Cushen
92200d6327 refactor: convert CSS to SCSS
Remove Bootstrap from Header and assets.toml
  Remove Bootstrap JS CDN version in footer and assets.toml
  Add latest Bootstrap v4 SASS files locally
  Include Bootstrap JS locally
  Convert Academic's CSS to SASS (mainly SASS variables + Go templating)
  Convert Academic's theming system to integrate with SASS
  Parse SASS in header using Hugo and convert to CSS
  Minify and md5 fingerprint bundled CSS
  Fix Slider widget (reuses .wg-hero but animation and `clear` removed)
  Add Bootstrap files to repo so that Node is not required

See #680
2019-04-24 23:56:41 +01:00
George Cushen
35563bb498 fix: page metadata no longer displayed
Fix #1042
2019-04-19 23:14:24 +01:00
George Cushen
c2b4586f52 bump version 2019-04-19 14:39:26 +01:00
George Cushen
6373e9b87d fix(widget): Slider text color should be light on dark background
Recent changes to Hero widget added support for both light and dark
options for background and text (previously it only supported dark
backgrounds and light text).

Slider continues to only support dark style (dark bg and light text).
However, since it inherits some styling from Hero, it began displaying
dark background and dark text. This fix re-applies dark mode to the
Slider widget.
2019-04-19 14:10:06 +01:00
Gert de Pagter
4630f4b784 fix(js): day/night mode when highlight=false or highlight_style is set
Fix JQuery error when `day_night=true` and (`highlight=false` or `highlight_style` is set)

Fix #1040
Fix #952
2019-04-19 13:55:58 +01:00
Dongdong Tian
00aada46d2 fix: people widget
Fix v4.2.2
Fix #1037
2019-04-19 00:33:07 +01:00
George Cushen
605fc4dd91 fix: page resource links not displayed
Fix v4.2.2
Fix #1036
2019-04-19 00:28:53 +01:00
George Cushen
080b72a3bd fix: pagination links
Must remain .URL rather than .RelPermalink
2019-04-18 08:38:44 +01:00
George Cushen
80e352158e docs: edit readme 2019-04-17 20:04:41 +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
817cac04dd fix(search): make search dialog easier to close
Whilst searching, the navbar is now hidden to prevent user attempting to
close dialog by clicking on navbar links. Otherwise, when clicking on an
in-page anchor link in navbar, the page content will not be reloaded and
will remain hidden underneath the dialog.

Fix #996
2019-04-15 19:08:16 +01:00
George Cushen
308a81825d docs: revise readme 2019-04-15 00:02:35 +01:00
George Cushen
01114416aa fix(style): text_color_light = true only working in Safari
The .home-section.dark` selector blocks were not being applied by Chrome
and Firefox due to them not supporting CSS Selectors Level 4.

Selectors Level 4 allows the :not() pseudo-class to accept multiple
selectors. See https://stackoverflow.com/a/35993791

However, currently, it is only supported by Safari:
https://caniuse.com/#feat=css-not-sel-list
2019-04-10 19:26:37 +01:00
George Cushen
d7ff9a634f bump version 2019-04-09 21:04:45 +01:00
George Cushen
e6cb0b6628 js: update Reveal to v3.8.0 and rename example slides as bundle 2019-04-09 19:18:43 +01:00
George Cushen
7467e65799 fix(widget): Hero text color when text_color_light = false 2019-04-07 20:01:12 +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
Jens True
b466f34bf9 i18n: add Danish translation (#1005) 2019-04-03 19:51:30 +01:00
George Cushen
6778929449 refactor: check admin created a homepage or give error 2019-03-31 19:50:26 +01:00
George Cushen
aa8b3f35ba feat(widget): add option to customize section spacing
Close #433
2019-03-24 19:24:58 +00:00
George Cushen
3fdddd7686 demo: document ability to auto update the copyright year
See #976
2019-03-24 19:03:09 +00:00
George Cushen
5358dd00ad feat(footer): add ability to auto update the copyright year
To use, add `{year}` to `Copyright` option in `config.toml`. Displays
current year.

Close #976
2019-03-24 18:57:04 +00:00
George Cushen
c27134a5c7 fix(widget): tag and category filters not working in Pages and Featured
Fix #989
2019-03-23 20:09:27 +00:00
George Cushen
ea4621aedb refactor: homepage sections as headless leaf nodes
See #970
2019-03-17 20:31:20 +00:00
Dongdong Tian
839e198c7f i18n: update Chinese translation (#979) 2019-03-16 12:19:17 +00:00
George Cushen
a554d5dc10 docs: edit features and update guide 2019-03-04 01:03:54 +00:00
George Cushen
a62c6bf01f style: don't color authors as links in Pages widget with Cite view
Authors are still clickable but colored the same as the rest of the
entry.

Only the publication title link is colored as a normal link.

See #950
2019-03-03 22:09:00 +00:00
George Cushen
177dd391d3 style(widget): improve appearance of Experience & Accomplishments
New mobile first approach improves style of widgets on small devices.

Close #860
2019-03-03 20:15:20 +00:00
Guansong Wang
e2274c6b35 fix: "See More" link in Pages widget not appearing
After the "Offset and Limit" section, `$query` would have length of `$items_count`, which makes `$count` always equal to `$items_count`. The later "if" condition for adding the "see all posts" link will never be met.

The fix is to record the length of `$query` into `$count` before any offset and limit.

See #963
2019-03-01 21:01:16 +00:00
George Cushen
de28ca4241 fix: citation view in Featured widget (#961) 2019-02-28 20:40:12 +00:00
Yaozhu Sun
f47640ebc9 fix: citation view in Pages widget (#961) 2019-02-28 20:37:45 +00:00
George Cushen
f01260371b fix: ed8f04e Pages and Featured widgets
Fix #721
2019-02-28 20:33:09 +00:00
George Cushen
d2a90467f3 bump version 2019-02-27 22:49:46 +00:00
Bertrand Thierry
ed8f04ea2f feat(widget): enable splitting Talks section into past and upcoming talks
See #721
2019-02-27 22:06:39 +00: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
2de0d5da7f feat(widget): replace Projects and Custom with Portfolio and Blank
Essentially, the Projects and Custom widgets have been renamed and their
front matter upgraded to be consistent with the new Pages and Featured
widgets.

Also, refactor the demo, changing the section order and converting the
Teaching section to a Demos section which can be used to walk the user
thought the available demos.

See #918
2019-02-27 20:58:00 +00:00
George Cushen
d821bfec76 style: improve contrast of links in dark sections 2019-02-24 22:11:40 +00:00
George Cushen
2e146eed9c feat: consolidate Featured Talks/Pubs widgets into Featured widget
See #918
2019-02-24 19:45:02 +00:00
gcushen
4a45b9003e demo: fix text_color_light 2019-02-24 02:58:26 +00:00
gcushen
2df001d05c demo: fix text_color_light 2019-02-24 02:58:08 +00:00
gcushen
c59f526ecd demo: fix text_color_light 2019-02-24 02:57:30 +00:00
George Cushen
9985bc5e89 feat: consolidate Recent Posts/Talks/Pubs widgets into Pages widget
BREAKING CHANGES: See issue below

See #918
2019-02-24 01:06:53 +00:00
Dominik Vogel
3eed9f56ad i18n: update DE (#954) 2019-02-23 21:47:47 +00:00
George Cushen
3462cadba1 demo: add gallery section 2019-02-20 17:46:08 +00:00
George Cushen
3ac394a58c feat(widget): apply a background color, gradient, or image to any widget
Also renames Hero Carousel widget to Slider.

BREAKING CHANGES:

- widget `[header]` options removed and replaced with `[background]`
- `hero_carousel` widget renamed to `slider`

Close #948
2019-02-19 13:11:55 +00:00
George Cushen
92c7617ace fix(widget): revert row-based project card view back to masonry 2019-02-18 20:28:49 +00:00
George Cushen
3944d35633 refactor: consolidate and simplify card views
- Consolidate the code for all card views into a single file
- `continue_reading` removed from i18n

See #918
2019-02-18 19:38:54 +00:00
George Cushen
1dc9c8d197 fix: do not load Fuse.js from CDN when using local assets
Fix #945
2019-02-18 18:10:40 +00:00
George Cushen
bf696662e5 feat(user): add index of authors
Close #943
2019-02-17 22:34:21 +00:00
George Cushen
cbeca239dc fix(talk): all_day option not working in list and compact views
Fix #940
2019-02-17 20:28:00 +00:00
George Cushen
e1bcd74ea2 feat(gallery): generate web-friendly thumbnails
Close #932
2019-02-17 18:18:04 +00:00
George Cushen
25bac3db27 demo: make usernames consistently lowercase 2019-02-17 13:01:26 +00:00
George Cushen
d7135a1b88 feat(widget): hero: multiple paragraphs, extra cta, note, & image
- Support multiple paragraphs
- Icon support for `[cta]` call-to-action button
- Add optional alternative call-to-action link `[cta_alt]`
- Add optional note underneath cta button
- Add optional image
- Refresh the demo's instance of the Hero widget

Close #935
2019-02-14 02:13:09 +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
188505b375 feat(pub): add search box to enable filtering by any attribute
Close #922
See #390
2019-02-13 01:21:18 +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
Dongdong Tian
624a5cb78f fix: *_format to *_view
This fixes 7c2a85c .

See #909
See #926
2019-02-10 15:58:39 +00:00
Dongdong Tian
2588ca95c8 i18n: update Chinese translation (#925) 2019-02-10 15:51:57 +00:00
George Cushen
5d48bc0150 bump version 2019-02-08 17:49:34 +00:00
George Cushen
09d4e07d4f feat(search): enable searching by author name or category
Also, attempt to increase relevancy of search results in general.

Close #921
2019-02-08 17:48:17 +00:00
George Cushen
a40a7ffe29 feat(widget): animate Tag Cloud 2019-02-08 00:41:27 +00:00
George Cushen
a4ffd6efc5 feat(widget): add css_class option to customize widget style
Allows user to customize the style of a particular widget using the CSS
plugin feature. For example, the background of a widget could be changed
to an image or gradient.

Close #322
2019-02-07 14:37:21 +00:00
George Cushen
58dd61b0e7 fix(widget): People widget - add authors to user account
- add `authors` to set username in user account and force generation
  of user profile page whether or not user has published content. This
  is particularly useful for linking users from the People widget.
- People widget: only link to users which have profile pages generated -
  prevents 404 error if user did not perform the point (1) above
- add i18n "user_profile_latest" to customize user profile text

Fix #274
2019-02-07 14:30:07 +00:00
George Cushen
7eb10f2b26 refactor: consolidate list views 2019-02-07 13:50:11 +00:00
George Cushen
8a3f75839a refactor: relLangURL no longer required in paginator
Hugo's template just uses `.URL`:
https://github.com/gohugoio/hugo/blob/master/tpl/tplimpl/embedded/templates.autogen.go

See #915
2019-02-07 12:34:44 +00:00
George Cushen
f40c63d7ac feat: add People widget 2019-02-05 21:08:40 +00:00
George Cushen
a7b10805bd update post archetype 2019-02-05 19:28:09 +00:00
George Cushen
34cf1f0957 fix: when toggling day/night mode, also toggle code highlighting theme
Fix case where code highlighting can be difficult to read after night
mode is toggled by user as the highlight theme remained unchanged.
2019-02-05 18:07:55 +00:00
Stefano Cecere
eb10c222cc i18n: update Italian translations (#914) 2019-02-05 12:43:19 +00:00
George Cushen
066e7ebcfb demo: add blog based on Jupyter notebook 2019-02-05 11:43:16 +00:00
Denis Rebaud
2838919415 i18n: update French translation for v4 (#905) 2019-02-04 22:18:08 +00:00
George Cushen
7c2a85c351 feat: improve listings
- link author profile pages in listings
- display author name (rather than username) in metadata
- refactor `list_format` to `view` and use new consistent mappings
- add `citation_style` in `params.toml`
- re-order Accomplishments widget in Demo
- make params/comments more consistent in all widget front matter
- Author page: don't show username if profile exists as that will
  already show the user's display name
- Publication card: move author and publication name to metadata bar to
  be consistent with other listings
- Remove portrait.jpg from static as it was duplicated for Demo author

BREAKING CHANGES: See issue below.

See #909
2019-02-04 22:14:28 +00:00
George Cushen
11a859dca2 fix: Hero and Carousel image path in edge cases
Fix #910
2019-02-04 01:37:42 +00:00
George Cushen
4c9c743ae6 chore: update demo URL
Also, fix Netlify ENV config
2019-01-29 15:05:15 +00:00
George Cushen
a19b8b8883 chore: add Netlify config to build demo site 2019-01-29 13:48:43 +00:00
George Cushen
8a9d7e01b1 chore: add Netlify config to build demo site 2019-01-29 13:02:32 +00:00
George Cushen
205a06bb42 chore: add Netlify config to build demo site 2019-01-29 12:36:30 +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
8a7c4eb2aa fix(nav): always right align search and dark mode icons
Also change nav links to be left aligned in the demo.
2019-01-22 18:35:53 +00: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
ae8a86a047 refactor: restructure config using Hugo v0.53 approach
BREAKING CHANGES
See issue below and v4 release note for details

See #867
2019-01-20 01:35:04 +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
ab7e896227 feat(user): add author profile system
- Add author taxonomy to config
- Restructure user data
- Add user profile pages
- Refactor author profile box
- Refactor author link in page metadata to point to author profile page
- Enable About widget to be re-used for different users

BREAKING CHANGES
See issue below and v4 release note for details

See #752
2019-01-20 00:10:03 +00:00
George Cushen
35d79b42a3 fix(widget): use absolute image path for Hero Carousel
relURL does not function properly in style tag under certain conditions
2019-01-19 20:42:52 +00:00
George Cushen
2cca75504c update logo icon 2019-01-19 20:20:29 +00:00
George Cushen
bc7e541f61 fix(shortcode): allow for multiple child elements in Alerts
Previously, alerts were designed just for a single child consisting of
a paragraph.

Now supports styling of multiple children including lists.

Fix #881
2019-01-15 18:30:02 +00:00
gcushen
85a12b0ad7
feat(widget): emojify About widget interests
Close #845
2019-01-15 17:42:08 +00:00
George Cushen
0592f83382 fix(search): include Algolia JS when engine set to Algolia
Fix #878
2019-01-15 15:10:13 +00:00
Daniel Antal
55e1d6a12c i18n: add Hungarian (#877) 2019-01-14 20:40:55 +00:00
George Cushen
b68a0995f6 fix: url_custom button height varies when using icons
Fix #872
2019-01-12 20:02:42 +00:00
George Cushen
512e2ffde4 fix(search): disable shortcuts when user is typing
Fix #875
2019-01-12 19:38:48 +00:00
David Alberto Montaño Fetecua
37cb6220fe i18n: update FR and ES translations (#871) 2019-01-08 21:19:43 +00:00
George Cushen
6cac50ecd6 bump version 2018-12-31 12:00:44 +00:00
George Cushen
3da446cf77 fix(widget): rename Accomplishments widget + use soft-hyphen 2018-12-31 11:55:14 +00:00
Mrinal Jain
ae9882de90 feat(widget): add Accomplishments widget
See #792
See #773
2018-12-31 00:47:22 +00:00
Ian Eve Perry
628d09d791 fix(widget): always right align dates in Experience widget
Dates in the experience widget don't currently right align if the location string is longer than the date string. This changes the widget so the dates are always right aligned.

See #858
2018-12-30 23:59:36 +00:00
Dominik Vogel
91e5e9fb10 i18n: update German translation (#847) 2018-12-28 21:27:33 +00:00
gcushen
afcf657f93
workaround TOML line break bug in Hugo v0.53
See #852
2018-12-28 01:05:20 +00:00
George Cushen
0312857779 fix(widget): make location optional
Fix #843
2018-12-18 22:25:28 +00:00
George Cushen
fbcb7f2761 feat(widget): restrict post filter to only one tag or category
Close #815

BREAKING CHANGES

Remove `tags_include` and `tags_exclude` from `home/posts.md`
Add `filter_tag` and `filter_category` to `home/posts.md`
2018-12-16 00:48:51 +00:00
George Cushen
5c0c7f5def feat(icon): update FA from 5.4.1 to 5.6.0 2018-12-12 16:55:02 +00:00
George Cushen
7aef1cdce9 fix(page): button urls broken for internal links on Windows
Fix #829
2018-12-05 00:06:46 +00:00
George Cushen
811b52f280 feat(page): improve featured image ratio on small screens 2018-12-04 23:36:24 +00:00
George Cushen
f2f3177d78 feat(widget): add appointment booking link to contact widget
Close #828

BREAKING CHANGE

Replace any `\n` with `\\` in the `address` field.
2018-12-03 17:47:34 +00:00
George Cushen
2bfa048699 bump version 2018-12-02 00:21:01 +00:00
George Cushen
d2330cb261 feat(theme): enable users to switch between day and night modes
Close #807
2018-12-02 00:17:35 +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
935e31470d fix: fix(sharing): use small Twitter card for small images
This commit fixes 929d500d44

Fix #813
2018-11-29 16:57:46 +00:00
George Cushen
929d500d44 fix(sharing): use small Twitter card for small images
Also, check for featured image and avatar image when computing optimal
image to use in Twitter card.

Fix #813
2018-11-29 16:32:27 +00:00
George Cushen
4018752dc8 fix(project): projects not listing child pages
Fix #800
2018-11-29 16:15:58 +00:00
Paulo Moreno
11c1ebe955 fix(i18n): fix Hero widget and search for multilingual sites
Fix #820
2018-11-29 12:18:45 +00:00
George Cushen
ddd8e9ad5d fix(search): fix layout on Safari/Webkit
Fix #825
2018-11-29 00:01:51 +00:00
George Cushen
cd05bec3be feat(linked data): improve itemtype for project showcase + pub. stream
Close #819
2018-11-25 22:30:08 +00:00
George Cushen
c1b2899f6a docs: add Project KickstartR to readme 2018-11-18 23:42:16 +00:00
George Cushen
07c9f4f387 feat(search): Add search shortcuts (/ and ESC)
* Press / to toggle search dialog
* Press ESC to close search dialog

See #784
2018-11-17 23:39:06 +00: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
3ea332ca67 refactor(js): shorten MathJax filename and minify + fingerprint assets
Remove fingerprinting from MathJax config JS to shorten its generated
filename. Reduces chance of JS filenames becoming too long for user's OS
to handle due to long Sha512 asset fingerprinting.

Minifies and fingerprints Academic's own JS for faster loading and to
prevent old versions getting cached by web browser.

Refactors Algolia search JS into its own file.

Close #768
See #794
2018-11-11 16:06:24 +00:00
George Cushen
911620a8f3 docs: link to Academic Scripts repo 2018-11-11 01:49:26 +00:00
George Cushen
d0154a840b Bump version 2018-11-11 01:45:08 +00:00
George Cushen
2ee38a83d7 docs: link to Academic Scripts repo 2018-11-11 01:40:19 +00:00
George Cushen
d01237d003 fix(search): add index page of docs to search index
Allows to search content on the main page of docs/tutorials/courses.

Previously, all docs pages except the main page were indexed.
2018-11-11 01:19:37 +00:00
George Cushen
68166bac4a feat(page): support preview_only in combination with header image
Enables use of featured image for thumbnails only with a full-width
header image `[header]` shown on the page itself.

See https://github.com/gcushen/hugo-academic/issues/728#issuecomment-436225586
See https://sourcethemes.com/academic/docs/managing-content/#featured-image
See #728
2018-11-10 17:42:12 +00:00
Dongdong Tian
3b4616e357 fix(i18n): update Chinese (#797) 2018-11-05 21:23:45 +00:00
George Cushen
c084f016ae fix(widgets): fix hero image path when canonifyurls=true 2018-11-05 21:16:29 +00:00
George Cushen
eb5c91f8f1 fix: feat(project): list associated posts
This commit fixes 3d9a1277a8

Fix #793
See #767
2018-11-04 17:51:06 +00:00
George Cushen
2eb58c08b7 Bump version 2018-11-04 00:41:33 +00:00
George Cushen
d930502a55 feat: add preview_only option for featured image
Add `preview_only = true` under `[image]` in a page's front matter to
only show featured image in page previews and not on the page itself.

Example: https://raw.githubusercontent.com/gcushen/hugo-academic/master/exampleSite/content/post/getting-started/index.md

Close #789
See #728
2018-11-03 23:42:15 +00:00
George Cushen
0ff174bbf4 feat(shortcodes): add support for image gallery in page bundle
To use:

1. Create a gallery album folder in page bundle
2. Add images to album folder
3. Paste `{{< gallery album="<ALBUM FOLDER>" >}}` in your page content

Close #786
2018-11-03 23:27:03 +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
c7f2d55c65 Set min_version to string rather than float
See https://github.com/gohugoio/hugo/issues/5399
2018-11-03 18:19:35 +00:00
Sun Yaozhu
4b5c97262c fix(widgets): respect the date_format option for experience widget (#783) 2018-11-03 18:09:39 +00:00
George Cushen
ca4fd7159d feat(widgets): do not require email if using Netlify contact form
Netlify routes messages from contact form to its admin panel, so no
email address is required.

By not requiring email in this case, it is not revealed to any spam bots
which might try to scrape a website's public Git repository.

Close #775
2018-11-03 17:26:27 +00:00
George Cushen
31eb870296 chore: require Hugo v0.50+
Hugo v0.50 fixes bug with using `hugo new` to create new pages

See #732
2018-11-03 13:13:23 +00:00
George Cushen
89247fa534 docs: add Patreon link 2018-11-02 22:29:16 +00:00
Carlos Cámara
35b552f213 i18n: fix Catalan translation (#779) 2018-11-02 18:30:19 +00:00
George Cushen
74212542b2 fix(profile): fix social link when mailto scheme is used
Fix #763
2018-10-28 16:19:00 +00:00
George Cushen
e7ed2608c3 fix(profile): fix social link when mailto scheme is used
Fix #763
2018-10-28 16:06:36 +00:00
George Cushen
8a4a302d47 fix(profile): fix social link when mailto scheme is used
Fix #763
2018-10-28 14:16:37 +00:00
George Cushen
75abb65a94 feat(talk): support YAML front matter for talks
Close #555
2018-10-28 01:17:05 +01:00
George Cushen
1290763945 feat(page): re-apply markdownify on author names
Close #761
2018-10-28 00:23:30 +01:00
George Cushen
e877046fa7 docs: update screenshot 2018-10-27 18:23:47 +01:00
George Cushen
9e49f64903 fix(css): fix project widget's simple mode when widget is renamed 2018-10-27 18:22:28 +01:00
George Cushen
ab20e8f9f2 refactor(js): use relative URL for Mathjax config JS
Works around potential multi-host asset Permalink bug in Hugo.

See #751
Close #757
2018-10-27 12:34:45 +01:00
George Cushen
fa5de9234d feat(profile): support [[params.social]] links to homepage sections
Enables using email icon to link to contact form.

Close #754
2018-10-25 20:22:03 +01:00
George Cushen
bbfd7e9439 feat(i18n): support multi-lingual multi-host (one baseURL per language)
Enables having a different sub-domain per language.

See https://gohugo.io/content-management/multilingual/#configure-multilingual-multihost

Close #751
2018-10-25 19:18:41 +01:00
George Cushen
5440c0eb11 fix(js): linking to a homepage section from another page
Links to a homepage section from another page could scroll to the wrong
location if the linked section occurred below a project widget.

Cause: did not take into account dynamically loaded project images.

See #754
2018-10-25 15:05:54 +01:00
George Cushen
2f9d2ab80f fix(css): contact widget style wasn't applied if widget was renamed 2018-10-25 14:21:49 +01:00
George Cushen
e79c1ee36a feat(pub/talk): make internal url_ links relative to their page bundle 2018-10-21 21:37:12 +01:00
George Cushen
bc04138f61 Bump version 2018-10-21 21:01:55 +01: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
Thom Wiggers
8d8cddfdb2 Load MathJax config without eval() (#735)
This allows stricter content security policies for 
`Content-Security-Policy` header.
2018-10-21 20:32:44 +01:00
Dominik Vogel
b7c4001ab0 fix(i18n): add missing German translations (#739) 2018-10-21 17:21:37 +01:00
George Cushen
b28d5fafe5 feat(meta): re-constrain reading time to just posts
Close #740
2018-10-21 01:06:43 +01: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
34deeedb07 feat(theme): add Apogee and Cupcake themes
- Improve button styles on dark themes
- Add to Readme and Getting Started post
2018-10-20 21:49:33 +01:00
George Cushen
c7ede46424 feat(widget): add optional contact form to contact widget
To use, set email form provider in the updated `contact.md`.

Close #713
2018-10-20 17:03:58 +01:00
George Cushen
5bea47a47a docs(example): edit example post 2018-10-18 23:12:38 +01:00
Thom Wiggers
edb547e64e Properly quote the Google Fonts URL (#736) 2018-10-18 22:23:48 +01:00
George Cushen
315fb47cf7 feat(pub): auto detect PDF and generate link
To automatically generate a PDF link for a publication, place a
PDF in your publication's own folder which has the same name as the
folder.
2018-10-17 22:30:50 +01:00
George Cushen
089d72ff62 feat(pub): convert citation system to use page bundles
Close #733

BREAKING CHANGE:

To create a publication cite link, place a `*.bib` file in a
publication's own folder (see Hugo's new Page Bundle feature)
2018-10-17 00:07:31 +01:00
George Cushen
061b56a088 dark theme: Fix contrast of muted text color 2018-10-14 02:08:26 +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
0b343e4599 Add featured image to detailed layout of pub/talk widgets
Close #708
2018-10-14 00:29:52 +01:00
Ryan
fbc294cdf2 Update Font Awesome to v5.4.1 (#731) 2018-10-13 23:46:08 +01:00
George Cushen
faa4812677 Add optional stream layout with featured image for publications + talks
- exampleSite: Add featured images to talks and publications
- exampleSite: Change default layouts to use stream layout

Close #718
2018-10-13 23:44:49 +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
2afcb642db widgets: Refactor hero
Compute image path outside of HTML style element due to Hugo limitation
with relURL
2018-10-13 21:13:32 +01:00
George Cushen
339b727152 accessibility: Add alt tag to avatar image
See #705
2018-10-13 02:42:09 +01:00
George Cushen
22dfd20af4 accessibility: Increase contrast
See #704
2018-10-13 02:39:32 +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
ca7f604f2e license: Update year 2018-10-12 00:59:34 +01:00
George Cushen
2a055ca847 Update Readme 2018-10-10 01:58:53 +01:00
Dongdong Tian
f78135f432 i18n: Update Chinese translation (#717) 2018-10-01 00:04:24 +01:00
George Cushen
0cd9c1d959 posts: Add featured image option and stream layout for widget
To use:

1. Set `list_format = 2` in `content/home/posts.md`
2. Refactor a post named `X.md` to `content/post/X/index.md`
3. Add an image named `featured.*` to your post's new folder
2018-09-30 23:53:24 +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
9bcecc7b25 shortcodes: Update figure and video to support files within page dir
To reference file in page folder, simply use
`{{< figure src="a.png" >}}`

To reference file from `static/img/` media library, set `library=1`
in shortcode. E.g. `{{< figure src="a.png" library=1 >}}`

See #708
2018-09-23 23:10:34 +01:00
George Cushen
f754e4c7e5 CSS: Prevent Hugo encoding Google Fonts and fix docs sidebar toggle bg
Close #707
2018-09-23 18:28:50 +01:00
George Cushen
09c3164f51 docs layout: Fix responsiveness of sidebar over range of resolutions
Fix #698
2018-09-23 00:52:56 +01:00
George Cushen
6746342f2d posts: Make using content template (e.g. hugo new) optional 2018-09-21 00:08:25 +01:00
George Cushen
cfbcfe948c project widget: Make filter toolbar responsive
Close #697
2018-09-20 00:18:47 +01:00
Daniel Roy
9c0d14cda4 Support custom site description and thumbnail image for SEO and sharing (#696)
* Add  `description` to config
* Add `sharing_image` to config
2018-09-18 19:53:13 +01:00
George Cushen
d2d2f09f4c docs layout: Fix case where side nav links can overlap 2018-09-16 20:16:15 +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
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
George Cushen
a86e35245e about widget: Refactor avatar (#683) 2018-09-15 18:24:15 +01:00
Andrew Fowlie
02d84dff98 publication: Add optional DOI link (#677) 2018-09-15 17:49:13 +01:00
George Cushen
7919efd7a3 JS: Fix Algolia template and refactor Hero 2018-09-15 17:26:56 +01:00
George Cushen
6ef19085d4 Refactor most absolute URLs to relative URLs
See #683
2018-09-15 13:58:29 +01:00
George Cushen
6c40356235 CSS: Fix Bootstrap 4 grid system for Safari
Close #690
Also, see #571
2018-09-13 21:36:24 +01:00
George Cushen
9306b834ab docs layout: Support nested docs folders
See #682
2018-09-11 22:12:49 +01:00
Sergi Almacellas Abellana
e363d9a1db i18n: Add Catalan translation (#676) 2018-09-11 21:44:22 +01:00
Stefano Cecere
48c7924745 i18n: Update Italian translation (#685) 2018-09-11 21:41:42 +01:00
George Cushen
99e0edf9bb config: Allow twitter social icon to be commented out
Breaking change:
`twitter` option added to `config.toml` for social sharing metadata
2018-09-10 19:50:54 +01:00
George Cushen
304211dba0 Support multiple instances of docs layout with their own menus
Close #682
2018-09-10 19:34:06 +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
George Cushen
f45e2c0ca5 about widget: Fix avatar not showing in some cases 2018-09-09 01:18:46 +01:00
Prateek Kumar
965a64ffaa Migrate from Bootstrap v3 to v4 (#571) 2018-09-08 22:50:36 +01:00
George Cushen
3eb8be428b project widget: Fix filter for case where tag is not CSS class name
Fix #660
2018-09-07 01:02:16 +01:00
George Cushen
099a13b688 talks: Parse Markdown in authors param (#673) 2018-09-07 00:34:37 +01:00
George Cushen
7b639f107c widgets: Upgrade to Font Awesome 5
See #659
2018-09-03 01:06:18 +01:00
George Cushen
934003ae94 Update theme metadata 2018-09-02 18:40:22 +01:00
Conor Anderson
a1989ea25c Upgrade from Font Awesome v4 to v5 (#659)
Require Hugo v0.48+
2018-09-01 18:10:23 +01:00
George Cushen
c375fb41ef featurette widget: Add support for title and subtitle
Close #664
2018-08-28 23:54:11 +01:00
George Cushen
36084c5607 search: refactor so that only one index is generated 2018-08-27 22:31:21 +01:00
Kazuki Matsumaru
47c30556f9 i18n: Add Japanese translation (#654) 2018-08-26 00:20:50 +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
fc399910b1 exampleSite: Add examples of selected talks and feature/skill widgets 2018-08-12 23:00:02 +01:00
George Cushen
5115b1fa23 Store theme version in a data file
Close #593
2018-08-12 22:04:49 +01:00
George Cushen
a11d8843bb Add built-in search engine
Complement existing integration of Algolia search engine with
alternative option of built-in search engine based on Fuse.

Setting `engine = 1` in `config.toml` will enable the built-in solution.

Close #635
2018-08-12 15:39:55 +01:00
George Cushen
3e9f7dab03 Add script to run demo 2018-08-11 23:47:04 +01:00
George Cushen
d886800a9f style: Fix tag color and search box in dark theme
Close #632
2018-08-11 12:44:23 +01:00
George Cushen
f1a32966f3 talk widget: Add exclude_selected option to hide selected talks
Close #623
2018-08-10 20:16:01 +01:00
George Cushen
beaa10b674 widgets: Add carousel
Close #622
2018-08-09 22:37:44 +01:00
George Cushen
51af6be900 search: Do not automatically focus cursor on search box 2018-08-09 21:33:11 +01:00
George Cushen
65391b18f5 search: Make full page content searchable (not just summary etc.) 2018-08-09 21:26:34 +01:00
Dominik Schürmann
c777bbdbad Allow a summary to be specified for widget pages (#611)
Enable `summary = "your page summary"` to be set in a widget page's `_index.md`.

This metadata will then be used to enrich SEO, social sharing, and Academic's search.
2018-08-01 23:33:17 +01:00
George Cushen
6f4159976a about: Fix avatar sometimes not showing in Hugo v0.45+ 2018-08-01 22:45:40 +01:00
Dominik Schürmann
af6d0bc278 Exclude all widgets from the sitemap (#613)
Previously, widgets outside of the `home` folder may have appeared in the sitemap.
2018-08-01 22:37:03 +01:00
George Cushen
46ba1bb8e3 Fix highlight style not loaded and fix console error when no search box
Close #614
2018-08-01 22:21:04 +01:00
George Cushen
efc201cf0c Attempt to load local copy of third party JS/CSS assets if available
Allows to create an entirely offline site.

To use, concatenate vendor JS to `static/js/vendor/main.min.js` and
concatenate vendor CSS to `static/css/vendor/main.min.css`.

See #489
2018-07-29 12:52:07 +01:00
Prateek Kumar
3c6bd89a1e Fix metadata for case of multiple authors (#606) 2018-07-29 11:22:21 +01:00
George Cushen
54dac71022 Rename sri.toml to assets.toml 2018-07-24 21:15:22 +01:00
George Cushen
bb3adc1781 Add search engine widget
Close #169
2018-07-23 19:25:39 +01:00
George Cushen
3b15254f18 metadata: If set, use the summary parameter for og:description
Close #518
2018-07-23 12:45:43 +01:00
George Cushen
4661fbcce6 projects widget: Add support for tags containing spaces
Fix case where tag may contain spaces

Allow `tag` to be set directly to the name of an existing tag,
e.g. `tag = "Deep Learning"` rather than requiring the CSS class name
like `tag = ".deep-learning"`.

Close #602
2018-07-23 12:24:17 +01:00
George Cushen
8aea0ea015 Add support for Hugo v0.45
Add support for breaking changes in Hugo v0.45 (arguments changed for
`GetPage`).

Close #601
2018-07-23 01:33:31 +01:00
George Cushen
d84b961f81 exampleSite: Fix project link 2018-07-18 19:17:41 +01:00
George Cushen
d567fd9533 exampleSite: Remove custom tag page demo
Fix #594 - error was caused by case mismatch between case of tag in
content front matter and case of tag in name of custom tag page folder.

Rather than rename the tag folder from 'academic' to 'Academic' to match
the tag case in the content front matter, let's just delete it for now.

Close #594
2018-07-18 19:17:13 +01:00
George Cushen
11a5d1bf50 gdocs shortcode: Support all doc types (Slides, Docs, Sheets, etc.)
- Shortcode syntax changed to: {{< gdocs src="https://..." >}}
 - Use with Google Docs `embed` URL rather than `link` URL.

 Close #544
2018-07-15 19:43:27 +01:00
Serge Bibauw
2bc968b9c5 projects: Fix list of talks (#548)
- Sort list of talks by `time_start` rather than `date` (consistent with home page widget)
- Fix bug that made publications duplicate in talks list when there was no talk in a project
2018-07-15 18:01:59 +01:00
George Cushen
c42f4a8cf2 config: Document how to link to a resume/CV
Close #478
2018-07-15 15:21:44 +01:00
George Cushen
da15b18f26 config: Fix broken link to date formatting documentation
Close #590
2018-07-15 14:35:09 +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
96e0f91bff List all projects at /project/ URL
Since `/project/` URL appears in sitemap if site contains projects,
list projects at the URL rather than a blank page. Hence, improve SEO.

Close #368
2018-07-15 02:36:58 +01:00
George Cushen
74b0b6f508 shortcodes: Add list_tags and list_categories
To use:

`{{< list_tags >}}` to provide a list of linked tags.
`{{< list_categories >}}` to provide a list of linked categories.
2018-07-15 02:25:09 +01:00
George Cushen
2abaa8454e exampleSite: Add note on TOML syntax
Close #542
2018-07-07 21:26:59 +01:00
George Cushen
fbeea76362 privacy: Show link to privacy policy in page footer 2018-07-07 21:19:55 +01:00
George Cushen
669ad912d3 tags: Change style to Bootstrap label
Avoid confusion between tags and link buttons such as those on project
or publication pages.

Close #588
Inspired by #549
2018-07-07 20:52:19 +01:00
George Cushen
a555dd792b mathjax: Improve handling of long equations
* Use automatic linebreak feature instead of CSS overflow scrolling
* Disable mathjax notifications
* Highlight any undefined macros within equations
* Load output processors with `-full` option rather than on demand
* Update MathJax version

Fix #496
Fix #586
2018-07-07 19:45:35 +01:00
George Cushen
8d596ffed2 Perform check that site is correctly configured
Display informative error message if user attempted to clone/download
Academic without following all the installation steps.

Close #491
2018-06-29 22:26:56 +01:00
George Cushen
9e65c45d23 posts: Add option to display author names
Close #220
2018-06-29 19:23:12 +01:00
George Cushen
9b1be1019d mathjax: Horizontally scroll long equations
Close #496
2018-06-29 18:31:48 +01:00
George Cushen
b2d3b54766 Change talk icon from comment-o to calendar
Close #527
2018-06-29 17:58:03 +01:00
George Cushen
bf01c80d08 Link cookie consent "learn more" to privacy policy
To enable, create `privacy.md` in `content/` and add your privacy
policy.

Close #537
2018-06-29 10:36:07 +01:00
Dongdong Tian
01f57b7e91 Bump minimum version of Hugo to 0.38 (#581)
Recent commit 7f744f0 used `.Site.IsServer`, which is added in Hugo v0.38
2018-06-28 21:15:49 +01:00
Prateek Kumar
7f744f022b Disable Google Analytics in development mode (#569) 2018-06-28 11:32:30 +01:00
Prateek Kumar
bcd109acc5 posts: Improve microdata for date published and date modified (#570) 2018-06-28 11:29:12 +01:00
Stefan Neuhaus
ea98bc1f8c docs: Fix link to Blackfriday documentation (#551) 2018-06-03 19:41:40 +01:00
George Cushen
1a37b61971 exampleSite: Use full filenames for projects parameter 2018-05-18 01:34:05 +01:00
George Cushen
8a883d4d40 Provide friendlier error messages
In case of broken `projects` link in talk/publication front matter

See #534
2018-05-18 01:24:12 +01:00
George Cushen
9842f517dd partials: Fix case where .Permalink may be called on nil
See #534 and #532
2018-05-08 22:31:41 +01:00
George Cushen
6988b4074b header: Fix OG metadata for image path when URL contains sub-dirs 2018-05-08 22:26:18 +01:00
George Cushen
737470c027 about widget: Fix metadata for avatar (#533) 2018-05-08 21:40:16 +01:00
Iuro Nascimento
26930f8794 Update Academicons to v1.8.6 (#525)
New icons supported include Lattes.
2018-05-01 22:19:40 +01:00
Pedro J. Ortiz
fe8ea7b4e1 Apply site color theme to cookie consent banner (#529) 2018-05-01 22:16:05 +01:00
Pedro J. Ortiz
ed5a5186b2 i18n: Update French and Spanish translations (#526)
* Add cookie consent translations
* Add missing translations for previous, next, and figure
2018-05-01 14:02:48 +01:00
George Cushen
7f25b7463e shortcode: Add Google Docs
Enables easily embedding Google Slides.

To use, copy and paste the share link from Google Docs in the form:
`{{< gdocs "https://..." >}}`
2018-04-22 12:25:51 +01:00
Dongdong Tian
99c7074795 i18n: Update Chinese translation (#523) 2018-04-22 12:15:30 +01:00
George Cushen
e6b2f1d285 Add hl shortcode for highlighting key phrases
To use: `{{< hl >}}highlighted quote{{< /hl >}}`
2018-04-22 00:08:56 +01:00
George Cushen
26cf02513b Add .gitignore 2018-04-21 23:36:34 +01:00
George Cushen
09674dd538 figure shortcode: Fix caption style
See #328
2018-04-21 23:19:43 +01:00
George Cushen
6e2d51058f Fix GetPage call when tag/category contains a space
See #521 and #464
2018-04-21 13:33:38 +01:00
George Cushen
7cc95ba252 config: Add hasCJKLanguage and enableGitInfo options 2018-04-21 12:59:18 +01:00
George Cushen
c22d653c43 Add Privacy Pack
- To enable, set `privacy_pack = true` in `config.toml`
- Show a cookie consent message to visitors
- Anonymize IP in Google Analytics (if enabled)

See #507
2018-04-21 12:07:57 +01:00
George Cushen
f23526e55d figure shortcode: Support i18n and unnumbered captions
- Figures are now unnumbered by default
- To number a figure, use the form:
  - `{{< figure src="image.jpg" title="Caption" numbered="true" >}}`
- Add i18n translation for "Figure" in captions
- Update English and Chinese language packs

Close #328 and #513
2018-04-21 10:35:15 +01:00
George Cushen
9fa9d56eb3 Add support for uglyURLs = true
Close #464
2018-04-19 21:10:56 +01:00
George Cushen
c1fd6ad526 pub widget: Fix spacing around year in detailed list view
Ensure there is always a space between publication and year.

Fix #520
2018-04-19 20:02:48 +01:00
George Cushen
c586b640f9 exampleSite: Provide full date-time in content front matter
Work-around Hugo bug.

See https://github.com/sourcethemes/academic-kickstart/pull/1
2018-04-16 02:45:22 +01:00
George Cushen
3eb8355dc8 post widget: Add optional simple listing format
See #470
2018-04-16 02:36:20 +01:00
George Cushen
a5a0037c68 Prevent wrapping in code blocks
Use horizontal scrolling for long lines of code rather than wrapping.

Fix #467
2018-04-16 01:25:11 +01:00
George Cushen
793d91e5c6 Wrap long words in headings to prevent overlapping content
Fix #481
2018-04-16 01:03:51 +01:00
George Cushen
f6f182d42d dark theme: Add support for MathJax zoom
Fix #486
2018-04-16 00:56:33 +01:00
George Cushen
a552c1e298 List most recent content on 404 error page
Fix #492
2018-04-16 00:47:26 +01:00
Muhammad Aswan Syahputra
7fca79bc0c i18n: Add Bahasa Indonesia translation (#495) 2018-03-31 22:17:53 +01:00
Vassilis Kehayas
b95142db09 i18n: Add Greek translation (#502) 2018-03-28 01:35:35 +01:00
Benasse
2b1a42e7e0 about widget: Center multi-line social icons
Center social icons when there is more than one line.

See #494
2018-03-24 15:12:41 +00:00
George Cushen
0a46c954b1 Fix fdfc961
See #461 and #488
2018-03-13 00:20:32 +00:00
Alex Hogen
fdfc961f34 Support external header images
Close #461 and #488
2018-03-13 00:13:48 +00:00
Dang-Khoa Le Tan
917d4b5126 i18n: Update Vietnamese translation (#480)
* Support Academic v2.1
* Improve translated text
2018-03-01 19:11:44 +00:00
George Cushen
66b71fa2f6 Add video shortcode and remove image shadow 2018-01-28 01:14:44 +00:00
George Cushen
b02f5eceda Apply card style to detailed list view and refactor 2018-01-21 22:34:32 +00:00
George Cushen
9e8cb50889 post: Refactor code and remove unused class 2018-01-21 22:23:51 +00:00
George Cushen
c6c9768fd4 publication: Make title width consistent with other pages (#372) 2018-01-21 21:58:24 +00:00
George Cushen
4dda8bc80a docs: Fix link to latest release notes 2018-01-20 15:19:35 +00:00
George Cushen
7997025d9f docs: Fix link to latest release 2018-01-20 15:12:08 +00:00
George Cushen
2417b124ac docs: Fix Markdown bullets 2018-01-20 15:11:28 +00:00
George Cushen
c5e3b1f6e8 archetypes: Update inline docs to match pub. types in config 2018-01-20 15:09:22 +00:00
Dongdong Tian
188757285f Fix project links for multilingual sites
Use `relLangURL` rather than `relURL` for project links.

See #442
2018-01-14 13:02:48 +00:00
George Cushen
04cdf9c827 exampleSite: Reduce demo posts to just a copy of Readme
No longer attempt to duplicate content from documentation website. Just
link to it.

Replace Readme's theme table with new gallery shortcode.
2018-01-13 15:32:30 +00:00
George Cushen
72c793b179 Add gallery shortcode (#398) 2018-01-13 15:19:59 +00:00
George Cushen
0c635d1a82 Update style of next/prev section pager nav (#393) 2018-01-13 02:52:20 +00:00
Elton Chen-Yu Ho
a42037eadd Fix error when menu URL shorter than 4 characters is set
Fix the error when calling slicestr to slice out-of-range bounds

See #439
2018-01-08 19:07:40 +00:00
George Cushen
0514bbd48d Add featurette/blurb widget
Example use: https://raw.githubusercontent.com/sourcethemes/academic-www/master/content/home/features.md

Close #424
2018-01-05 19:42:16 +00:00
Dongdong Tian
4167651b58 project widget: Enable content from any folder to be displayed
The widget is no longer limited to only displaying content from `content/project/` folder.

See #429
2018-01-04 22:34:04 +00:00
beling
bf0b777172 i18n: Add missing phrases to Polish translation (#431) 2018-01-04 22:02:29 +00:00
George Cushen
9bf2689b24 docs: Update Readme 2018-01-04 01:54:24 +00:00
George Cushen
ad19aa52d3 header: Improve metadata for page description
See discussion in #428
2018-01-02 16:31:14 +00:00
George Cushen
09daca6b7d Add support for Chrome theme color
See https://developers.google.com/web/fundamentals/design-and-ux/browser-customization/#meta_theme_color_for_chrome_and_opera

Close #402
2017-12-31 12:05:28 +00:00
zaazi
f72cced47c post: Improve Microdata metadata (#407) 2017-12-30 15:14:31 +00:00
George Cushen
4856bfedef Add PR template 2017-12-30 13:40:58 +00:00
George Cushen
588142274b publication: Make publication name optional
Close #423
2017-12-29 19:13:30 +00:00
George Cushen
cf6d923c90 multilingual: Fix styles.css link when defaultContentLanguageInSubdir = true
Fix #412
2017-12-17 20:08:33 +00:00
George Cushen
ed61956cfa talk: Sort and group talks by time_start instead of date published
* Affects the two types of talk widgets and talk archive
* Requires `time_start` to be present in front matter of all talks

Fix #409
2017-12-17 19:36:11 +00:00
Israel Blancas
18080b1137 i18n: Fix Spanish typos (#403) 2017-12-12 00:35:49 +00:00
George Cushen
9d7f32f7ff readme: Improve installation methods and show 1950s theme 2017-12-03 18:47:31 +00:00
George Cushen
69fa815757 themes: Add 1950s theme 2017-12-03 18:44:59 +00:00
George Cushen
5f8e04b83b themes: Support background option 2017-12-03 18:43:47 +00:00
George Cushen
2b77316077 readme: Improve installation method 2017-11-30 09:16:25 +00:00
George Cushen
9c68f32c96 readme: Update 2017-11-29 00:04:15 +00:00
George Cushen
230de763ad Update theme metadata to workaround bug in Hugo
See https://github.com/gohugoio/hugo/issues/4127
2017-11-27 20:33:29 +00:00
George Cushen
64eae9571e readme: Improve installation method 2017-11-24 02:25:31 +00:00
George Cushen
8800882700 navbar: Fix scrollspy not highlighting active menu item
Fix commit 524b562.
2017-11-24 01:27:38 +00:00
George Cushen
9e14c8a74e publication archive: Fix error when no publications exist 2017-11-23 01:05:10 +00:00
George Cushen
71feb4ed7e head: Enable scrollspy support for fixed table of contents 2017-11-19 16:36:03 +00:00
George Cushen
524b562ea6 navbar: Open external links in new tab 2017-11-17 20:10:32 +00:00
George Cushen
87d24014c8 Support postfix HTML in addition to prefix HTML for navbar items
See https://gohugo.io/variables/menus/
2017-11-17 09:06:13 +00:00
George Cushen
f850046dc6 Support postfix HTML in addition to prefix HTML for navbar items
See https://gohugo.io/variables/menus/
2017-11-17 00:38:25 +00:00
George Cushen
eaccab614e publication widget: Add option to exclude selected publications
Add `exclude_selected = false` option to frontmatter of publication
widget.

See #385
2017-11-16 22:30:52 +00:00
George Cushen
b6e1dd2710 Enable main menu to be left aligned 2017-11-16 21:53:45 +00:00
Igor Gilitschenski
84eb4a6e30 publication: Make abstract optional (#382) 2017-11-14 20:28:34 +00:00
George Cushen
086441ff3e Fix web manifest
See #312
2017-11-11 19:27:14 +00:00
George Cushen
baad8468cc Fix web manifest for sub-dirs
See #312
2017-11-11 19:09:37 +00:00
George Cushen
b9ee3b4a6f Add web manifest
Close #312
2017-11-11 19:04:26 +00:00
George Cushen
09b91845a0 themes: Add dark theme
To use, set `color_theme = "dark"` in `config.toml`.

See #299 and #139
2017-11-11 17:55:42 +00:00
George Cushen
ee63fde14e post: Document image preview and caption options 2017-11-11 15:13:10 +00:00
Alexander
5db7a8f5c4 Add hreflang metadata to page header (#374) 2017-11-09 21:36:26 +00:00
Alexander Minges
d48bcdf30a Add OpenStreetMap-based alternative to Google Maps (#360)
* add leaflet JS as alternative to gmap JS
* changes to `config.toml`:
  * add `zoom = 15`
  * add `map = 0` (`map` sets the map provider - refer to comments)
  * change `google_maps_api_key` to `map_api_key`
2017-11-02 21:14:26 +00:00
George Cushen
05fa83afa7 docs: Add FAQ 2017-11-02 20:52:16 +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
ec4fe2eb29 about widget: Add support for linking to forum/chat/mailing-list
* Example: `discussion = { name = "Discuss", url = "https://discourse.gohugo.io" }`
  can be added to `[params]` section of `config.toml`
* Add noopener to links that open in new tab

See #351
2017-10-29 21:23:47 +00:00
George Cushen
0e57c732fe config: Re-enable RSS output by default
Close #346
2017-10-29 01:06:23 +00:00
Thomas Mieling
18979019f9 widgets: Fix project filter buttons (#362) 2017-10-28 15:52:20 +01:00
George Cushen
70ea150aeb docs: Update 📚 2017-10-26 22:56:06 +01:00
Sandra Parsick
acbeb3da92 Add option to hide talk time (#350)
* Add `[params.talks]` section to config
2017-10-26 22:15:54 +01:00
Adrien nayrat
73f8fac2b5 Add Twitter card and Open Graph metadata (#358) 2017-10-26 22:06:32 +01:00
Serge Bibauw
45b2e054e7 Add time_format variable for customizing talk time (#353)
* Add `time_format` variable to `config.toml`
   * Enables customizing talk time between am/pm or 24h format
* Correct Go date format URL in documentation
2017-10-26 19:33:02 +01:00
George Cushen
f3384d45ad publication: Fix bold font not being applied to metadata (Fix #345)
* Fix `pub` CSS scope
2017-10-22 20:48:34 +01:00
George Cushen
d55dea2df7 docs: Update 📚 2017-10-22 16:46:52 +01:00
George Cushen
29ba4f7ada widgets: Add active option to activate/deactivate widgets 2017-10-22 16:05:19 +01: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
229629b772 publication: Allow date format to be changed (#336)
* Add `[params.publications]` section to `config.toml`
2017-10-22 15:12:11 +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
Dongdong Tian
c07e3e5db0 talks: Fix time format (#298 #334) 2017-10-22 11:48:08 +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
Serge Bibauw
6f4b140790 i18n: Update French and Spanish translations (#337) 2017-10-21 17:38:52 +01:00
Dongdong Tian
a747680aee i18n: Update Chinese translation (#333) 2017-10-20 19:13:15 +01:00
George Cushen
d8577538ca Improve 404 error page (Close #332)
* Internationalize the page (string translation)
  * Add 3 new language variables: page_not_found, 404_recommendations,
    projects
* Show recent talks and projects
* For each content type, show most recent 5 items
* Only show content headings if content exists for each type of content
2017-10-19 22:13:18 +01:00
George Cushen
e87fde0d23 Fix last commit 5c2824fabf 2017-10-19 20:40:18 +01:00
George Cushen
5c2824fabf Markdownify the interests list and talk abstracts (Close #297)
* About widget interests list
* Talk abstracts
* Breaking change: math in talk abstracts may require extra escaping
* Contact widget: support multiline address
* Talk page: Add noopener to _blank link target
2017-10-19 20:33:39 +01:00
George Cushen
b1c975fa4c project widget: Fix long title appearing on new line (Fix #324)
* Only affects simple list mode, not card mode
2017-10-19 19:58:16 +01:00
George Cushen
3b58e38c5b js: Only load Google Maps scripts when required (Close #317) 2017-10-19 19:14:54 +01:00
George Cushen
3b76068360 Fix error if static/files/citations/ folder doesn't exist (Fix #329)
* Require Hugo 0.30.2+
2017-10-19 19:00:27 +01:00
George Cushen
41d0123b54 config: Add option to display logo instead of title in nav bar (#214)
* Add `logo = ""` to `[params]` config
2017-10-17 01:59:51 +01:00
George Cushen
0fb54898df config: Document popular blackfriday options (#316) 2017-10-17 01:22:50 +01:00
Ronny Chevalier
bf483fcd48 header: Do not generate RSS links if RSS disabled (Fix #318) 2017-10-16 19:29:35 +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
477bdf4094 pub widget: Show authors when in simple mode 2017-10-16 00:47:44 +01:00
George Cushen
466632ac4d Use noopener for external URLs that open in new tabs (Close #286) 2017-10-16 00:45:45 +01:00
George Cushen
2605164743 custom widget: Support full width no-title mode 2017-10-15 17:38:31 +01:00
George Cushen
f640bc4250 contact widget: Add option to show Google Maps (Close #301)
* Add `google_maps_api_key = ""` option to config
* Add `latitude = "37.4275"` option to config
* Add `longitude = "-122.1697"` option to config
2017-10-15 06:26:04 +01:00
George Cushen
a1b681758e publications: Add APA style + Change list_format (Close #305 #296)
* Add APA citation style
* Change `list_format` in pub. widgets and pub. `_index.md` archive
  * New options: 0 = Simple, 1 = Detailed, 2 = APA, 3 = MLA
* Change default `list_format` in exampleSite
* Link title in publication list items
* Open most related links (e.g. PDF) in new tab
2017-10-15 04:18:12 +01:00
George Cushen
e70dd994d5 docs: Correct 'Create a widget page' 2017-10-15 04:02:20 +01: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
ff2690fcb8 widgets: Add Hero widget (#99) 2017-10-15 02:23:07 +01:00
George Cushen
cf0e271482 docs: Add Widget Page docs (#300) 2017-10-15 01:09:42 +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
25baf85bca navbar: Hide mobile toggle button if there are no menu items (#307) 2017-10-13 23:20:17 +01:00
George Cushen
8d1fe7bd79 tags: Support uppercase in tag names (#308) 2017-10-13 22:57:49 +01:00
George Cushen
488a1a7f1c project widget: Fix error when not using any filters (Fix #306) 2017-10-11 20:06:09 +01:00
George Cushen
f752b362f0 staticref shortcode: Fix formatting by removing whitespace (Fix #295) 2017-10-08 12:56:39 +01:00
Martin G
2e3e8b7e31 docs: Update to add solutions to unexpected Mathjax behaviors (#292) 2017-10-07 21:55:03 +01:00
Thomas Mieling
e8cfcabb76 widgets: Enable reuse of project widget (Close #100)
* Replace ids by classes
* Adapt click functions for filter links to filter only in the
relevant widget
* Hide project filter buttons, when there is only one
2017-10-07 21:25:50 +01:00
George Cushen
143576bc99 staticref shortcode: Add "newtab" option to open link in new tab 2017-10-07 20:26:21 +01:00
George Cushen
7f9b8acbb2 Fix case where two navbar items can become highlighted (Fix #290) 2017-10-06 13:49:26 +01:00
George Cushen
abf0f67925 readme: Add theme previews 2017-10-04 01:05:21 +01:00
George Cushen
a83605a660 fonts: Update Classic to use original fonts + Add Playfair theme (#289)
- Update Classic font theme to use original Academic fonts
- Add new Playfair font theme
2017-10-03 21:12:15 +01:00
George Cushen
e7fa40b1c6 Fix theme system 2017-10-03 20:06:12 +01:00
George Cushen
48945c6b80 pub widget: Add filter for publication type (Close #217) 2017-10-01 02:01:24 +01:00
George Cushen
d371607122 projects widget: Fix items overlapping when in list view (Fix #71) 2017-10-01 00:32:20 +01:00
George Cushen
2c74ad3947 talk archive: display listings consistent with talk widget (Close #184)
- talk widget: Change `detailed_list = false` option to `list_format = 0`
- Update docs
2017-10-01 00:10:38 +01:00
George Cushen
f42cfe7d1a post archive: display listings consistent with posts widget (Close #262) 2017-09-30 23:21:13 +01:00
George Cushen
b031608ee4 about widget: Allow for multiple organizations (Close #132)
- Remove `organization` and `organization_url` options from config
- Add `organizations = [ {name="Org Name", url=""} ]`
- Continue to support legacy options
- Only show `role` if it is set
2017-09-30 22:50:58 +01:00
George Cushen
32252083fa Improve versioning and SRI for dependencies
- Parameterize JS and CSS versions (no longer hardcoded)
- Highlight.js version moved from `config.toml` to `data/sri.toml`
- SRI applied to Highlight.js
2017-09-30 21:23:37 +01:00
Dan Cardy
4e5994a43d Update JS libraries (#282)
* Remove disused tweenMax and scrollToPlugin
* Update imagesLoaded & jQuery
2017-09-30 20:18:15 +01:00
George Cushen
6270d6e4a0 Add estimated reading time to post metadata
- Set `reading_time = false` under `[params]` config to disable
2017-09-30 19:55:38 +01:00
George Cushen
34b9cf573c Update docs 2017-09-30 19:29:29 +01:00
George Cushen
69beed33f3 themes: Add Coffee 2017-09-30 18:42:45 +01:00
George Cushen
4cc8bb337b about widget: Change class name to work around uBlock bug (Close #276) 2017-09-30 16:29:58 +01:00
George Cushen
66ca3fca75 Add theme system
- Add `color_theme` option to config
- Add `font` option to config
- Add 3 themes
- Add 2 font styles
- Add documentation to Getting Started post
2017-09-30 16:26:19 +01:00
George Cushen
aa224c04a0 Update docs 2017-09-28 01:24:08 +01:00
George Cushen
44611c17b9 share: Optimize link order 2017-09-25 19:33:13 +01:00
George Cushen
865f39f450 Improve compatibility with Blogdown 2017-09-25 01:59:48 +01:00
George Cushen
586a7e17d5 talks widget: Support header image (Close #105) 2017-09-25 01:47:58 +01:00
George Cushen
03bf79122f publications widget: Fix detail link 2017-09-25 01:43:30 +01:00
George Cushen
9760e0dc2a posts widget: Fix filter in case of multiple instances 2017-09-25 00:15:01 +01:00
George Cushen
19d069d9fb exampleSite: Update widget weight for demo 2017-09-24 23:06:40 +01:00
George Cushen
80e833c5e9 posts widget: Add filter to exclude tags (Close #170)
* Change `tags` option to `tags_include`
* Add `tags_exclude` option
2017-09-24 23:00:25 +01:00
George Cushen
690ed4d314 Make pagination language independent 2017-09-20 23:33:12 +01:00
George Cushen
e6d4bd3e5f widgets: Add tag cloud 2017-09-20 23:19:28 +01:00
George Cushen
fcdf9b887f publications: Add filter for year (Close #171) 2017-09-19 23:07:56 +01:00
George Cushen
3cb84281d8 project widget: Enable changing default filter (#88)
Use `filter_default = 0` to specify index of default filter
2017-09-19 20:24:24 +01:00
George Cushen
8168053656 publications: Support classic citation format (#235)
* Breaking Change: boolean `detailed_list` has changed to
  integer `list_format` parameter - refer to latest exampleSite
2017-09-19 01:25:22 +01:00
Jordan Stanway
405058b8d9 publications: Use consistent listing format across pages (Fix #148) 2017-09-18 01:58:19 +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
779e5d830b Improve archetypes (#265)
* Support Hugo 0.24+ in default and home types
* Comment and tidy
2017-09-10 17:02:37 +01:00
Dongdong Tian
fd713f1192 i18n: Update Chinese translation (#263) 2017-09-05 00:03:13 +01:00
George Cushen
a2b482dc10 Add staticref shortcode for linking files + update docs (#236) 2017-09-03 17:06:06 +01:00
George Cushen
6fab4bc3bc docs: Add toc shortcode 2017-09-03 15:23:30 +01:00
George Cushen
06dc780e6c Add shortcode for generating table of contents (#258) 2017-09-03 15:07:38 +01:00
George Cushen
97590cb12e posts: Support lastmod param to show date last modified 2017-09-03 14:35:13 +01:00
Jason Song
3ebbf25425 Remove redundant disqus_thread div (#241) 2017-09-03 14:15:49 +01:00
John Sangwon Suh
c7eb184fe6 i18n: Add Korean translation (#257) 2017-09-03 12:13:25 +01:00
1372 changed files with 85508 additions and 5571 deletions

View file

@ -10,8 +10,11 @@ indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.toml]
max_line_length = 100
[*.yaml]
max_line_length = 150
[*.md]
trim_trailing_whitespace = false
[{**/layouts/shortcodes/*.html, **/layouts/_default/_markup/*.html}]
insert_final_newline = false

6
.eslintignore Normal file
View file

@ -0,0 +1,6 @@
**/*.min.js
**/_vendor/
**/vendor/
public/
**/assets/dist/**
**/pagefind/**

20
.eslintrc.yml Normal file
View file

@ -0,0 +1,20 @@
env:
browser: true
es2021: true
jquery: true
node: true
extends:
- 'eslint:recommended'
- 'prettier' # Prevent Prettier conflicts
parserOptions:
ecmaVersion: 12
sourceType: module
rules: {}
globals:
hljs: true
imagesLoaded: true
Isotope: true
L: true # Global from maps library
GMaps: true
Fuse: true
instantsearch: true

2
.github/FUNDING.yml vendored Normal file
View file

@ -0,0 +1,2 @@
github: gcushen
custom: https://hugoblox.com/sponsor/

120
.github/ISSUE_TEMPLATE/bug-report.yml vendored Normal file
View file

@ -0,0 +1,120 @@
name: 🐛 Bug Report
description: Something isn't working as expected? Report your bugs here.
labels: ['needs triage']
body:
- type: markdown
attributes:
value: |
# Welcome 👋
Thanks for taking the time to fill out this bug report.
We use GitHub Issues for project management, **NOT for support**.
🚑 For **help** and **questions**, search if your question has already been asked on the community **[chat](https://discord.gg/z8wNYzb)** and **[forum](https://github.com/HugoBlox/hugo-blox-builder/discussions)**, and if not, ask your question there instead.
Bug reports also shouldn't be used for support requests about a specific problem in your site, only if the issue can be reproduced on a fresh Hugo Blox Builder template.
Also, you can search and browse the extensive [Hugo Blox Builder](https://docs.hugoblox.com) and [Hugo](https://gohugo.io/documentation/) **documentation**.
For questions on _RStudio/Blogdown_, please reach out to the [RStudio/Blogdown community](https://github.com/rstudio/blogdown).
Please fill out each section below. This info allows Hugo Blox Builder contributors to diagnose (and fix!) your issue as quickly as possible. Otherwise we might need to close the issue (e.g. when it's missing clear steps to reproduce).
Also, please verify that your issue is present in the very latest `main` version.
- type: checkboxes
attributes:
label: Preliminary Checks
description: Please make sure that you verify each checkbox and follow the instructions for them.
options:
- label: "This issue is not a duplicate. Before opening a new issue, please search existing issues: https://github.com/HugoBlox/hugo-blox-builder/issues?q=is%3Aissue"
required: true
- label: "This issue is not a question, feature request, or anything other than a bug report directly related to Hugo Blox Builder. Please post those things on Discord: https://discord.gg/z8wNYzb"
required: true
- type: textarea
attributes:
label: Description
description: Describe the issue that you're seeing.
placeholder: Be as precise as you can. Feel free to share screenshots, videos, or data from the devtools of your browser.
validations:
required: true
- type: input
id: reproduction-link
attributes:
label: Reproduction Link
placeholder: "https://github.com/username/repository-name/"
description: |
Link to a minimal reproduction of the issue (GitHub repository).
**Ideally, create a minimal reproduction of the issue on a fresh template rather than linking to your site's repository: https://hugoblox.com/hugo-themes/
validations:
required: true
- type: textarea
attributes:
label: Steps to Reproduce
description: Clear steps describing how to reproduce the issue.
value: |
1.
2.
3.
...
validations:
required: true
- type: textarea
attributes:
label: Expected Result
description: Describe what you expected to happen.
validations:
required: true
- type: textarea
attributes:
label: Actual Result
description: Describe what actually happened.
validations:
required: true
- type: textarea
attributes:
label: What Hugo Module versions does your site use?
description: Paste your `go.mod` here.
validations:
required: true
- type: dropdown
id: os
attributes:
label: What operating system(s) are you seeing the problem on?
multiple: true
options:
- Windows
- macOS
- Android
- iOS
- Linux
validations:
required: true
- type: dropdown
id: browser
attributes:
label: What browser(s) are you seeing the problem on?
multiple: true
options:
- Chrome
- Safari
- Firefox
- Microsoft Edge
- Other
- type: input
id: hb-tpl
attributes:
label: Which Hugo Blox template are you using?
description: 'For example, a template from https://hugoblox.com/templates/'
placeholder: 'e.g., Academic CV'
validations:
required: true
- type: input
id: version-hugo
attributes:
label: What version of Hugo are you using?
description: 'Run `hugo version` or check your `netlify.toml`'
placeholder: 'Hugo Extended 0.101.0'
validations:
required: true

14
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View file

@ -0,0 +1,14 @@
blank_issues_enabled: false
contact_links:
- name: Questions
url: https://discord.gg/z8wNYzb
about: Chat live with the Hugo Blox Builder community on Discord.
- name: Discussions
url: https://github.com/HugoBlox/hugo-blox-builder/discussions
about: Discuss Hugo Blox Builder on the GitHub Discussions forum
- name: Troubleshooting Guide
url: https://docs.hugoblox.com/reference/troubleshooting/
about: Solve common issues fast.
- name: Documentation
url: https://docs.hugoblox.com/
about: Review the documentation

View file

@ -0,0 +1,28 @@
name: 🚀 Feature request
description: Suggest an improvement.
labels: [proposal]
assignees: []
body:
- type: checkboxes
attributes:
label: Prerequisites
description: Take a minute to help our open source contributors.
options:
- label: I have [searched](https://github.com/HugoBlox/hugo-blox-builder/issues?q=is%3Aissue) for duplicate or closed feature requests
required: true
- label: I am mindful of the project [scope](https://github.com/HugoBlox/hugo-blox-builder/blob/main/CONTRIBUTING.md#scope)
required: true
- type: textarea
id: proposal
attributes:
label: Proposal
description: Provide detailed information for what we should add, including relevant links to screenshots, code, or live demos whenever possible.
validations:
required: true
- type: textarea
id: motivation
attributes:
label: Motivation and context
description: Tell us why this change is needed or helpful, and what problems it may help solve.
validations:
required: true

11
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View file

@ -0,0 +1,11 @@
### Purpose
Describe the purpose of this change. If there is an existing issue that is resolved by this pull request, please reference it in the form `Fixes #1234` where 1234 is the relevant issue number.
### Screenshots
If this is a GUI change, try to include screenshots of the change. If not, please delete this section.
### Documentation
If this is an enhancement, link to the relevant page on the documentation site and describe the necessary changes.

BIN
.github/media/academic.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 KiB

BIN
.github/media/sharing.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 KiB

10
.github/media/sponsors/netlify.svg vendored Normal file
View file

@ -0,0 +1,10 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="147" height="40">
<radialGradient id="a" cy="0%" r="100.11%" gradientTransform="matrix(0 .9989 -1.152 0 .5 -.5)">
<stop offset="0" stop-color="#20c6b7"/>
<stop offset="1" stop-color="#4d9abf"/>
</radialGradient>
<g fill="none" fill-rule="evenodd">
<path fill="#0e1e25" d="m53.37 12.978.123 2.198c1.403-1.7 3.245-2.55 5.525-2.55 3.951 0 5.962 2.268 6.032 6.804v12.568h-4.26v-12.322c0-1.207-.26-2.1-.78-2.681-.52-.58-1.371-.87-2.552-.87-1.719 0-3 .78-3.84 2.338v13.535h-4.262v-19.02h4.016zm24.378 19.372c-2.7 0-4.89-.852-6.567-2.557-1.678-1.705-2.517-3.976-2.517-6.812v-.527c0-1.898.365-3.595 1.096-5.089.73-1.494 1.757-2.657 3.078-3.49 1.321-.831 2.794-1.247 4.42-1.247 2.583 0 4.58.826 5.988 2.478 1.41 1.653 2.114 3.99 2.114 7.014v1.723h-12.4c.13 1.57.652 2.812 1.57 3.726s2.073 1.371 3.464 1.371c1.952 0 3.542-.79 4.77-2.373l2.297 2.198c-.76 1.136-1.774 2.018-3.042 2.645-1.269.627-2.692.94-4.27.94zm-.508-16.294c-1.17 0-2.113.41-2.832 1.23-.72.82-1.178 1.963-1.377 3.428h8.12v-.317c-.094-1.43-.474-2.51-1.14-3.243-.667-.732-1.59-1.098-2.771-1.098zm16.765-7.7v4.623h3.35v3.164h-3.35v10.617c0 .726.144 1.25.43 1.573.286.322.798.483 1.535.483a6.55 6.55 0 0 0 1.49-.176v3.305c-.97.27-1.905.404-2.806.404-3.273 0-4.91-1.81-4.91-5.431v-10.776h-3.124v-3.164h3.122v-4.623h4.261zm11.137 23.643h-4.262v-27h4.262zm9.172 0h-4.262v-19.02h4.262zm-4.525-23.96c0-.655.207-1.2.622-1.634.416-.433 1.009-.65 1.78-.65.772 0 1.368.217 1.79.65.42.434.63.979.63 1.635 0 .644-.21 1.18-.63 1.608-.422.428-1.018.642-1.79.642-.771 0-1.364-.214-1.78-.642-.415-.427-.622-.964-.622-1.608zm10.663 23.96v-15.857h-2.894v-3.164h2.894v-1.74c0-2.11.584-3.738 1.753-4.887 1.17-1.148 2.806-1.722 4.91-1.722.749 0 1.544.105 2.386.316l-.105 3.34a8.375 8.375 0 0 0 -1.631-.14c-2.035 0-3.052 1.048-3.052 3.146v1.687h3.858v3.164h-3.858v15.856h-4.261zm17.87-6.117 3.858-12.903h4.542l-7.54 21.903c-1.158 3.199-3.122 4.799-5.893 4.799-.62 0-1.304-.106-2.052-.317v-3.305l.807.053c1.075 0 1.885-.196 2.429-.589.543-.392.973-1.051 1.289-1.977l.613-1.635-6.664-18.932h4.595z"/>
<path fill="url(#a)" fill-rule="nonzero" d="m28.589 14.135-.014-.006c-.008-.003-.016-.006-.023-.013a.11.11 0 0 1 -.028-.093l.773-4.726 3.625 3.626-3.77 1.604a.083.083 0 0 1 -.033.006h-.015c-.005-.003-.01-.007-.02-.017a1.716 1.716 0 0 0 -.495-.381zm5.258-.288 3.876 3.876c.805.806 1.208 1.208 1.355 1.674.022.069.04.138.054.209l-9.263-3.923a.728.728 0 0 0 -.015-.006c-.037-.015-.08-.032-.08-.07s.044-.056.081-.071l.012-.005zm5.127 7.003c-.2.376-.59.766-1.25 1.427l-4.37 4.369-5.652-1.177-.03-.006c-.05-.008-.103-.017-.103-.062a1.706 1.706 0 0 0 -.655-1.193c-.023-.023-.017-.059-.01-.092 0-.005 0-.01.002-.014l1.063-6.526.004-.022c.006-.05.015-.108.06-.108a1.73 1.73 0 0 0 1.16-.665c.009-.01.015-.021.027-.027.032-.015.07 0 .103.014l9.65 4.082zm-6.625 6.801-7.186 7.186 1.23-7.56.002-.01c.001-.01.003-.02.006-.029.01-.024.036-.034.061-.044l.012-.005a1.85 1.85 0 0 0 .695-.517c.024-.028.053-.055.09-.06a.09.09 0 0 1 .029 0l5.06 1.04zm-8.707 8.707-.81.81-8.955-12.942a.424.424 0 0 0 -.01-.014c-.014-.019-.029-.038-.026-.06 0-.016.011-.03.022-.042l.01-.013c.027-.04.05-.08.075-.123l.02-.035.003-.003c.014-.024.027-.047.051-.06.021-.01.05-.006.073-.001l9.921 2.046a.164.164 0 0 1 .076.033c.013.013.016.027.019.043a1.757 1.757 0 0 0 1.028 1.175c.028.014.016.045.003.078a.238.238 0 0 0 -.015.045c-.125.76-1.197 7.298-1.485 9.063zm-1.692 1.691c-.597.591-.949.904-1.347 1.03a2 2 0 0 1 -1.206 0c-.466-.148-.869-.55-1.674-1.356l-8.993-8.993 2.349-3.643c.011-.018.022-.034.04-.047.025-.018.061-.01.091 0a2.434 2.434 0 0 0 1.638-.083c.027-.01.054-.017.075.002a.19.19 0 0 1 .028.032l8.999 13.059zm-14.087-10.186-2.063-2.063 4.074-1.738a.084.084 0 0 1 .033-.007c.034 0 .054.034.072.065a2.91 2.91 0 0 0 .13.184l.013.016c.012.017.004.034-.008.05l-2.25 3.493zm-2.976-2.976-2.61-2.61c-.444-.444-.766-.766-.99-1.043l7.936 1.646a.84.84 0 0 0 .03.005c.049.008.103.017.103.063 0 .05-.059.073-.109.092l-.023.01zm-4.056-4.995a2 2 0 0 1 .09-.495c.148-.466.55-.868 1.356-1.674l3.34-3.34a2175.525 2175.525 0 0 0 4.626 6.687c.027.036.057.076.026.106-.146.161-.292.337-.395.528a.16.16 0 0 1 -.05.062c-.013.008-.027.005-.042.002h-.002l-8.949-1.877zm5.68-6.403 4.489-4.491c.423.185 1.96.834 3.333 1.414 1.04.44 1.988.84 2.286.97.03.012.057.024.07.054.008.018.004.041 0 .06a2.003 2.003 0 0 0 .523 1.828c.03.03 0 .073-.026.11l-.014.021-4.56 7.063c-.012.02-.023.037-.043.05-.024.015-.058.008-.086.001a2.274 2.274 0 0 0 -.543-.074c-.164 0-.342.03-.522.063h-.001c-.02.003-.038.007-.054-.005a.21.21 0 0 1 -.045-.051l-4.808-7.013zm5.398-5.398 5.814-5.814c.805-.805 1.208-1.208 1.674-1.355a2 2 0 0 1 1.206 0c.466.147.869.55 1.674 1.355l1.26 1.26-4.135 6.404a.155.155 0 0 1 -.041.048c-.025.017-.06.01-.09 0a2.097 2.097 0 0 0 -1.92.37c-.027.028-.067.012-.101-.003-.54-.235-4.74-2.01-5.341-2.265zm12.506-3.676 3.818 3.818-.92 5.698v.015a.135.135 0 0 1 -.008.038c-.01.02-.03.024-.05.03a1.83 1.83 0 0 0 -.548.273.154.154 0 0 0 -.02.017c-.011.012-.022.023-.04.025a.114.114 0 0 1 -.043-.007l-5.818-2.472-.011-.005c-.037-.015-.081-.033-.081-.071a2.198 2.198 0 0 0 -.31-.915c-.028-.046-.059-.094-.035-.141zm-3.932 8.606 5.454 2.31c.03.014.063.027.076.058a.106.106 0 0 1 0 .057c-.016.08-.03.171-.03.263v.153c0 .038-.039.054-.075.069l-.011.004c-.864.369-12.13 5.173-12.147 5.173s-.035 0-.052-.017c-.03-.03 0-.072.027-.11a.76.76 0 0 0 .014-.02l4.482-6.94.008-.012c.026-.042.056-.089.104-.089l.045.007c.102.014.192.027.283.027.68 0 1.31-.331 1.69-.897a.16.16 0 0 1 .034-.04c.027-.02.067-.01.098.004zm-6.246 9.185 12.28-5.237s.018 0 .035.017c.067.067.124.112.179.154l.027.017c.025.014.05.03.052.056 0 .01 0 .016-.002.025l-1.052 6.462-.004.026c-.007.05-.014.107-.061.107a1.729 1.729 0 0 0 -1.373.847l-.005.008c-.014.023-.027.045-.05.057-.021.01-.048.006-.07.001l-9.793-2.02c-.01-.002-.152-.519-.163-.52z" transform="translate(-.702)"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

BIN
.github/media/starters.webp vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

BIN
.github/media/themes.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
.github/media/write-from-phone.gif vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 419 KiB

71
.github/workflows/build-test-site.yaml vendored Normal file
View file

@ -0,0 +1,71 @@
name: Continuous Integration
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
# node-version: [18.x]
steps:
- uses: actions/checkout@v4
with:
submodules: true # Fetch any Git submodules (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v2
with:
version: 8
run_install: |
- recursive: false
args: [--frozen-lockfile]
# - name: Install JS dependencies
# run: rm -rf node_modules && pnpm install --frozen-lockfile
- name: Check for linting errors
run: pnpm run lint:js # TODO: also lint styles again once new rule errors resolved
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.136.5'
extended: true
- name: Build
run: hugo --minify
working-directory: test
# format:
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# # Make sure the actual branch is checked out when running on pull requests
# ref: ${{ github.head_ref }}
#
# - name: Prettify code
# uses: creyD/prettier_action@v3.1
# with:
# prettier_options: '--write blox-tailwind/*.{css,js,json,md,scss} blox-tailwind/**/*.{css,js,json,md,scss}' # Match package.json
# prettier_version: '2.2.1' # Match package.json
# commit_message: 'refactor: format code'
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

59
.github/workflows/split-packages.yaml vendored Normal file
View file

@ -0,0 +1,59 @@
name: 'Package Splitter'
on:
push:
branches:
- main
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
jobs:
packages_split:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# define package to repository map
package:
- local_path: 'starters/academic-cv'
split_repository: 'theme-academic-cv'
- local_path: 'starters/resume'
split_repository: 'theme-resume'
- local_path: 'starters-bootstrap/markdown-slides'
split_repository: 'theme-markdown-slides'
- local_path: 'starters/blog'
split_repository: 'theme-blog'
- local_path: 'starters/documentation'
split_repository: 'theme-documentation'
- local_path: 'starters-bootstrap/portfolio'
split_repository: 'theme-portfolio'
- local_path: 'starters-bootstrap/course'
split_repository: 'theme-online-course'
- local_path: 'starters/link-in-bio'
split_repository: 'theme-link-in-bio'
- local_path: 'starters-bootstrap/research-group'
split_repository: 'theme-research-group'
- local_path: 'starters-bootstrap/second-brain'
split_repository: 'theme-second-brain'
- local_path: 'starters/landing-page'
split_repository: 'theme-landing-page'
steps:
- uses: actions/checkout@v3
# step if no tag is pushed
- if: "!startsWith(github.ref, 'refs/tags/')"
uses: "symplify/monorepo-split-github-action@v2.3.0"
with:
# ↓ split "packages/<package-name><package-name>" directory
package_directory: '${{ matrix.package.local_path }}'
# ↓ into https://github.com/HugoBlox/<package-name> repository
repository_organization: 'HugoBlox'
repository_name: '${{ matrix.package.split_repository }}'
# ↓ the user signed under the split commit
user_name: "Splitter Bot"
user_email: "no.reply@hugoblox.com"

39
.github/workflows/stale.yml vendored Normal file
View file

@ -0,0 +1,39 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *'
permissions:
contents: write # only for delete-branch option
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: |
This issue is stale because it has not had any recent activity. The resources of the project maintainers are limited, and so we are asking for your help.
If this is a **bug** and you can still reproduce this error on the <code>main</code> branch, consider contributing a Pull Request with a fix.
If this is a **feature request**, and you feel that it is still relevant and valuable, consider contributing a Pull Request for review.
This issue will automatically close soon if no further activity occurs. Thank you for your contributions.
stale-pr-message: |
This PR is stale because it has not had any recent activity. The resources of the project maintainers are limited, and so we are asking for your help.
If you feel that the PR is still relevant in the latest release, consider making the PR easier to review and finding developers to help review the PR.
Please be _mindful_ that although we encourage PRs, we cannot expand the scope of the project in every possible direction. There will be requests that don't make the roadmap.
This PR will automatically close soon if no further activity occurs. Thank you for your contributions.
days-before-stale: 30
days-before-close: 5
stale-issue-label: stale
stale-pr-label: stale
exempt-issue-labels: 'keep,enhancement,bug,documentation'
exempt-pr-labels: 'keep,enhancement,bug,documentation'

21
.gitignore vendored Normal file
View file

@ -0,0 +1,21 @@
# IDE specific
.idea/
.vscode/
# Jupyter
.ipynb_checkpoints/
# Node
node_modules/
# Hugo
.hugo_build.lock
go.sum
resources/
public/
# Mac
.DS_Store
# Test
test/go.sum

14
.prettierignore Normal file
View file

@ -0,0 +1,14 @@
_vendor/
vendor/
blox-bootstrapassets/css/libs/
public/
resources/
*.html
blox-bootstrapassets/css/reveal.css
blox-bootstrapassets/scss/main.scss
blox-bootstraplayouts/index.json
blox-bootstraplayouts/index.webmanifest

17
.prettierrc.js Normal file
View file

@ -0,0 +1,17 @@
'use strict';
module.exports = {
bracketSpacing: false,
singleQuote: true,
jsxBracketSameLine: true,
trailingComma: 'all',
printWidth: 120,
overrides: [
{
files: ['*.html'],
options: {
parser: 'go-template',
},
},
],
};

9
.stylelintignore Normal file
View file

@ -0,0 +1,9 @@
**/*.min.css
**/vendor/
**/_vendor/
**/libs/
**/dist/
public/
blox-bootstrap/assets/scss/main.scss
blox-bootstrap/assets/css/reveal_custom.css

25
.stylelintrc.yaml Normal file
View file

@ -0,0 +1,25 @@
# PREVIOUS PLUGINS - no longer needed now porting from Bootstrap to Tailwind
#plugins:
# - stylelint-scss
extends:
- stylelint-config-standard
- stylelint-config-prettier
# PREVIOUS EXTENDS - no longer needed now porting from Bootstrap to Tailwind
# - stylelint-config-standard-scss
# - stylelint-config-prettier-scss
rules:
comment-empty-line-before: null # Allow more compact comments
property-no-vendor-prefix: null # Necessary unless postcss prefix
value-no-vendor-prefix: null # Necessary unless postcss prefix
at-rule-no-unknown: null # Use PostCSS "at" rules
# PREVIOUS RULES - no longer needed now porting from Bootstrap to Tailwind
# at-rule-no-unknown: null # Use SCSS "at" rules
# scss/at-rule-no-unknown: true # Use SCSS "at" rules
# no-descending-specificity: null # Todo: remove once investigated/resolved
# color-function-notation: null # Todo: refactor code
# alpha-value-notation: null # Todo: refactor code
# number-max-precision: null # Todo: refactor code
# font-family-no-missing-generic-family-keyword:
# - true
# - ignoreFontFamilies:
# - Font Awesome 5 Free

5
CODE_OF_CONDUCT.md Normal file
View file

@ -0,0 +1,5 @@
# Code of Conduct
We want to foster a positive, inclusive, and welcoming environment 💜
We expect you to follow our [Code of Conduct](https://docs.hugoblox.com/reference/contribute/) to fulfil this goal.

164
CONTRIBUTING.md Normal file
View file

@ -0,0 +1,164 @@
# Contributing to Hugo Blox Builder
Thanks for being interested in contributing! Were so glad you want to help!
We want contributing to Hugo Blox to be fun, enjoyable, and educational for anyone and everyone. All contributions are welcome, including new plugins (such as new widgets, shortcodes, theme packs, and language packs), templates, features, documentation as well as updates and tweaks, blog posts, YouTube tutorials, live streaming customizations, meetups, and more.
## Where to Start
Join the **Contributing** channel on the **[community Discord](https://discord.gg/z8wNYzb)**.
## General ways to help
Whether or not you're a developer, there are plenty of non-technical ways that you can help. We always need help with:
- Helping the Hugo Blox community via the live [chat](https://discord.gg/z8wNYzb) and [forum](https://github.com/HugoBlox/hugo-blox-builder/discussions)
- Investigating and reviewing open [Issues](https://github.com/HugoBlox/hugo-blox-builder/issues) and [Pull Requests](https://github.com/HugoBlox/hugo-blox-builder/pulls)
- Influence the roadmap! Give a thumbs up 👍 to upvote a feature request you would like to use
- Improving the [documentation](https://docs.hugoblox.com/) and writing tutorials
- Just click the _Edit_ button at the bottom of pages or open an issue with your proposed improvement
- Testing and quality assurance, such as checking the latest version of the templates work as you expect and fixing any dead-links etc.
- Translating the Hugo Blox templates or the Hugo Blox documentation
- Hosting local Hugo Blox themed events or meetups
- Promoting Hugo Blox to others by blogging, vlogging, code streaming, talking etc.
### For technical contributions
Repository structure:
- modules
- The components and layouts which form the Hugo Blox page building framework that the templates depend on
- scripts
- A collection of scripts for helping maintain the repository
- starters
- The collection of starter templates (aka Hugo themes)
- To contribute an improvement to a starter template, make your changes to the relevant template within this folder. **Do not submit PRs to the dedicated template repositories as they are read-only.**
- test
- a minimal site that is built by the CI on every commit to help test PRs
#### What are some good issues to contribute to?
If you're a developer looking to contribute, but you're not sure where to begin, check out the [help wanted](https://github.com/HugoBlox/hugo-blox-builder/labels/help%20wanted) label on Github, which contains issues which need some love.
#### How can I propose an improvement?
If you have a straightforward bug fix or improvement, feel free to contribute it in a [Pull Request](https://github.com/HugoBlox/hugo-blox-builder/pulls) for the community to review.
If you have an idea for a new feature, please start by [searching the issues](https://github.com/HugoBlox/hugo-blox-builder/issues) to check that the feature has not already been suggested and then suggest it by [opening a new issue](https://github.com/HugoBlox/hugo-blox-builder/issues/new/choose), as adding new features to Hugo Blox first requires some analysis around the design and spec.
Please be mindful of the project [scope](#scope).
#### How can I contribute an improvement?
Learn [how to contribute code on Github](https://codeburst.io/a-step-by-step-guide-to-making-your-first-github-contribution-5302260a2940).
**⚡️ To make quick and easy contributions, you can browse the repository on GitHub and edit your changes in GitHub's online editor. GitHub will then open a Pull Request (PR) for your changes to be reviewed by the community. ⚡️**
Otherwise, for larger changes, you can edit locally on your computer in your favorite editor, such as VSCode:
**Download the repo**
Fork (copy) the repo on GitHub and then clone (download) your fork to your computer:
```sh
git clone https://github.com/<YOUR_USERNAME>/hugo-blox-builder.git
```
**View a template**
[Install Yarn](https://yarnpkg.com/), the project's build system if necessary.
Then choose the starter template you wish to view, such as _minimal_:
```sh
yarn view:local academic-cv
```
Note that Hugo Server can occasionally stop working after changes are made (sometimes showing unrelated errors). If this happens, stop Hugo (Control-C) and restart it with the `yarn view:local ...` command above.
**Implement your improvements**
Implement you changes and then check for any linting or formatting issues.
Code linting and formatting form part of the Continuous Integration process to help catch bugs and code issues in contributions.
Contributors can also run the flow on their fork of the "Hugo Blox Builder" repo when making contributions (you'll need Node and Yarn to run):
```sh
yarn install
yarn run lint
yarn run format
```
**Open a Pull Request with your changes**
Use git to push (upload) your changes to GitHub and then open a Pull Request (PR) at https://github.com/HugoBlox/hugo-blox-builder/pulls
Please be mindful of the project [scope](#scope).
### Contribute Blox
[Create and publish your own blox](https://github.com/HugoBlox/create-blox)
### Contribute a shortcode
[Create and publish your own shortcode](https://github.com/HugoBlox/create-shortcode)
### Contribute a language pack
To contribute a **new language pack** or an improvement to a language pack, refer to the [language pack guide](https://docs.hugoblox.com/reference/language/#create-or-modify-a-language-pack). Once created, [fork Hugo Blox Builder](https://github.com/HugoBlox/hugo-blox-builder), place your language pack in `blox-tailwind/i18n/`, add the name of the language to `blox-tailwind/data/i18n/language.yaml`, and open a Pull Request on Github with these two files.
### Contribute a theme pack
[View the guide](https://docs.hugoblox.com/getting-started/customize/#appearance) to contributing a color and font theme pack.
### Contribute a template
Consider duplicating a bare-bones template, such as the [Link In Bio](https://github.com/HugoBlox/hugo-blox-builder/tree/main/starters/link-in-bio) folder, and building up your own template using the Hugo Blox. Reach out on the **Contributing** channel in Discord to submit your template.
### Contribute to the Publication importer
To contribute to **Hugo Academic CLI**, the automatic publication and blog post importer, refer to [its dedicated Github repository](https://github.com/GetRD/academic-file-converter) and Issue queue.
## Become a backer
To help us develop this free software sustainably under the open source license, we ask all individuals and businesses that use it to help support its ongoing maintenance and development via sponsorship:
- ☕️ [**Donate a coffee**](https://github.com/sponsors/gcushen?frequency=one-time)
- ❤️ [**Become a sponsor and unlock awesome rewards**](https://hugoblox.com/sponsor/)
## Best practices
To create a consistent experience for all contributors and help prevent bugs, we have some best practices.
### Conventional Commits Specification
Please follow the [Conventional Commits Specification](https://www.conventionalcommits.org/en/v1.0.0/).
For example:
- new feature: `feat: add the X parameter`
- bug fix: `fix: typo in implementation of X parameter`
- docs: `docs: document the X parameter`
- style: `style: change font color from black to blue`
- build-related: `chore: rebuild JS assets`
### Linting and formatting
```sh
yarn install
yarn run lint
yarn run format
```
## Scope
Please be _mindful_ that although we encourage feature requests, we cannot expand the scope of the project in every possible direction. There will be feature requests that don't make the roadmap.
Every feature requires effort not just to analyse the requirements, design it, implement it, test it, document it, merge it, write release notes for it, and release it, but also to continuously support users with it and maintain it (fixing and refactoring the feature as the project and its dependencies evolve).
The more regular active volunteers (rather than one-off contributors) we have supporting users and maintaining the project, the more feasible it becomes to expand the scope of the project.
The project's scope also has to be constrained so that it doesn't get too complex and unwieldy, from an architectural perspective, a testing perspective, and from a usability perspective.
Plugins (widgets, shortcodes, theme packs, language packs, and third-party JavaScript integrations) as well as templates allow the community to add major features without needing to contribute to Hugo Blox itself.

View file

@ -1,6 +1,6 @@
The MIT License (MIT)
Copyright (c) 2016 George Cushen
Copyright (c) 2016-present George Cushen (https://georgecushen.com/)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in

125
README.md
View file

@ -1,82 +1,113 @@
# Academic: the personal website framework for [Hugo](https://gohugo.io)
[**中文**](./README.zh.md)
**Academic** is a framework to help you create a beautiful website quickly. Perfect for personal, student, or academic websites. [Check out the latest demo](https://sourcethemes.com/academic/) of what you'll get in less than 10 minutes.
<p align="center"><a href="https://hugoblox.com/templates/" target="_blank" rel="noopener"><img src="./.github/media/sharing.png" alt="Hugo Blox Builder"></a></p>
[![Screenshot](https://raw.githubusercontent.com/gcushen/hugo-academic/master/academic.png)](https://github.com/gcushen/hugo-academic/)
[![Get Started](https://img.shields.io/badge/-Get%20started-ff4655?style=for-the-badge)](https://hugoblox.com/templates/)
[![Discord](https://img.shields.io/discord/722225264733716590?style=for-the-badge)](https://discord.com/channels/722225264733716590/742892432458252370/742895548159492138)
[![GitHub Sponsors](https://img.shields.io/github/sponsors/gcushen?label=%E2%9D%A4%EF%B8%8F%20sponsor&style=for-the-badge)](https://github.com/sponsors/gcushen)
[![Twitter Follow](https://img.shields.io/twitter/follow/GetResearchDev?label=Follow%20on%20Twitter&style=for-the-badge)](https://twitter.com/GetResearchDev)
[![GitHub followers](https://img.shields.io/github/followers/gcushen?label=Follow%20on%20GH&style=for-the-badge)](https://github.com/gcushen)
Key features:
# [Hugo Blox Builder](https://hugoblox.com): easy, all-in-one website builder
- Easily manage your homepage, blog posts, publications, talks, and projects
- Configurable widgets available for Biography, Publications, Projects, News/Blog, Talks, and Contact
- Need a different section? Just use the Custom widget!
- Write in [Markdown](https://sourcethemes.com/academic/post/writing-markdown-latex/) for easy formatting and code highlighting, with [LaTeX](https://en.wikibooks.org/wiki/LaTeX/Mathematics) for mathematical expressions
- Social/academic network linking, [Google Analytics](https://analytics.google.com), and [Disqus](https://disqus.com) comments
- Responsive and mobile friendly
- Simple and refreshing one page design
- Easy to customize
### Join 750,000+ Sites. No Code. Easily Create Future-Proof Websites ✏️ 📰 🚀
## Getting Started
🔥 **1. Create _any_ kind of website for free with [Hugo](https://github.com/gohugoio/hugo)-powered blocks** - from landing pages, knowledge bases, and courses to professional resumés, conferences, and tech blogs
1. [Install Hugo](https://georgecushen.com/create-your-website-with-hugo/#installing-hugo) and create a new website by typing the following commands in your *Terminal* or *Command Prompt* app:
🎨 **2. Personalize** a beautiful starter template with **50+ light/dark color themes, language packs, and blocks**
hugo new site my_website
cd my_website
🛋 **3. Optionally, write from your sofa or on the go with the integrated open source Content Management System (CMS) based on [Decap CMS](https://docs.hugoblox.com/getting-started/cms/decap/)**
2. Install Academic with [git](https://help.github.com/articles/set-up-git/):
<p style="text-align: center"><a href="https://hugoblox.com/templates/" target="_blank" rel="noopener"><img src="./.github/media/write-from-phone.gif" alt="Hugo Blox Builder CMS"></a></p>
git clone https://github.com/gcushen/hugo-academic.git themes/academic
[Check out the latest **demos**](https://hugoblox.com/templates/) of what you'll get in less than 60 seconds, or [get **inspired**](https://hugoblox.com/creators/) by other creators.
Or alternatively, [download Academic](https://github.com/gcushen/hugo-academic/archive/master.zip) and extract it into a `themes/academic` folder within your Hugo website.
- 👉 [**Get Started**](https://hugoblox.com/templates/)
- 📚 [View the **documentation**](https://docs.hugoblox.com/)
- 🙋‍♀️ **Have a question?**
- **Chat with us now on [Discord](https://discord.gg/z8wNYzb)** or explore the [Troubleshooting Guide](https://docs.hugoblox.com/reference/troubleshooting/) and [Q&A Forum](https://github.com/HugoBlox/hugo-blox-builder/discussions)
- _Also, check out [Hugo Forum](https://discourse.gohugo.io) for Hugo Qs and [Netlify Forum](https://answers.netlify.com/) for Netlify Qs_
- 🐦 Share your Hugo Blox Builder site with the community on Twitter: [@GetResearchDev](https://twitter.com/GetResearchDev) [@GeorgeCushen](https://twitter.com/GeorgeCushen) [#MadeWithHugoBlox](https://twitter.com/search?q=%23MadeWithHugoBlox&src=typed_query)
- 🗳 [Take the survey and help us improve #OpenSource](https://forms.gle/NioD9VhUg7PNmdCAA)
- ⬆️ **Updating?** View the [Update Guide](https://docs.hugoblox.com/reference/update/) and [Release Notes](https://github.com/HugoBlox/hugo-blox-builder/releases)
- 🚀 [Contribute improvements](CONTRIBUTING.md) or [suggest improvements](https://github.com/HugoBlox/hugo-blox-builder/issues)
3. If you are creating a new website, copy the contents of the `exampleSite` folder to your website root folder, overwriting existing files if necessary. The `exampleSite` folder contains an example config file and content to help you get started.
## 💙 We ask you, humbly, to support this open source movement
cp -av themes/academic/exampleSite/* .
Today we ask you to defend the open source independence of the Hugo Blox Builder website builder and themes 🐧
4. Start the Hugo server from your website root folder:
We're an **open source and open science movement** that depends on your support to stay online and thriving, but 99.9% of our creators don't give; they simply look the other way 🤦🏻‍♀️
hugo server --watch
### [😍️ Click here to become a GitHub Sponsor, unlocking awesome perks such as _exclusive templates, widgets, and tutorials_](https://github.com/sponsors/gcushen)
Now you can go to [localhost:1313](http://localhost:1313) and your new Academic powered website should appear.
### Business Sponsors
5. [Customize your website](https://sourcethemes.com/academic/post/getting-started/#getting-started) and [add your content](https://sourcethemes.com/academic/post/managing-content/) by referring to the Academic documentation
<div style="display: grid; column-gap: 50px; grid-template-columns: repeat(3, 1fr);">
<div style="display: flex; align-items: center;">
<a href="https://www.netlify.com/" target="_blank"><img src=".github/media/sponsors/netlify.svg" alt="" height="40" width="147" style="display: inline-block;"></a>
</div>
<div>
<a href="https://github.com/sponsors/gcushen"><img src=".github/media/sponsors/your-logo-here.png" alt="" style="display: inline-block;"></a>
</div>
</div>
6. Build your site by running the `hugo` command. Then [host it for free using Github Pages](https://georgecushen.com/create-your-website-with-hugo/). Or alternatively, copy the generated `public/` directory (by FTP, Rsync, etc.) to your production web server (such as your university's hosting service).
## Starter Templates
## Upgrading
Hugo Blox Builder is a **no-code** framework for creating _any_ kind of website using **widgets**. Each site is 100% customizable to **make it your own**!
Feel free to *star* the project on [Github](https://github.com/gcushen/hugo-academic/) and monitor the [commits](https://github.com/gcushen/hugo-academic/commits/master) for updates. [Release notes](https://github.com/gcushen/hugo-academic/wiki/Release-Notes) for notable updates are also available to aid upgrading your site.
Choose from one of the starter templates to easily get started:
Before upgrading Academic, it is recommended to make a backup of your entire website directory, or at least your `themes/academic` directory.
[![Writing technical content](./.github/media/starters.webp)](https://hugoblox.com/templates/)
Before upgrading for the first time, the remote *origin* repository should be renamed to *upstream*:
## The Future of Technical Content Writing
$ cd themes/academic
$ git remote rename origin upstream
**Write rich, future-proof content** using standardized Markdown along with bundled extensions for math and diagrams. Edit in the open source CMS or via an editor such as the online GitHub Editor, Jupyter Notebook, or RStudio! [Learn more](https://docs.hugoblox.com/reference/markdown/)
To list available updates:
[![Writing technical content](https://hugoblox.com/uploads/readmes/writing-technical-content.gif)](https://academic-demo.netlify.app/post/writing-technical-content/)
$ cd themes/academic
$ git fetch upstream
$ git log --pretty=oneline --abbrev-commit --decorate HEAD..upstream/master
## Features
Then, upgrade by running:
[![Screenshot](./.github/media/academic.png)](https://hugoblox.com/templates/)
$ git pull upstream
**Key features:**
If you have modified files in `themes/academic`, git will attempt to auto-merge changes. If conflicts are reported, you will need to manually edit the files with conflicts and add them back (`git add <filename>`).
- **Page builder** - Create _anything_ with [**blocks**](https://docs.hugoblox.com/getting-started/page-builder/) and [**elements**](https://docs.hugoblox.com/reference/markdown/)
- **Edit any type of content** - Blog posts, publications, talks, slides, projects, and more!
- **Create content** in [**Markdown**](https://docs.hugoblox.com/reference/markdown/), [**Jupyter**](https://docs.hugoblox.com/getting-started/cms/), or [**RStudio**](https://docs.hugoblox.com/getting-started/cms/rstudio/)
- **Plugin System** - Fully customizable [**color** and **font themes**](https://docs.hugoblox.com/getting-started/customize/#appearance)
- **Display Code and Math** - Code highlighting and [LaTeX math](https://docs.hugoblox.com/reference/markdown/#math) supported
- **Integrations** - [Google Analytics](https://analytics.google.com), [Disqus commenting](https://disqus.com), Maps, Contact Forms, and more!
- **Beautiful Site** - Simple and refreshing one page design
- **Industry-Leading SEO** - Help get your website found on search engines and social media
- **Media Galleries** - Display your images and videos with captions in a customizable gallery
- **Mobile Friendly** - Look amazing on every screen with a mobile friendly version of your site
- **Multi-language** - 35+ language packs including English, 中文, and Português
- **Multi-user** - Each author gets their own profile page
- **Privacy Pack** - Assists with GDPR
- **Stand Out** - Bring your site to life with animation, parallax backgrounds, and scroll effects
- **One-Click Deployment** - No servers. No databases. Only files.
If there are any issues after upgrading, you may wish to compare your site with the latest [example site](https://github.com/gcushen/hugo-academic/tree/master/exampleSite) to check if any settings changed.
## Themes
## Feedback & Contributing
Hugo Blox Builder comes with **automatic day (light) and night (dark) mode** built-in. Alternatively, click the moon icon in the top right of one of the [Demos](https://hugoblox.com/templates/) to set your preferred mode!
Please use the [issue tracker](https://github.com/gcushen/hugo-academic/issues) to let me know about any bugs or feature requests, or alternatively make a pull request.
Choose a stunning theme for your site and [customize it](https://docs.hugoblox.com/getting-started/customize/#custom-theme) to your liking:
For general questions about Hugo, there is a [Hugo discussion forum](http://discuss.gohugo.io).
[![Themes](./.github/media/themes.png)](https://hugoblox.com/templates/)
[Browse more templates and themes...](https://hugoblox.com/templates/)
## Ecosystem
- [**Academic File Converter**](https://github.com/GetRD/academic-file-converter): Automatically import academic publications from BibTeX to Markdown files
- [**Awesome Hugo**](https://github.com/HugoBlox/awesome-hugo): Scripts to help migrate content to new versions of Hugo
## Join the community
Feel free to [_star_ the project on Github](https://github.com/HugoBlox/hugo-blox-builder), [join the community](https://discord.gg/z8wNYzb) on Discord, and follow [@GetResearchDev](https://twitter.com/GetResearchDev) on Twitter to be the first to hear about new features.
## License
Copyright 2017 [George Cushen](https://georgecushen.com).
Copyright 2016-present [George Cushen](https://georgecushen.com).
Released under the [MIT](https://github.com/gcushen/hugo-academic/blob/master/LICENSE.md) license.
[![Analytics](https://ga-beacon.appspot.com/UA-78646709-2/hugo-academic/readme?pixel)](https://github.com/igrigorik/ga-beacon)
The [Hugo Blox Builder](https://github.com/HugoBlox/hugo-blox-builder/) repository is released under the [MIT](https://github.com/HugoBlox/hugo-blox-builder/blob/main/LICENSE.md) license.

111
README.zh.md Normal file
View file

@ -0,0 +1,111 @@
[**English**](./README.md)
<p align="center"><a href="https://hugoblox.com/templates/" target="_blank" rel="noopener"><img src="./.github/media/sharing.png" alt="Hugo Blox Builder 网站构建工具"></a></p>
[![开始使用](https://img.shields.io/badge/-开始使用-ff4655?style=for-the-badge)](https://hugoblox.com/templates/)
[![Discord](https://img.shields.io/discord/722225264733716590?style=for-the-badge)](https://discord.com/channels/722225264733716590/742892432458252370/742895548159492138)
[![GitHub 赞助者](https://img.shields.io/github/sponsors/gcushen?label=%E2%9D%A4%EF%B8%8F%20赞助&style=for-the-badge)](https://github.com/sponsors/gcushen)
[![Twitter 关注者](https://img.shields.io/twitter/follow/GetResearchDev?label=关注Twitter&style=for-the-badge)](https://twitter.com/GetResearchDev)
[![GitHub 关注者](https://img.shields.io/github/followers/gcushen?label=关注GH&style=for-the-badge)](https://github.com/gcushen)
# [Hugo Blox Builder](https://hugoblox.com): 全能网站构建工具
### 加入 750,000+ 站点。零代码。轻松创建面向未来的网站✏️ 📰 🚀
🔥 **1. 使用 [Hugo](https://github.com/gohugoio/hugo) 引擎支持的模块免费创建_任何_类型的网站** - 从登录页面、知识库和课程到专业简历、会议和技术博客
🎨 **2. 个性化**漂亮的起始模板,享有**50+种浅色/深色主题、多语言包和模块**
🛋 **3. 可选地,使用基于 [Decap CMS](https://docs.hugoblox.com/getting-started/cms/decap/) 的开源内容管理系统CMS随时随地从沙发上或外出写作**
<p style="text-align: center"><a href="https://hugoblox.com/templates/" target="_blank" rel="noopener"><img src="./.github/media/write-from-phone.gif" alt="Decap CMS"></a></p>
[查看最新的 **演示**](https://hugoblox.com/templates/),在不到 60 秒内获取您将获得的内容,或者获得其他创作者的 [**灵感**](https://hugoblox.com/creators/)。
- 👉 [**开始使用**](https://hugoblox.com/templates/)
- 📚 [查看 **文档**](https://docs.hugoblox.com/)
- 🙋‍♀️ **有问题吗?**
- **立即在 [Discord](https://discord.gg/z8wNYzb) 上与我们聊天**,或浏览 [故障排除指南](https://docs.hugoblox.com/reference/troubleshooting/) 和 [问答论坛](https://github.com/HugoBlox/hugo-blox-builder/discussions)
- _此外查看 [Hugo 论坛](https://discourse.gohugo.io) 解决 Hugo 相关问题,以及 [Netlify 论坛](https://answers.netlify.com/) 解答 Netlify 相关问题_
- 🐦 与社区共享您的 Hugo Blox Builder 网站:[@GetResearchDev](https://twitter.com/GetResearchDev) [@GeorgeCushen](https://twitter.com/GeorgeCushen) [#MadeWithHugoBlox](https://twitter.com/search?q=%23MadeWithHugoBlox&src=typed_query)
- 🗳 [参加调查,帮助我们改进 #开源](https://forms.gle/NioD9VhUg7PNmdCAA)
- ⬆️ **更新?** 查看 [更新指南](https://docs.hugoblox.com/reference/update/) 和 [发布说明](https://github.com/HugoBlox/hugo-blox-builder/releases)
- 🚀 [贡献改进](CONTRIBUTING.md) 或 [建议改进](https://github.com/HugoBlox/hugo-blox-builder/issues)
## 💙 我们向您恳请支持这个开源运动
今天我们请求您捍卫 Hugo Blox Builder 网站构建工具和主题的开源独立性 🐧
我们是一个**开源和开放科学的运动**,依靠您的支持来保持在线和繁荣,但我们的 99.9% 的创作者没有做出贡献,他们只是选择置之不理 🤦🏻‍♀️
### [😍️ 点击此处成为 GitHub 赞助者,解锁令人惊叹的特权,如 _独家模板、小部件和教程_](https://github.com/sponsors/gcushen)
### 商业赞助者
<div style="display: grid; column-gap: 50px; grid-template-columns: repeat(3, 1fr);">
<div style="display: flex; align-items: center;">
<a href="https://www.netlify.com/" target="_blank"><img src=".github/media/sponsors/netlify.svg" alt="" height="40" width="147" style="display: inline-block;"></a>
</div>
<div>
<a href="https://github.com/sponsors/gcushen"><img src=".github/media/sponsors/your-logo-here.png" alt="" style="display: inline-block;"></a>
</div>
</div>
## 起始模板
Hugo Blox Builder 是一个使用**小部件**创建_任何_类型网站的**零代码**框架。每个网站都是 100% 可自定义,使其成为您的专属网站!
选择一个起始模板,轻松上手:
[![撰写技术内容](./.github/media/starters.webp)](https://hugoblox.com/templates/)
## 技术内容撰写的未来
使用标准化的 Markdown 和捆绑的扩展(包括数学和图表)**编写丰富、具备未来性的内容**。可以在开源 CMS 中编辑,也可以通过在线的 GitHub 编辑器、Jupyter Notebook 或 RStudio 进行编辑![了解更多](https://docs.hugoblox.com/reference/markdown/)
[![撰写技术内容](https://hugoblox.com/uploads/readmes/writing-technical-content.gif)](https://academic-demo.netlify.app/post/writing-technical-content/)
## 特点
[![截图](./.github/media/academic.png)](https://hugoblox.com/templates/)
**主要特点:**- **页面构建器** - 使用[小部件](https://docs.hugoblox.com/getting-started/page-builder/)和[元素](https://docs.hugoblox.com/reference/markdown/)创建_任何东西_
- **编辑任何类型的内容** - 博客文章、出版物、演讲、幻灯片、项目等等!
- 使用 [**Markdown**](https://docs.hugoblox.com/reference/markdown/)、[**Jupyter**](https://docs.hugoblox.com/getting-started/cms/) 或 [**RStudio**](https://docs.hugoblox.com/getting-started/cms/rstudio/) 创建内容
- **插件系统** - 完全可定制的[**颜色**和**字体主题**](https://docs.hugoblox.com/getting-started/customize/#appearance)
- **显示代码和数学公式** - 支持代码高亮和[LaTeX数学](https://docs.hugoblox.com/reference/markdown/#math)
- **集成** - [Google Analytics](https://analytics.google.com)、[Disqus评论](https://disqus.com)、地图、联系表单等等!
- **美丽的网站** - 简单清爽的单页设计
- **行业领先的SEO** - 帮助您的网站在搜索引擎和社交媒体上被发现
- **媒体图库** - 在可定制的图库中显示带标题的图像和视频
- **移动友好** - 适用于各种屏幕的移动友好版本,外观令人惊艳
- **多语言** - 35+语言包,包括英文、中文和葡萄牙文
- **多用户** - 每个作者都有自己的个人资料页面
- **隐私保护套件** - 协助符合GDPR
- **脱颖而出** - 使用动画、视差背景和滚动效果使您的网站生动起来
- **一键部署** - 无需服务器、无需数据库,只有文件。
## 主题
Hugo Blox Builder内置了**自动白天(浅色)和黑夜(暗色)模式**。或者,单击[Demos](https://hugoblox.com/templates/)右上角的月亮图标设置您喜欢的模式!
为您的网站选择一个惊艳的主题,并[自定义它](https://docs.hugoblox.com/getting-started/customize/#custom-theme)以满足您的喜好:
[![主题](./.github/media/themes.png)](https://hugoblox.com/templates/)
[浏览更多模板和主题...](https://hugoblox.com/templates/)
## 生态系统
- [**Academic File Converter**](https://github.com/GetRD/academic-file-converter)自动将学术出版物从BibTeX导入到Markdown文件
- [**Awesome Hugo**](https://github.com/HugoBlox/awesome-hugo)帮助将内容迁移到Hugo的新版本的脚本
## 加入社区
请随意在Github上[_star_该项目](https://github.com/HugoBlox/hugo-blox-builder)在Discord上[join the community](https://discord.gg/z8wNYzb)并关注Twitter上的[@GetResearchDev](https://twitter.com/GetResearchDev),第一时间获取新功能的消息。
## 许可证
版权所有 2016-present [George Cushen](https://georgecushen.com)。
[Hugo Blox Builder](https://github.com/HugoBlox/hugo-blox-builder/)存储库根据[MIT](https://github.com/HugoBlox/hugo-blox-builder/blob/main/LICENSE.md)许可证发布。

Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 KiB

View file

@ -1,2 +0,0 @@
+++
+++

View file

@ -1,6 +0,0 @@
+++
subtitle = ""
# Order that this section will appear in.
weight = 100
+++

View file

@ -1,14 +0,0 @@
+++
title = "{{ replace .TranslationBaseName "-" " " | title }}"
date = "{{ .Date }}"
math = false
highlight = true
tags = []
# Optional featured image (relative to `static/img/` folder).
[header]
image = ""
caption = ""
+++

View file

@ -1,29 +0,0 @@
+++
title = "{{ replace .TranslationBaseName "-" " " | title }}"
date = "{{ .Date }}"
# Tags: can be used for filtering projects.
# Example: `tags = ["machine-learning", "deep-learning"]`
tags = []
# Project summary to display on homepage.
summary = ""
# Optional image to display on homepage.
image_preview = ""
# Optional external URL for project (replaces project detail page).
external_link = ""
# Does the project detail page use math formatting?
math = false
# Does the project detail page use source code highlighting?
highlight = true
# Optional featured image (relative to `static/img/` folder).
[header]
image = ""
caption = ""
+++

View file

@ -1,52 +0,0 @@
+++
title = "{{ replace .TranslationBaseName "-" " " | title }}"
date = "{{ .Date }}"
# Authors. Comma separated list, e.g. `["Bob Smith", "David Jones"]`.
authors = [""]
# Publication type.
# Legend:
# 0 = Uncategorized
# 1 = Conference proceedings
# 2 = Journal
# 3 = Work in progress
# 4 = Technical report
# 5 = Book
# 6 = Book chapter
publication_types = ["0"]
# Publication name and optional abbreviated version.
publication = ""
publication_short = ""
# Abstract and optional shortened version.
abstract = ""
abstract_short = ""
# Does this page contain LaTeX math? (true/false)
math = false
# Does this page require source code highlighting? (true/false)
highlight = true
# Featured image thumbnail (optional)
image_preview = ""
# Is this a selected publication? (true/false)
selected = false
# Links (optional)
url_pdf = ""
url_code = ""
url_dataset = ""
url_project = ""
url_slides = ""
url_video = ""
# Optional featured image (relative to `static/img/` folder).
[header]
image = ""
caption = ""
+++

View file

@ -1,24 +0,0 @@
+++
title = "{{ replace .TranslationBaseName "-" " " | title }}"
date = "{{ .Date }}"
abstract = ""
abstract_short = ""
event = ""
event_url = ""
location = ""
selected = false
math = false
highlight = true
url_pdf = ""
url_slides = ""
url_video = ""
# Optional featured image (relative to `static/img/` folder).
[header]
image = ""
caption = ""
+++

View file

@ -1,13 +0,0 @@
"de": "Deutsch"
"en": "English"
"es": "Español"
"eu": "Euskara"
"fr": "Français"
"it": "Italiano"
"nl": "Nederlands"
"pl": "Polski"
"pt": "Português"
"ru": "Русский"
"tr": "Türkçe"
"vi": "Tiếng Việt"
"zh": "中文 (简体)"

View file

@ -1,18 +0,0 @@
# How to update an entry:
#
# echo -n "sha512-" && curl --silent "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_CHTML" | openssl dgst -sha512 -binary | openssl enc -base64 -A
[js]
imagesLoaded = "sha512-iHzEu7GbSc705hE2skyH6/AlTpOfBmkx7nUqTLGzPYR+C1tRaItbRlJ7hT/D3YQ9SV0fqLKzp4XY9wKulTBGTw=="
tweenMax = "sha512-Z5heTz36xTemt1TbtbfXtTq5lMfYnOkXM2/eWcTTiLU01+Sw4ku1i7vScDc8fWhrP2abz9GQzgKH5NGBLoYlAw=="
scrollToPlugin = "sha512-CDeU7pRtkPX6XJtF/gcFWlEwyaX7mcAp5sO3VIu/ylsdR74wEw4wmBpD5yYTrmMAiAboi9thyBUr1vXRPA7t0Q=="
mathJax = "sha512-tOav5w1OjvsSJzePRtt2uQPFwBoHt1VZcUq8l8nm5284LEKE9FSJBQryzMBzHxY5P0zRdNqEcpLIRVYFNgu1jw=="
bootstrap = "sha512-iztkobsvnjKfAtTNdHkGVjAYTrrtlC7mGp/54c40wowO7LhURYl3gVzzcEqGl/qKXQltJ2HwMrdLcNUdo+N/RQ=="
isotope = "sha512-VDBOIlDbuC4VWxGJNmuFRQ0Li0SKkDpmGyuhAG5LTDLd/dJ/S0WMVxriR2Y+CyPL5gzjpN4f/6iqWVBJlht0tQ=="
jQuery = "sha512-jGsMH83oKe9asCpkOVkBnUrDDTp8wl+adkB2D+//JtlxO4SrLoJdhbOysIFQJloQFD+C4Fl1rMsQZF76JjV0eQ=="
autotrack = "sha512-HUmooslVKj4m6OBu0OgzjXXr+QuFYy/k7eLI5jdeEy/F4RSgMn6XRWRGkFi5IFaFgy7uFTkegp3Z0XnJf3Jq+g=="
[css]
bootstrap = "sha512-6MXa8B6uaO18Hid6blRMetEIoPqHf7Ux1tnyIQdpt9qI5OACx7C+O3IVTr98vwGnlcg0LOLa02i9Y1HpVhlfiw=="
academicons = "sha512-NThgw3XKQ1absAahW6to7Ey42uycrVvfNfyjqcFNgCmOCQ5AR4AO0SiXrN+8ZtYeappp56lk1WtvjVmEa+VR6A=="
fontAwesome = "sha512-SfTiTlX6kk+qitfevl/7LibUOeJWlt9rbyDn92a1DqWOw9vWG2MFoays0sgObmWazO5BQPiFucnnEAjpAB+/Sw=="

View file

@ -1,193 +0,0 @@
baseurl = "https://example.com/" # End your URL with a `/` trailing slash.
title = "Academic"
copyright = "&copy; 2016 Your Name"
theme = "academic"
enableEmoji = true
footnotereturnlinkcontents = "<sup>^</sup>"
# Enable comments by entering your Disqus shortname
disqusShortname = ""
# Enable analytics by entering your Google Analytics tracking ID
googleAnalytics = ""
# Default language to use (if you setup multilingual support)
defaultContentLanguage = "en"
defaultContentLanguageInSubdir = false
[blackfriday]
hrefTargetBlank = true
[params]
name = "Lena Smith"
role = "Professor of Artificial Intelligence"
organization = "Stanford University"
organization_url = ""
gravatar = false # Get your avatar from Gravatar.com? (true/false)
avatar = "portrait.jpg" # Specify an avatar image (in `static/img/` folder) or delete value to disable avatar.
email = "test@example.org"
address = "Building 1 Room 1, Stanford University, California, 90210, USA"
office_hours = "Monday 10:00 to 13:00 or email for appointment"
phone = "888 888 88 88"
skype = "echo123"
telegram = ""
# Enable Keybase in Contact section by entering your keybase.io username.
keybase = ""
# Date format (refer to Go's date format: http://flippinggodateformat.com )
# Examples: "Mon, Jan 2, 2006" or "2006-01-02"
date_format = "Mon, Jan 2, 2006"
# Enable global LaTeX math rendering?
# If false, you can enable it locally on a per page basis.
math = false
# Highlight.js options
# highlight
# Enable global source code highlighting? If false, you can
# override it for a particular page in that page's preamble.
#
# Example: highlight = true
#
# highlight_languages
# Add support for highlighting additional languages. Support for
# languages mentioned here will be included in all pages. You
# can also set this variable for a particular page in that
# page's preamble.
#
# Example: highlight_languages = ["go", "lisp", "ocaml"]
#
# highlight_style
# Choose a different CSS style for highlighting source
# code. Setting this option in a page's preamble has no
# effect.
#
# Example: highlight_style = "github-gist"
#
# highlight_version
# Choose the version of highlight.js you want. Setting this
# option in a page's preamble has no effect.
#
# Example: highlight_version = "9.9.0"
#
# For the list of supported languages, styles, and versions, see:
# https://cdnjs.com/libraries/highlight.js/
#
# For more info on the highlighting options, see:
# https://gcushen.github.io/hugo-academic-demo/post/writing-markdown-latex/#highlighting-options
highlight = true
highlight_languages = []
# highlight_style = "github"
# highlight_version = "9.9.0"
# Enable native social sharing buttons?
sharing = true
# Link custom CSS and JS assets
# (relative to /static/css and /static/js respectively)
custom_css = []
custom_js = []
# Publication types.
# Used to categorize publications.
# The index of the publication type in the list is used as its unique numerical identifier.
# The numeric ID is used in a publication's frontmatter to categorize it.
# The language can be edited below.
# For multi-lingual sites, copy this block to each language section at the end of this file.
publication_types = [
'Uncategorized', # 0
'Conference proceedings', # 1
'Journal', # 2
'Work in progress', # 3
'Technical report', # 4
'Book', # 5
'Book chapter' # 6
]
# Social/Academic Networking
#
# Icon pack "fa" includes the following social network icons:
#
# twitter, weibo, linkedin, github, facebook, pinterest, google-plus,
# youtube, instagram, soundcloud
#
# For email icon, use "fa" icon pack, "envelope" icon, and
# "mailto:your@email.com" as the link.
#
# Full list: https://fortawesome.github.io/Font-Awesome/icons/
#
# Icon pack "ai" includes the following academic network icons:
#
# google-scholar, arxiv, orcid, researchgate, mendeley
#
# Full list: https://jpswalsh.github.io/academicons/
[[params.social]]
icon = "envelope"
icon_pack = "fa"
link = "mailto:test@example.org"
[[params.social]]
icon = "twitter"
icon_pack = "fa"
link = "//twitter.com/GeorgeCushen"
[[params.social]]
icon = "google-scholar"
icon_pack = "ai"
link = "https://scholar.google.co.uk/citations?user=sIwtMXoAAAAJ"
[[params.social]]
icon = "github"
icon_pack = "fa"
link = "//github.com/gcushen"
# Navigation Links
# To link a homepage widget, specify the URL as a hash `#` followed by the filename of the
# desired widget in your `content/home/` folder.
# The weight parameter defines the order that the links will appear in.
[[menu.main]]
name = "Home"
url = "#about"
weight = 1
[[menu.main]]
name = "Publications"
url = "#publications_selected"
weight = 2
[[menu.main]]
name = "Posts"
url = "#posts"
weight = 3
[[menu.main]]
name = "Projects"
url = "#projects"
weight = 4
[[menu.main]]
name = "Teaching"
url = "#teaching"
weight = 5
[[menu.main]]
name = "Contact"
url = "#contact"
weight = 6
# Taxonomies.
[taxonomies]
tag = "tags"
category = "categories"
publication_type = "publication_types"
# Languages
# Create a [languages.X] block for each language you want, where X is the language ID.
# Configure the English version of the website.
[languages.en]
languageCode = "en-us"

View file

@ -1,42 +0,0 @@
+++
# About/Biography widget.
date = "2016-04-20T00:00:00"
draft = false
widget = "about"
# Order that this section will appear in.
weight = 1
# List your academic interests.
[interests]
interests = [
"Artificial Intelligence",
"Computational Linguistics",
"Information Retrieval"
]
# List your qualifications (such as academic degrees).
[[education.courses]]
course = "PhD in Artificial Intelligence"
institution = "Stanford University"
year = 2012
[[education.courses]]
course = "MEng in Artificial Intelligence"
institution = "Massachusetts Institute of Technology"
year = 2009
[[education.courses]]
course = "BSc in Artificial Intelligence"
institution = "Massachusetts Institute of Technology"
year = 2008
+++
# Biography
Lena Smith is a professor of artificial intelligence at the Stanford AI Lab. Her research interests include distributed robotics, mobile computing and programmable matter. She leads the Robotic Neurobiology group, which develops self-reconfiguring robots, systems of self-organizing robots, and mobile sensor networks.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed neque elit, tristique placerat feugiat ac, facilisis vitae arcu. Proin eget egestas augue. Praesent ut sem nec arcu pellentesque aliquet. Duis dapibus diam vel metus tempus vulputate.

View file

@ -1,18 +0,0 @@
+++
# Contact widget.
date = "2016-04-20T00:00:00"
draft = false
title = "Contact"
subtitle = ""
widget = "contact"
# Order that this section will appear in.
weight = 70
# Automatically link email and phone?
autolink = true
+++

View file

@ -1,22 +0,0 @@
+++
# Recent Posts widget.
# This widget displays recent posts from `content/post/`.
date = "2016-04-20T00:00:00"
draft = false
title = "Recent Posts"
subtitle = ""
widget = "posts"
# Order that this section will appear in.
weight = 40
# Show posts that contain the following tags. Default to any tags.
tags = []
# Number of posts to list.
count = 5
+++

View file

@ -1,37 +0,0 @@
+++
# Projects widget.
# This widget displays all projects from `content/project/`.
date = "2016-04-20T00:00:00"
draft = false
title = "Projects"
subtitle = ""
widget = "projects"
# Order that this section will appear in.
weight = 50
# View.
# Customize how projects are displayed.
# Legend: 0 = list, 1 = cards.
view = 1
# Filter toolbar.
# Add or remove as many filters (`[[filter]]` instances) as you like.
# Use "*" tag to show all projects or an existing tag prefixed with "." to filter by specific tag.
# To remove toolbar, delete/comment all instances of `[[filter]]` below.
[[filter]]
name = "All"
tag = "*"
[[filter]]
name = "Deep Learning"
tag = ".deep-learning"
[[filter]]
name = "Other"
tag = ".demo"
+++

View file

@ -1,22 +0,0 @@
+++
# Recent Publications widget.
# This widget displays recent publications from `content/publication/`.
date = "2016-04-20T00:00:00"
draft = false
title = "Recent Publications"
subtitle = ""
widget = "publications"
# Order that this section will appear in.
weight = 20
# Number of publications to list.
count = 10
# Show publication details (such as abstract)? (true/false)
detailed_list = false
+++

View file

@ -1,20 +0,0 @@
+++
# Selected Publications widget.
# This widget displays publications from `content/publication/` which have
# `selected = true` in their `+++` front matter.
date = "2016-04-20T00:00:00"
draft = false
title = "Selected Publications"
subtitle = ""
widget = "publications_selected"
# Order that this section will appear in.
weight = 10
# Show publication details (such as abstract)? (true/false)
detailed_list = true
+++

View file

@ -1,21 +0,0 @@
+++
# Recent and Upcoming Talks widget.
date = "2016-04-20T00:00:00"
draft = false
title = "Recent & Upcoming Talks"
subtitle = ""
widget = "talks"
# Order that this section will appear in.
weight = 30
# Number of talks to list.
count = 10
# Show talk details (such as abstract)? (true/false)
detailed_list = false
+++

View file

@ -1,27 +0,0 @@
+++
# An example of using the custom widget to create your own homepage section.
# To create more sections, duplicate this file and edit the values below as desired.
date = "2016-04-20T00:00:00"
draft = false
title = "Teaching"
subtitle = ""
widget = "custom"
# Order that this section will appear in.
weight = 60
+++
This is an example of using the *custom* widget to create your own homepage section.
I am a teaching instructor for the following courses at University X:
- CS101: An intro to computer science
- CS102: An intro to computer science
- CS103: An intro to computer science
- CS104: An intro to computer science
- CS105: An intro to computer science
- CS106: An intro to computer science
- CS107: An intro to computer science

View file

@ -1,12 +0,0 @@
+++
title = "Posts"
date = "2017-01-01T00:00:00Z"
math = false
highlight = false
# Optional featured image (relative to `static/img/` folder).
[header]
image = ""
caption = ""
+++

View file

@ -1,186 +0,0 @@
+++
date = "2016-04-20T12:00:00"
draft = false
tags = ["academic", "hugo"]
title = "Getting started with the Academic framework for Hugo"
math = true
summary = """
Create a beautifully simple personal or academic website in under 10 minutes.
"""
[header]
image = "headers/getting-started.png"
caption = "Image credit: [**Academic**](https://github.com/gcushen/hugo-academic/)"
+++
The Academic framework enables you to easily create a beautifully simple personal or academic website using the [Hugo](https://gohugo.io) static site generator.
Key features:
- Easily manage your homepage, blog posts, publications, talks, and projects
- Configurable widgets available for Biography, Publications, Projects, News/Blog, Talks, and Contact
- Need a different section? Just use the Custom widget!
- Write in [Markdown]({{< ref "post/writing-markdown-latex.md" >}}) for easy formatting and code highlighting, with [LaTeX](https://en.wikibooks.org/wiki/LaTeX/Mathematics) for mathematical expressions
- Social/academic network linking, [Google Analytics](https://analytics.google.com), and [Disqus](https://disqus.com) comments
- Responsive and mobile friendly
- Simple and refreshing one page design
- Easy to customize
## Installation
1. [Install Hugo](https://georgecushen.com/create-your-website-with-hugo/#installing-hugo) and create a new website by typing the following commands in your *Terminal* or *Command Prompt* app:
hugo new site my_website
cd my_website
2. Install Academic with [git](https://help.github.com/articles/set-up-git/):
git clone https://github.com/gcushen/hugo-academic.git themes/academic
Or alternatively, [download Academic](https://github.com/gcushen/hugo-academic/archive/master.zip) and extract it into a `themes/academic` folder within your Hugo website.
3. If you are creating a new website, copy the contents of the `exampleSite` folder to your website root folder, overwriting existing files if necessary. The `exampleSite` folder contains an example config file and content to help you get started.
cp -av themes/academic/exampleSite/* .
4. Start the Hugo server from your website root folder:
hugo server --watch
Now you can go to [localhost:1313](http://localhost:1313) and your new Academic powered website should appear.
5. Customize your website - refer to the *Getting Started* section below
6. Build your site by running the `hugo` command. Then [host it for free using Github Pages](https://georgecushen.com/create-your-website-with-hugo/). Or alternatively, copy the generated `public/` directory (by FTP, Rsync, etc.) to your production web server (such as your university's hosting service).
## Getting Started
Assuming you created a new website with the example content following the installation steps above, this section explores just a few more steps in order to customize it.
### Core parameters
The core parameters for the website can be edited in the `config.toml` configuration file:
- Set `baseurl` to your website URL (we recommend [GitHub Pages](https://georgecushen.com/create-your-website-with-hugo/) for free hosting)
- Set `title` to your desired website title such as your name
- The example Disqus commenting variable should be cleared (e.g. `disqusShortname = ""`) or set to your own [Disqus](https://disqus.com/) shortname to enable commenting
- Edit your details under `[params]`; these will be displayed mainly in the homepage *about* and *contact* widgets (if used). To disable a contact field, simply clear the value to `""`.
- Place a square cropped portrait photo named `portrait.jpg` into the `static/img/` folder, overwriting any defaults. Alternatively, you can edit the `avatar` filepath to point to a different image name or clear the value to disable the avatar feature.
- To enable LaTeX math for your site, set `math = true`
- Social/academic networking links are defined as multiples of `[[params.social]]`. They can be created or deleted as necessary.
### Introduce yourself
Edit your biography in the *about* widget `content/home/about.md` that you copied across from the `themes/academic/exampleSite/` folder. The research interests and qualifications are stored as `interests` and `education` variables. The academic qualifications are defined as multiples of `[[education.courses]]` and can be created or deleted as necessary. It's possible to completely hide the interests and education lists by deleting their respective variables.
### Customize the homepage
Refer to our guide on using [widgets]({{< ref "post/widgets.md" >}}) to customize your homepage.
### Add your content
Refer to our guide on [managing content]({{< ref "post/managing-content.md" >}}) to create your own publications, blog posts, talks, and projects.
### Remove unused widgets and pages
[How to remove unused widgets and content pages]({{< ref "post/managing-content.md#removing-content" >}}).
### Customization & Upgrading
Continue reading below for advanced customization tips and instructions for keeping the framework up-to-date with any improvements that become available.
## Advanced customization
It is possible to carry out many customizations without touching any files in `themes/academic`, making it easier to upgrade the framework in the future.
### Navigation menu
The `[[menu.main]]` entries towards the bottom of `config.toml` define the navigation links at the top of the website. They can be added or removed as desired.
To create a dropdown sub-menu, add `identifier = "something"` to the parent item and `parent = "something"` to the child item.
### Website icon
Save your main icon and mobile icon as square PNG images named `icon.png` and `apple-touch-icon.png`, respectively. Place them in your root `static/img/` folder.
### Theme color (CSS)
You can link custom CSS assets (relative to your root `static/css`) from your `config.toml` using `custom_css = ["custom.css"]`.
For example, lets make a green theme. First, define `custom_css = ["green.css"]` in `config.toml`. Then we can download the example [green theme](https://gist.github.com/gcushen/d5525a4506b9ccf83f2bce592a895495) and save it as `static/css/green.css`, relative to your website root (i.e. **not** in the `themes` directory).
### Analytics
To enable [Google Analytics](http://www.google.com/analytics), add your tracking code in `config.toml` similarly to `googleAnalytics = "UA-12345678-9"`.
### Third party and local scripts (JS)
To add a third party script, create a file named `head_custom.html` in a `layouts/partials/` folder at the root of your website (not in the `themes` folder). Any HTML code added to this file will be included within your website's `<head>`. Therefore, it's suitable for adding custom metadata or third party scripts specified with the *async* attribute.
Whereas for your own local scripts, you can link your local JS assets (relative to your root `static/js`) from your `config.toml` using `custom_js = ["custom.js"]`.
### Language and translation
The interface text (e.g. buttons) is stored in language files which are collected from Academic's `themes/academic/i18n/` folder, as well as an `i18n/` folder at the root of your project.
To edit the interface text, copy `themes/academic/i18n/en.yaml` to `i18n/en.yaml` (relative to the root of your website). Open the new file and make any desired changes to the text appearing after `translation:`. Note that the language files are formatted in YAML syntax.
To translate the interface text to another language, follow the above instructions, but name the new file in the form `i18n/X.yaml` where `X` is the appropriate [ISO/RFC5646 language identifier](http://www.w3schools.com/tags/ref_language_codes.asp) for the translation. Then follow the brief instructions in the *Language* section at the bottom of your `config.toml`. To change the default language used by Academic, set `defaultContentLanguage` to the desired language identifier in your configuration file.
To translate the navigation bar, you can edit the default `[[menu.main]]` instances in `config.toml`. However, for a multilingual site, you will need to duplicate all of the `[[menu.main]]` instances and rename the new instances from `[[menu.main]]` to `[[languages.X.menu.main]]`, where `X` is the language identifier (e.g. `[[languages.zh.menu.main]]` for Simplified Chinese). Thus, the navigation bar can be displayed in multiple languages.
To translate a content file in your `content/` folder into another language, copy the file to `filename.X.md` where `filename` is your existing filename and `X` is the appropriate [ISO/RFC5646 language identifier](http://www.w3schools.com/tags/ref_language_codes.asp) for the translation. Then translate the content in the new file to the specified language.
For further details on Hugo's internationalization and multilingual features, refer to the [associated Hugo documentation](https://gohugo.io/content/multilingual/).
### Permalinks
*Permalinks*, or *permanent links*, are URLs to individual pages and posts on your website. They are permanent web addresses which can be used to link to your content. Using Hugo's *permalinks* option these can be easily customized. For example, the blog post URL can be changed to the form *yourURL/2016/05/01/my-post-slug* by adding the following near the top of your `config.toml` (before `[params]` settings):
[permalinks]
post = "/:year/:month/:day/:slug"
Where `:slug` defaults to the filename of the post, excluding the file extension. However, slug may be overridden on a per post basis if desired, simply by setting `slug = "my-short-post-title"` in your post preamble.
## Upgrading
Feel free to *star* the project on [Github](https://github.com/gcushen/hugo-academic/) and monitor the [commits](https://github.com/gcushen/hugo-academic/commits/master) for updates.
Before upgrading the framework, it is recommended to make a backup of your entire website directory, or at least your `themes/academic` directory. You can also read about the [most recent milestones](https://github.com/gcushen/hugo-academic/releases) (but this doesn't necessarily reflect the latest *master* release).
Before upgrading for the first time, the remote *origin* repository should be renamed to *upstream*:
$ cd themes/academic
$ git remote rename origin upstream
To list available updates:
$ cd themes/academic
$ git fetch upstream
$ git log --pretty=oneline --abbrev-commit --decorate HEAD..upstream/master
Then, upgrade by running:
$ git pull upstream
If you have modified files in `themes/academic`, git will attempt to auto-merge changes. If conflicts are reported, you will need to manually edit the files with conflicts and add them back (`git add <filename>`).
If there are any issues after upgrading, you may wish to compare your site with the latest [example site](https://github.com/gcushen/hugo-academic/tree/master/exampleSite) to check if any settings changed.
## Feedback & Contributing
Please use the [issue tracker](https://github.com/gcushen/hugo-academic/issues) to let me know about any bugs or feature requests, or alternatively make a pull request.
For general questions about Hugo, there is a [Hugo discussion forum](http://discuss.gohugo.io).
## License
Copyright 2016 [George Cushen](https://georgecushen.com).
Released under the [MIT](https://github.com/gcushen/hugo-academic/blob/master/LICENSE.md) license.

View file

@ -1,141 +0,0 @@
+++
date = "2016-04-20T11:00:00"
draft = false
tags = ["academic", "hugo"]
title = "Managing content"
math = false
+++
This is a brief guide to managing content with the Academic framework. Content can include publications, projects, talks, and news/blog articles. After you have read this guide about creating and managing content, you may also be interested to learn about [writing content with Markdown, LaTeX, and Shortcodes]({{< ref "post/writing-markdown-latex.md" >}}).<!--more-->
To enable LaTeX math rendering for a page, you should include `math = true` in the page's `+++` preamble, as demonstrated in the included example site. Otherwise, to enable math on the homepage or for all pages, you must globally set `math = true` in `config.toml`.
To disable source code highlighting by default for all pages, set `highlight = false` in `config.toml`. You can then enable source code highlighting only on pages that need it by setting `highlight = true` in that page's preamble. See the [code-highlighting docs]({{< ref "post/writing-markdown-latex.md#code-highlighting" >}}) for more details.
To display a featured image in content page headers, the parameters below can be inserted towards the end of a page's `+++` preamble. It is assumed that the image is located in your `static/img/` folder, so the full path in the example below will be `static/img/headers/getting-started.png`. The `caption` parameter can be used to write an image caption or credit.
```toml
[header]
image = "headers/getting-started.png"
caption = "Image credit: [**Academic**](https://github.com/gcushen/hugo-academic/)"
```
{{% alert note %}}
If you wish to prevent a featured image automatically being used for a post's thumbnail on the homepage, the `preview = false` parameter can be added to `[header]`.
{{% /alert %}}
## Create a publication
To create a new publication:
hugo new publication/my-paper-name.md
Then edit the default variables at the top of `content/publication/my-paper-name.md` to include the details of your publication. The `url_` variables are used to generate links associated with your publication, such as for viewing PDFs of papers. Here is an example:
```
+++
abstract = "An abstract..."
authors = ["First author's name", "Second author's name"]
date = "2013-07-01"
image = ""
image_preview = ""
math = false
publication = "The publishing part of the citation goes here. You may use *Markdown* for italics etc."
title = "A publication title, such as title of a paper"
url_code = ""
url_dataset = ""
url_pdf = "pdf/my-paper-name.pdf"
url_project = ""
url_slides = ""
url_video = ""
+++
Further details on your publication can be written here using *Markdown* for formatting. This text will be displayed on the Publication Detail page.
```
The `url_` links can either point to local or web content. Associated local publication content, such as PDFs, may be copied to a `static/pdf/` folder and referenced like `url_pdf = "pdf/my-paper-name.pdf"`.
You can also associate custom link buttons with the publication by adding the following block(s) within the variable preamble above, which is denoted by `+++`:
```
[[url_custom]]
name = "Custom Link"
url = "http://www.example.org"
```
If you enabled `detailed_list` for publications in `config.toml`, then there are a few more optional variables that you can include in the publication page preamble. You may use `abstract_short = "friendly summary of abstract"` and `publication_short = "abbreviated publication details"` to display a friendly summary of the abstract and abbreviate the publication details, respectively. Furthermore, there is the option to display a different image on the homepage to the publication detail page by setting `image_preview = "my-image.jpg"`. This can be useful if you wish to scale down the image for the homepage or simply if you just wish to show a different image for the preview.
{{% alert warning %}}
Any double quotes (`"`) or backslashes (e.g. LaTeX `\times`) occurring within the value of any frontmatter parameter (such as the *abstract*) should be escaped with a backslash (`\`). For example, the symbol `"` and LaTeX text `\times` become `\"` and `\\times`, respectively. Refer to the [TOML documentation](https://github.com/toml-lang/toml#user-content-string) for more info.
{{% /alert %}}
## Post an article
To create a blog/news article:
hugo new post/my-article-name.md
Then edit the newly created file `content/post/my-article-name.md` with your full title and content.
Hugo will automatically generate summaries of posts that appear on the homepage. If you are dissatisfied with an automated summary, you can either limit the summary length by appropriately placing <code>&#60;&#33;&#45;&#45;more&#45;&#45;&#62;</code> in the article body, or completely override the automated summary by adding a `summary` parameter to the `+++` preamble such that:
summary = "Summary of my post."
To disable commenting for a specific post, you can add `disable_comments = true` to the post `+++` preamble. Or to disable commenting for all posts, you can either set `disqusShortname = ""` or `disable_comments = true` in `config.toml`.
## Create a project
To create a project:
hugo new project/my-project-name.md
Then edit the newly created file `content/project/my-project-name.md`. Either you can link the project to an external project website by setting the `external_link = "http://external-project.com"` variable at the top of the file, or you can add content (below the final `+++`) in order to render a project page on your website.
## Create a talk
To create a talk:
hugo new talk/my-talk-name.md
Then edit the newly created file `content/talk/my-talk-name.md` with your full talk title and details. Note that many of the talk parameters are similar to the publication parameters.
## Manage node index pages
The node index pages (e.g. `/post/`) are the special pages which list all of your content. They can exist for blog posts, publications, and talks. The homepage widgets will automatically link to the node index pages when you have more items of content than can be displayed in the widget. Therefore, if you don't have much content, you may not see the automatic links yet - but you can also manually link to them using a normal Markdown formatted link in your content.
You can edit the title and add your own content, such as an introduction, by creating and editing the following content files for the node indexes:
hugo new post/_index.md
hugo new publication/_index.md
hugo new talk/_index.md
Then remove all parameters except for `title`, `math`, `highlight`, and `date`. Edit the `title` parameter as desired and add any content after the `+++` preamble/frontmatter ends. For example, you should have something similar to:
```toml
+++
title = "List of my posts"
date = "2017-01-01T00:00:00Z"
math = false
highlight = false
+++
Below is an automatically generated list of all my blog posts!
```
## Removing content
Generally, to remove content, simply delete the relevant file from your `content/post`, `content/publication`, `content/project`, or `content/talk` folder.
## View your updated site
After you have made changes to your site, you can view it by running the `hugo server --watch` command and then opening [localhost:1313](http://localhost:1313) in your web browser.
## Deploy your site
Finally, you can build the static website to a `public/` folder ready for deployment using the `hugo` command.
You may then deploy your site by copying the `public/` directory (by FTP, SFTP, WebDAV, Rsync, git push, etc.) to your production web server.
Note that running `hugo` does not remove any previously generated files before building. Therefore, it's best practice to delete your `public/` directory prior to running `hugo` to ensure no old or interim files are deployed to your server.

View file

@ -1,38 +0,0 @@
+++
date = "2014-03-10T00:00:00"
draft = false
tags = ["jekyll"]
title = "Migrate from Jekyll to Hugo"
summary = """
Learn how to migrate an existing website from Jekyll to Hugo.
"""
math = false
+++
Here are a few tips for migrating an existing website from Jekyll to Hugo. These tips can be applied in conjunction with following Hugo Academic's [getting started guide]({{< ref "post/getting-started.md" >}}).
## Move static content to `static`
Jekyll has a rule that any directory not starting with `_` will be copied as-is to the `_site` output. Hugo keeps all static content under `static`. You should therefore move it all there.
With Jekyll, something that looked like
<root>/
▾ images/
logo.png
should become
<root>/
▾ static/
▾ images/
logo.png
Additionally, you'll want any files that should reside at the root (such as `CNAME`) to be moved to `static`.
## Fix content
Depending on the amount of customization that was done for each post in Jekyll, this step will require more or less effort. There are no hard and fast rules here except that `hugo server --watch` and the Hugo Academic example site are your friends. Test your changes and fix errors as needed.
## Publish
The default is for Jekyll to publish the website to a `_site` directory, whereas Hugo publishes to a `public` directory.
## A practical example
Alexandre Normand migrated his website from Jekyll to Hugo in less than a day. You can see all his changes by looking at this GitHub [diff](https://github.com/alexandre-normand/alexandre-normand/compare/869d69435bd2665c3fbf5b5c78d4c22759d7613a...b7f6605b1265e83b4b81495423294208cc74d610). However, bear in mind that this example is **not specific to the Academic theme nor does it use the latest version of Hugo**.

View file

@ -1,61 +0,0 @@
+++
date = "2016-04-20T11:00:00"
draft = false
tags = ["academic", "hugo"]
title = "Customizing the homepage with widgets"
math = false
summary = """
Enable/disable and configure widgets to customize your homepage.
"""
+++
Homepage widgets display as sections on the homepage. They can be enabled/disabled and configured as desired. Academic has the following widgets available to use:
- About/biography
- Selected publications
- Recent publications
- Recent news/blog posts
- Projects
- Selected talks
- Recent talks
- Contact
- Custom widget (demonstrated with the *teaching* example)
The example site that you copied to create your site uses all the different types of widget (except talks), so you can generally just delete the widgets you don't need and customize the parameters of the widgets you wish to keep.
The parameters for each widget vary. They can be found in the preamble/frontmatter (between the pair of `+++`) for each widget installed in the `content/home/` folder.
{{% alert note %}}
By default, publications will be displayed in a simple list. If you prefer a more detailed list with abstract and image, you can enable the detailed publication list on the homepage by setting `detailed_list = true` in `content/home/publications.md`.
{{% /alert %}}
## Add a widget to the homepage
To add a widget manually, copy the relevant widget from `themes/academic/exampleSite/content/home/` to your `content/home/` folder.
Widget identifiers are set to their respective filenames, so a `content/home/about.md` widget can be linked from the navigation bar by setting the relevant URL as `"#about"` in `config.toml`.
This means that if you want to use multiple instances of a widget, each widget will be assigned a unique ID based on the filename that you set. You can then use that ID for linking, like in the above example.
## Using the custom widget
You can use the custom widget to create your own home page sections.
Simply duplicate (copy/paste) and rename the example *teaching* file at `content/home/teaching.md`. Then edit the section title, weight (refer to *Ordering sections* below), and content as desired.
You may also wish to add a navigation link to the top of the page that points to the new section. This can be achieved by adding something similar to the following lines to your `config.toml`, where the URL will consist of the first title word in lowercase:
[[menu.main]]
name = "Research"
url = "#research"
weight = 10
## Remove a widget from the homepage
If you do not require a particular widget, you can simply delete any associated files from the `content/home/` folder.
To remove a navigation link from the top of the page, remove the associated `[[menu.main]]` entry in `config.toml`.
## Ordering widgets
The order that the homepage widgets are displayed in is defined by the `weight` parameter in each of the files in the `content/home/` directory. The widgets are displayed in ascending order of their `weight`, so you can simply edit the `weight` parameters as desired.

View file

@ -1,235 +0,0 @@
+++
date = "2016-04-20T10:00:00"
draft = false
tags = []
title = "Writing content with Markdown, LaTeX, and Shortcodes"
math = true
+++
Content can be written using [Markdown](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet), [LaTeX math](https://en.wikibooks.org/wiki/LaTeX/Mathematics), and [Hugo Shortcodes](http://gohugo.io/extras/shortcodes/). Additionally, HTML may be used for advanced formatting.<!--more--> This article gives an overview of the most common formatting options.
## Sub-headings
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
## Emphasis
Italics with *asterisks* or _underscores_.
Bold with **asterisks** or __underscores__.
Combined emphasis with **asterisks and _underscores_**.
Strikethrough with ~~two tildes~~.
## Ordered lists
1. First item
2. Another item
## Unordered lists
* First item
* Another item
## Images
Images may be added to a page by placing them in your `static/img/` folder and referencing them using one of the following two notations:
A general image:
![alternative text for search engines](/img/screenshot.png)
A numbered figure with caption:
{{</* figure src="/img/screenshot.png" title="Figure Caption" */>}}
## Links
[I'm a link](https://www.google.com)
[A post]({{</* ref "post/hi.md" */>}})
[A publication]({{</* ref "publication/hi.md" */>}})
[A project]({{</* ref "project/hi.md" */>}})
[Another section]({{</* relref "hi.md#who" */>}})
## Emojis
See the [Emoji cheat sheet](http://www.webpagefx.com/tools/emoji-cheat-sheet/) for available emoticons. The following serves as an example, but you should remove the spaces between each emoji name and pair of semicolons:
I : heart : Academic : smile :
I :heart: Academic :smile:
## Blockquote
> This is a blockquote.
> This is a blockquote.
## Footnotes
I have more [^1] to say.
[^1]: Footnote example.
I have more [^1] to say.
[^1]: Footnote example.
## Code highlighting
Pass the *language* of the code, such as `python`, as a parameter after three backticks:
```python
# Example of code highlighting
input_string_var = input("Enter some data: ")
print("You entered: {}".format(input_string_var))
```
Result:
```python
# Example of code highlighting
input_string_var = input("Enter some data: ")
print("You entered: {}".format(input_string_var))
```
### Highlighting options
The Academic theme uses [highlight.js](https://highlightjs.org) for source code highlighting, and highlighting is enabled by default for all pages. However, several configuration options are supported that allow finer-grained control over highlight.js.
The following table lists the supported options for configuring highlight.js, along with their expected type and a short description. A "yes" in the **config.toml** column means the value can be set globally in `config.toml`, and a "yes" in the **preamble** column means that the value can be set locally in a particular page's preamble.
option | type | description | config.toml | preamble
----------------------|---------|---------------------------------|-------------|---------
`highlight` | boolean | enable/disable highlighting | yes | yes
`highlight_languages` | slice | choose additional languages | yes | yes
`highlight_style` | string | choose a highlighting style | yes | no
`highlight_version` | string | choose the highlight.js version | yes | no
#### Option `highlight`
The `highlight` option allows enabling or disabling the inclusion of highlight.js, either globally or for a particular page. If the option is unset, it has the same effect as if you had specified `highlight = true`. That is, the highlight.js javascript and css files will be included in every page. If you'd like to only include highlight.js files on pages that actually require source code highlighting, you can set `highlight = false` in `config.toml`, and then override it by setting `highlight = true` in the preamble of any pages that require source code highlighting. Conversely, you could enable highlighting globally, and disable it locally for pages that do not require it. Here is a table that shows whether highlighting will be enabled for a page, based on the values of `highlight` set in `config.toml` and/or the page's preamble.
config.toml | page preamble | highlighting enabled for page?
--------------|----------------|-------------------------------
unset or true | unset or true | yes
unset or true | false | no
false | unset or false | no
false | true | yes
#### Option `highlight_languages`
The `highlight_languages` option allows you to specify additional languages that are supported by highlight.js, but are not considered "common" and therefore are not supported by default. For example, if you want source code highlighting for Go and clojure in all pages, set `highlight_languages = ["go", "clojure"]` in `config.toml`. If, on the other hand, you want to enable a language only for a specific page, you can set `highlight_languages` in that page's preamble.
The `highlight_languages` options specified in `config.toml` and in a page's preamble are additive. That is, if `config.toml` contains, `highlight_languages = ["go"]` and the page's preamble contains `highlight_languages = ["ocaml"]`, then javascript files for *both* go and ocaml will be included for that page.
If the `highlight_languages` option is set, then the corresponding javascript files will be served from the [cdnjs server](https://cdnjs.com/libraries/highlight.js/). To see a list of available languages, visit the [cdnjs page](https://cdnjs.com/libraries/highlight.js/) and search for links with the word "languages".
The `highlight_languages` option provides an easy and convenient way to include support for additional languages to be severed from a CDN. If serving unmodified files from cdnjs doesn't meet your needs, you can include javascript files for additional language support via one of the methods described in the [getting started guide]({{< ref "post/getting-started.md#third-party-and-local-scripts-js" >}}).
#### Option `highlight_style`
The `highlight_style` option allows you to select an alternate css style for highlighted code. For example, if you wanted to use the solarized-dark style, you could set `highlight_style = "solarized-dark"` in `config.toml`.
If the `highlight_style` option is unset, the default is to use the file `/css/highlight.min.css`, either the one provided by the Academic theme, or else the one in your local `static` directory. The `/css/highlight.min.css` file provided by Academic is equivalent to the `github` style from highlight.js.
If the `highlight_style` option *is* set, then `/css/highlight.min.css` is ignored, and the corresponding css file will be served from the [cdnjs server](https://cdnjs.com/libraries/highlight.js/). To see a list of available styles, visit the [cdnjs page](https://cdnjs.com/libraries/highlight.js/) and search for links with the word "styles".
See the [highlight.js demo page](https://highlightjs.org/static/demo/) for examples of available styles.
{{% alert note %}}
Not all styles listed on the [highlight.js demo page](https://highlightjs.org/static/demo/) are available from the [cdnjs server](https://cdnjs.com/libraries/highlight.js/). If you want to use a style that is not served by cdnjs, just leave `highlight_style` unset, and place the corresponding css file in `/static/css/highlight.min.css`.
{{% /alert %}}
{{% alert note %}}
If you don't want to change the default style that ships with Academic but you do want the style file served from the [cdnjs server](https://cdnjs.com/libraries/highlight.js/), set `highlight_style = "github"` in `config.toml`.
{{% /alert %}}
The `highlight_style` option is only recognized when set in `config.toml`. Setting `highlight_style` in your page's preamble has no effect.
#### Option `highlight_version`
The `highlight_version` option, as the name implies, allows you to select the version of highlight.js you want to use. The default value is "9.9.0". The `highlight_version` option is only recognized when set in `config.toml`. Setting `highlight_version` in your page's preamble has no effect.
## Twitter tweet
To include a single tweet, pass the tweets ID from the tweet's URL as parameter to the shortcode:
{{</* tweet 666616452582129664 */>}}
## Youtube
{{</* youtube w7Ft2ymGmfc */>}}
## Vimeo
{{</* vimeo 146022717 */>}}
## GitHub gist
{{</* gist USERNAME GIST-ID */>}}
## Speaker Deck
{{</* speakerdeck 4e8126e72d853c0060001f97 */>}}
## $\rm \LaTeX$ math
```TeX
$$\left [ \frac{\hbar^2}{2 m} \frac{\partial^2}{\partial x^2} + V \right ] \Psi = i \hbar \frac{\partial}{\partial t} \Psi$$
```
$$\left [ \frac{\hbar^2}{2 m} \frac{\partial^2}{\partial x^2} + V \right ] \Psi = i \hbar \frac{\partial}{\partial t} \Psi$$
Alternatively, inline math can be written by wrapping the formula with only a single `$`:
This is inline: $\mathbf{y} = \mathbf{X}\boldsymbol\beta + \boldsymbol\varepsilon$
This is inline: $\mathbf{y} = \mathbf{X}\boldsymbol\beta + \boldsymbol\varepsilon$
## Table
Code:
```Markdown
| Command | Description |
| ------------------| ------------------------------ |
| `hugo` | Build your website. |
| `hugo serve -w` | View your website. |
```
Result:
| Command | Description |
| ------------------| ------------------------------ |
| `hugo` | Build your website. |
| `hugo serve -w` | View your website. |
## Alerts
Alerts are a useful feature that add side content such as tips, notes, or warnings to your articles. They are especially handy when writing educational tutorial-style articles. Use the corresponding shortcodes to enable alerts inside your content:
{{%/* alert note */%}}
Here's a tip or note...
{{%/* /alert */%}}
This will display the following *note* block:
{{% alert note %}}
Here's a tip or note...
{{% /alert %}}
{{%/* alert warning */%}}
Here's some important information...
{{%/* /alert */%}}
This will display the following *warning* block:
{{% alert warning %}}
Here's some important information...
{{% /alert %}}

View file

@ -1,25 +0,0 @@
+++
# Date this page was created.
date = "2016-04-27"
# Project title.
title = "External Project"
# Project summary to display on homepage.
summary = "An example of linking directly to an external project website using `external_link`."
# Optional image to display on homepage (relative to `static/img/` folder).
image_preview = "boards.jpg"
# Tags: can be used for filtering projects.
# Example: `tags = ["machine-learning", "deep-learning"]`
tags = ["demo"]
# Optional external URL for project (replaces project detail page).
external_link = "http://example.org"
# Does the project detail page use math formatting?
math = false
+++

View file

@ -1,12 +0,0 @@
+++
title = "Publications"
date = "2017-01-01T00:00:00Z"
math = false
highlight = false
# Optional featured image (relative to `static/img/` folder).
[header]
image = ""
caption = ""
+++

View file

@ -1,31 +0,0 @@
+++
abstract = "We present a mobile visual clothing search system whereby a smart phone user can either choose a social networking photo or take a new photo of a person wearing clothing of interest and search for similar clothing in a retail database. From the query image, the person is detected, clothing is segmented, and clothing features are extracted and quantized. The information is sent from the phone client to a server, where the feature vector of the query image is used to retrieve similar clothing products from online databases. The phone's GPS location is used to re-rank results by retail store location. State of the art work focuses primarily on the recognition of a diverse range of clothing offline and pays little attention to practical applications. Evaluated on a challenging dataset, the system is relatively fast and achieves promising results."
abstract_short = "A mobile visual clothing search system is presented whereby a smart phone user can either choose a social networking image or capture a new photo of a person wearing clothing of interest and search for similar clothing in a large cloud-based ecommerce database. The phone's GPS location is used to re-rank results by retail store location, to inform the user of local stores where similar clothing items can be tried on."
authors = ["GA Cushen", "MS Nixon"]
date = "2013-07-01"
image_preview = ""
math = true
publication_types = ["1"]
publication = "In *International Conference on Multimedia and Expo Workshops (ICMEW)*, IEEE."
publication_short = "In *ICMEW*"
selected = true
title = "Mobile visual clothing search"
url_code = "#"
url_dataset = "#"
url_pdf = "http://eprints.soton.ac.uk/352095/1/Cushen-IMV2013.pdf"
url_project = "project/deep-learning/"
url_slides = "#"
url_video = "#"
[[url_custom]]
name = "Custom Link"
url = "http://www.example.org"
# Optional featured image (relative to `static/img/` folder).
[header]
image = "headers/bubbles-wide.jpg"
caption = "My caption :smile:"
+++
More detail can easily be written here using *Markdown* and $\rm \LaTeX$ math code.

View file

@ -1,22 +0,0 @@
+++
abstract = "Person re-identification is a critical security task for recognizing a person across spatially disjoint sensors. Previous work can be computationally intensive and is mainly based on low-level cues extracted from RGB data and implemented on a PC for a fixed sensor network (such as traditional CCTV). We present a practical and efficient framework for mobile devices (such as smart phones and robots) where high-level semantic soft biometrics are extracted from RGB and depth data. By combining these cues, our approach attempts to provide robustness to noise, illumination, and minor variations in clothing. This mobile approach may be particularly useful for the identification of persons in areas ill-served by fixed sensors or for tasks where the sensor position and direction need to dynamically adapt to a target. Results on the BIWI dataset are preliminary but encouraging. Further evaluation and demonstration of the system will be available on our website."
abstract_short = ""
authors = ["GA Cushen"]
date = "2015-09-01"
image_preview = ""
math = true
publication_types = ["2"]
publication = "In *Signal Image Technology & Internet Systems (SITIS)*, IEEE."
publication_short = ""
selected = false
title = "A Person Re-Identification System For Mobile Devices"
url_code = ""
url_dataset = ""
url_pdf = "http://arxiv.org/pdf/1512.04133v1"
url_project = "project/deep-learning/"
url_slides = ""
url_video = ""
+++
More detail can easily be written here using *Markdown* and $\rm \LaTeX$ math code.

View file

@ -1,14 +0,0 @@
+++
title = "Content tagged as 'Academic'"
date = "2017-01-01T00:00:00"
math = false
highlight = false
# Optional featured image (relative to `static/img/` folder).
[header]
image = "headers/bubbles-wide.jpg"
caption = ""
+++
Here is a list of all the content that has been tagged as *academic*.

View file

@ -1,12 +0,0 @@
+++
title = "Recent & Upcoming Talks"
date = "2017-01-01T00:00:00Z"
math = false
highlight = false
# Optional featured image (relative to `static/img/` folder).
[header]
image = ""
caption = ""
+++

View file

@ -1,24 +0,0 @@
+++
date = "2017-01-01T00:00:00"
title = "Example Talk"
abstract = ""
abstract_short = ""
event = "Hugo Academic Theme Conference"
event_url = "https://example.org"
location = "London, United Kingdom"
selected = false
math = true
url_pdf = ""
url_slides = ""
url_video = ""
# Optional featured image (relative to `static/img/` folder).
[header]
image = "headers/bubbles-wide.jpg"
caption = "My caption :smile:"
+++
Embed your slides or video here using [shortcodes](https://gcushen.github.io/hugo-academic-demo/post/writing-markdown-latex/). Further details can easily be added using *Markdown* and $\rm \LaTeX$ math code.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 227 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 304 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

View file

@ -0,0 +1,8 @@
{
"folders": [
{
"path": "."
}
],
"settings": {}
}

View file

@ -1,89 +0,0 @@
# Navigation
- id: toggle_navigation
translation: Zur Navigation
# Buttons
- id: btn_details
translation: Details
- id: btn_pdf
translation: PDF
- id: btn_slides
translation: Folien
- id: btn_video
translation: Video
- id: btn_code
translation: Code
- id: btn_dataset
translation: Datensatz
- id: btn_project
translation: Projekt
# About widget
- id: interests
translation: Interessen
- id: education
translation: Ausbildung
# Publications widget
- id: more_publications
translation: Weitere Publikationen
# Posts widget
- id: continue_reading
translation: WEITERLESEN
- id: more_posts
translation: Weitere Blogeinträge
# Talks widget
- id: more_talks
translation: Weitere Vorträge
# Publication/Talk details
- id: abstract
translation: Zusammenfassung
- id: publication
translation: Publikation
- id: publication_type
translation: Typ
- id: date
translation: Datum
- id: links
translation: Links
- id: event
translation: Veranstaltung
- id: location
translation: Ort
# Filtering
- id: filter_by_type
translation: Filter nach Typ
- id: filter_all
translation: Alle
# Project details
- id: open_project_site
translation: Zur Projektseite

View file

@ -1,100 +0,0 @@
# Navigation
- id: toggle_navigation
translation: Toggle navigation
# Buttons
- id: btn_details
translation: Details
- id: btn_pdf
translation: PDF
- id: btn_slides
translation: Slides
- id: btn_video
translation: Video
- id: btn_code
translation: Code
- id: btn_dataset
translation: Dataset
- id: btn_project
translation: Project
# About widget
- id: interests
translation: Interests
- id: education
translation: Education
# Publications widget
- id: more_publications
translation: More Publications
# Posts widget
- id: continue_reading
translation: CONTINUE READING
- id: more_posts
translation: More Posts
# Talks widget
- id: more_talks
translation: More Talks
# Publication/Talk details
- id: abstract
translation: Abstract
- id: publication
translation: Publication
- id: publication_type
translation: Type
- id: date
translation: Date
- id: links
translation: Links
- id: event
translation: Event
- id: location
translation: Location
# Filtering
- id: filter_by_type
translation: Filter by type
- id: filter_all
translation: All
# Project details
- id: open_project_site
translation: Go to Project Site
# Default node titles
- id: posts
translation: Posts
- id: publications
translation: Publications
- id: talks
translation: Talks

View file

@ -1,100 +0,0 @@
# Navigation
- id: toggle_navigation
translation: Barra de navegación
# Buttons
- id: btn_details
translation: Detalles
- id: btn_pdf
translation: PDF
- id: btn_slides
translation: Diapositivas
- id: btn_video
translation: Vídeo
- id: btn_code
translation: Código
- id: btn_dataset
translation: Datos
- id: btn_project
translation: Proyecto
# About widget
- id: interests
translation: Interés
- id: education
translation: Educación
# Publications widget
- id: more_publications
translation: Más Publicaciones
# Posts widget
- id: continue_reading
translation: CONTINÚA LEYENDO
- id: more_posts
translation: Más Posts
# Talks widget
- id: more_talks
translation: Más charlas
# Publication/Talk details
- id: abstract
translation: Resumen
- id: publication
translation: Publicación
- id: publication_type
translation: Tipo
- id: date
translation: Fecha
- id: links
translation: Links
- id: event
translation: Evento
- id: location
translation: Localización
# Filtering
- id: filter_by_type
translation: Filtro por tipo
- id: filter_all
translation: Todo
# Project details
- id: open_project_site
translation: Ir al sitio del proyecto
# Default node titles
- id: posts
translation: Posts
- id: publications
translation: Publicaciones
- id: talks
translation: Charlas

View file

@ -1,100 +0,0 @@
# Navigation
- id: toggle_navigation
translation: Txandakatu nabigazioa
# Buttons
- id: btn_details
translation: Xehetasunak
- id: btn_pdf
translation: PDF
- id: btn_slides
translation: Diapositibak
- id: btn_video
translation: Bideoa
- id: btn_code
translation: Kodea
- id: btn_dataset
translation: Datu-sorta
- id: btn_project
translation: Proiektua
# About widget
- id: interests
translation: Interesak
- id: education
translation: Ikasketak
# Publications widget
- id: more_publications
translation: Argitalpen gehiago
# Posts widget
- id: continue_reading
translation: JARRAITU IRAKURTZEN
- id: more_posts
translation: Bidalketa gehiago
# Talks widget
- id: more_talks
translation: Hitzaldi gehiago
# Publication/Talk details
- id: abstract
translation: Laburpena
- id: publication
translation: Non argitaratua
- id: publication_type
translation: Mota
- id: date
translation: Data
- id: links
translation: Loturak
- id: event
translation: Ekitaldia
- id: location
translation: Kokalekua
# Filtering
- id: filter_by_type
translation: Iragazi motaren arabera
- id: filter_all
translation: Denak
# Project details
- id: open_project_site
translation: Joan proiektuaren webgunera
# Default node titles
- id: posts
translation: Bidalketak
- id: publications
translation: Argitalpenak
- id: talks
translation: Hitzaldiak

View file

@ -1,100 +0,0 @@
# Navigation
- id: toggle_navigation
translation: Ouvrir la barre de navigation
# Buttons
- id: btn_details
translation: Renseignements
- id: btn_pdf
translation: PDF
- id: btn_slides
translation: Diapositives
- id: btn_video
translation: Vidéo
- id: btn_code
translation: Code
- id: btn_dataset
translation: Jeu de données
- id: btn_project
translation: Projet
# About widget
- id: interests
translation: Intérêts
- id: education
translation: Formation
# Publications widget
- id: more_publications
translation: Plus de publications
# Posts widget
- id: continue_reading
translation: CONTINUER DE LIRE
- id: more_posts
translation: Plus de posts
# Talks widget
- id: more_talks
translation: Plus de présentations
# Publication/Talk details
- id: abstract
translation: Résumé
- id: publication
translation: Publication
- id: publication_type
translation: Type
- id: date
translation: Date
- id: links
translation: Liens
- id: event
translation: Événement
- id: location
translation: Lieu
# Filtering
- id: filter_by_type
translation: Filtré par type
- id: filter_all
translation: Tout
# Project details
- id: open_project_site
translation: Aller sur le site du projet
# Default node titles
- id: posts
translation: Posts
- id: publications
translation: Publications
- id: talks
translation: Présentations

View file

@ -1,100 +0,0 @@
# Navigation
- id: toggle_navigation
translation: Attiva la navigazione
# Buttons
- id: btn_details
translation: Dettagli
- id: btn_pdf
translation: PDF
- id: btn_slides
translation: Slide
- id: btn_video
translation: Video
- id: btn_code
translation: Codice
- id: btn_dataset
translation: Dataset
- id: btn_project
translation: Progetti
# About widget
- id: interests
translation: Interessi
- id: education
translation: Formazione
# Publications widget
- id: more_publications
translation: Altre pubblicazioni
# Posts widget
- id: continue_reading
translation: LEGGI TUTTO
- id: more_posts
translation: Altri Post
# Talks widget
- id: more_talks
translation: Altre Conferenze
# Publication/Talk details
- id: abstract
translation: Abstract
- id: publication
translation: Publicazione
- id: publication_type
translation: Tipo
- id: date
translation: Data
- id: links
translation: Link
- id: event
translation: Evento
- id: location
translation: Luogo
# Filtering
- id: filter_by_type
translation: Filtra per tipo
- id: filter_all
translation: Tutto
# Project details
- id: open_project_site
translation: Apri il sito del Progetto
# Default node titles
- id: posts
translation: Post
- id: publications
translation: Pubblicazioni
- id: talks
translation: Conferenze

View file

@ -1,100 +0,0 @@
# Navigation
- id: toggle_navigation
translation: Navigatiebalk
# Buttons
- id: btn_details
translation: Details
- id: btn_pdf
translation: PDF
- id: btn_slides
translation: Dia's
- id: btn_video
translation: Video
- id: btn_code
translation: Code
- id: btn_dataset
translation: Dataset
- id: btn_project
translation: Project
# About widget
- id: interests
translation: Interesses
- id: education
translation: Educatie
# Publications widget
- id: more_publications
translation: Meer Publicaties
# Posts widget
- id: continue_reading
translation: LEES VERDER
- id: more_posts
translation: Meer Berichten
# Talks widget
- id: more_talks
translation: Meer Presentaties
# Publication/Talk details
- id: abstract
translation: Korte inhoud
- id: publication
translation: Publicatie
- id: publication_type
translation: Type
- id: date
translation: Datum
- id: links
translation: Links
- id: event
translation: Evenement
- id: location
translation: Locatie
# Filtering
- id: filter_by_type
translation: Filter op type
- id: filter_all
translation: Alles
# Project details
- id: open_project_site
translation: Ga naar Projecten pagina
# Default node titles
- id: posts
translation: Berichten
- id: publications
translation: Publicaties
- id: talks
translation: Presentaties

View file

@ -1,100 +0,0 @@
# Navigation
- id: toggle_navigation
translation: Toggle navigation
# Buttons
- id: btn_details
translation: Szczegóły
- id: btn_pdf
translation: PDF
- id: btn_slides
translation: Slajdy
- id: btn_video
translation: Video
- id: btn_code
translation: Kod
- id: btn_dataset
translation: Dane
- id: btn_project
translation: Projekt
# About widget
- id: interests
translation: Zainteresowania
- id: education
translation: Wykształcenie
# Publications widget
- id: more_publications
translation: Więcej publikacji
# Posts widget
- id: continue_reading
translation: CZYTAJ DALEJ
- id: more_posts
translation: Więcej postów
# Talks widget
- id: more_talks
translation: Więcej wystąpień
# Publication/Talk details
- id: abstract
translation: Streszczenie
- id: publication
translation: Publikacja
- id: publication_type
translation: Rodzaj
- id: date
translation: Data
- id: links
translation: Odnośniki
- id: event
translation: Wydarzenie
- id: location
translation: Miejsce
# Filtering
- id: filter_by_type
translation: Filtruje po typie
- id: filter_all
translation: Wszystko
# Project details
- id: open_project_site
translation: Idź do strony projektu
# Default node titles
- id: posts
translation: Posty
- id: publications
translation: Publikacje
- id: talks
translation: Wystąpienia

View file

@ -1,100 +0,0 @@
# Navigation
- id: toggle_navigation
translation: Alterar navegação
# Buttons
- id: btn_details
translation: Detalhes
- id: btn_pdf
translation: PDF
- id: btn_slides
translation: Slides
- id: btn_video
translation: Vídeo
- id: btn_code
translation: Código
- id: btn_dataset
translation: Dados
- id: btn_project
translation: Projeto
# About widget
- id: interests
translation: Interesses
- id: education
translation: Formação
# Publications widget
- id: more_publications
translation: Mais Publicações
# Posts widget
- id: continue_reading
translation: CONTINUE LENDO
- id: more_posts
translation: Mais Posts
# Talks widget
- id: more_talks
translation: Mais Palestras
# Publication/Talk details
- id: abstract
translation: Resumo
- id: publication
translation: Publicação
- id: publication_type
translation: Tipo
- id: date
translation: Data
- id: links
translation: Links
- id: event
translation: Evento
- id: location
translation: Local
# Filtering
- id: filter_by_type
translation: Filtro por tipo
- id: filter_all
translation: Todos
# Project details
- id: open_project_site
translation: Ir para o site do projeto
# Default node titles
- id: posts
translation: Posts
- id: publications
translation: Publicações
- id: talks
translation: Palestras

View file

@ -1,100 +0,0 @@
# Navigation
- id: toggle_navigation
translation: Переключить навигацию
# Buttons
- id: btn_details
translation: Подробнее
- id: btn_pdf
translation: PDF
- id: btn_slides
translation: Слайды
- id: btn_video
translation: Видео
- id: btn_code
translation: Код
- id: btn_dataset
translation: Набор данных
- id: btn_project
translation: Проект
# About widget
- id: interests
translation: Интересы
- id: education
translation: Образование
# Publications widget
- id: more_publications
translation: Больше публикаций
# Posts widget
- id: continue_reading
translation: Читать далее
- id: more_posts
translation: Больше статей
# Talks widget
- id: more_talks
translation: Больше выступлений
# Publication/Talk details
- id: abstract
translation: Аннотация
- id: publication
translation: Публикация
- id: publication_type
translation: Тип
- id: date
translation: Дата
- id: links
translation: Ссылки
- id: event
translation: Событие
- id: location
translation: Место
# Filtering
- id: filter_by_type
translation: Фильтровать по типу
- id: filter_all
translation: Все
# Project details
- id: open_project_site
translation: Перейти на сайт проекта
# Section titles
- id: posts
translation: Статьи
- id: publications
translation: Публикации
- id: talks
translation: Выступления

View file

@ -1,100 +0,0 @@
# Navigation
- id: toggle_navigation
translation: Arayüz yönünü değiştir
# Buttons
- id: btn_details
translation: Daha fazla ayrıntı
- id: btn_pdf
translation: PDF
- id: btn_slides
translation: Slaytlar
- id: btn_video
translation: Video
- id: btn_code
translation: Kod
- id: btn_dataset
translation: Veri kümesi
- id: btn_project
translation: Proje
# About widget
- id: interests
translation: İlgi alanları
- id: education
translation: Eğitim
# Publications widget
- id: more_publications
translation: Daha fazla yayınlar
# Posts widget
- id: continue_reading
translation: OKUMAYA DEVAM ET
- id: more_posts
translation: Daha fazla blog içeriği
# Talks widget
- id: more_talks
translation: Daha fazla konuşma
# Publication/Talk details
- id: abstract
translation: Özet
- id: publication
translation: Yayın
- id: publication_type
translation: Yayın tipi
- id: date
translation: Tarih
- id: links
translation: Bağlantılar
- id: event
translation: Etkinlikler
- id: location
translation: Adres
# Filtering
- id: filter_by_type
translation: Yayın tipine göre sırala
- id: filter_all
translation: Hepsi
# Project details
- id: open_project_site
translation: Projenin sayfasına git
# Default node titles
- id: posts
translation: Blog içerikleri
- id: publications
translation: Yayınlar
- id: talks
translation: Konuşmalar

View file

@ -1,100 +0,0 @@
# Navigation
- id: toggle_navigation
translation: Chuyển Điều Hướng
# Buttons
- id: btn_details
translation: Chi Tiết
- id: btn_pdf
translation: PDF
- id: btn_slides
translation: Slides
- id: btn_video
translation: Video
- id: btn_code
translation: Mã Nguồn
- id: btn_dataset
translation: Dữ liệu
- id: btn_project
translation: Dự Án
# About widget
- id: interests
translation: Sở Thích
- id: education
translation: Học Vấn
# Publications widget
- id: more_publications
translation: Các Công Trình
# Posts widget
- id: continue_reading
translation: ĐỌC TIẾP
- id: more_posts
translation: Các Bài Đăng
# Talks widget
- id: more_talks
translation: Các Thuyết Trình
# Publication/Talk details
- id: abstract
translation: Tóm tắt
- id: publication
translation: Công trình
- id: publication_type
translation: Phân loại
- id: date
translation: Ngày Tháng
- id: links
translation: Liên Kết
- id: event
translation: Sự Kiện
- id: location
translation: Địa Điểm
# Filtering
- id: filter_by_type
translation: Lọc theo loại
- id: filter_all
translation: Tất Cả
# Project details
- id: open_project_site
translation: Đến Trang Dự Án
# Default node titles
- id: posts
translation: Bài Đăng
- id: publications
translation: Công Trình
- id: talks
translation: Buổi Nói Chuyện

View file

@ -1,100 +0,0 @@
# Navigation
- id: toggle_navigation
translation: 切换导航
# Buttons
- id: btn_details
translation: 详情
- id: btn_pdf
translation: PDF
- id: btn_slides
translation: 演示文稿
- id: btn_video
translation: 视频
- id: btn_code
translation: 代码
- id: btn_dataset
translation: 数据集
- id: btn_project
translation: 项目
# About widget
- id: interests
translation: 兴趣爱好
- id: education
translation: 教育经历
# Publications widget
- id: more_publications
translation: 更多出版物
# Posts widget
- id: continue_reading
translation: 继续阅读
- id: more_posts
translation: 更多文章
# Talks widget
- id: more_talks
translation: 更多演讲
# Publication/Talk details
- id: abstract
translation: 摘要
- id: publication
translation: 出版物
- id: publication_type
translation: 类型
- id: date
translation: 日期
- id: links
translation: 链接
- id: event
translation: 事件
- id: location
translation: 位置
# Filtering
- id: filter_by_type
translation: 按类型过滤
- id: filter_all
translation: 全部
# Project details
- id: open_project_site
translation: 访问项目网站
# Default node titles
- id: posts
translation: 文章
- id: publications
translation: 出版物
- id: talks
translation: 演讲

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

View file

@ -1,24 +0,0 @@
{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<div class="container">
<h1>Page not found</h1>
<p>Maybe you were looking for one of these?</p>
<h2>Recent Posts</h2>
{{ range last 20 (where .Data.Pages "Section" "=" "post") }}
<ul>
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
</ul>
{{ end }}
<h2>Recent Publications</h2>
{{ range last 20 (where .Data.Pages "Section" "=" "publication") }}
<ul>
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
</ul>
{{ end }}
</div>
{{ partial "footer_container.html" . }}
{{ partial "footer.html" . }}

View file

@ -1,32 +0,0 @@
{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
{{ partial "header_image.html" . }}
<div class="universal-wrapper">
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
{{ with .Content }}
<div class="article-style" itemprop="articleBody">{{ . }}</div>
{{ end }}
{{ $paginator := .Paginate .Data.Pages }}
{{ range $paginator.Pages }}
<div>
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<div class="article-style">
{{ if .Params.summary }}
{{ printf "%s" .Params.summary | markdownify }}
{{ else if .Truncated }}
{{ printf "%s" .Summary | markdownify }}
{{ end }}
</div>
</div>
{{ end }}
{{ partial "pagination" . }}
</div>
{{ partial "footer_container.html" . }}
{{ partial "footer.html" . }}

View file

@ -1,27 +0,0 @@
{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<article class="article" itemscope itemtype="http://schema.org/Article">
{{ partial "header_image.html" . }}
<div class="article-container">
<h1 itemprop="name">{{ .Title }}</h1>
{{ partial "article_metadata" (dict "content" . "is_list" 0) }}
<div class="article-style" itemprop="articleBody">
{{ .Content }}
</div>
</div>
</article>
<div class="container">
{{ partial "section_pager.html" . }}
</div>
<div class="article-container">
{{ partial "comments.html" . }}
</div>
{{ partial "footer_container.html" . }}
{{ partial "footer.html" . }}

View file

@ -1,20 +0,0 @@
{{ partial "header.html" . }}
{{ partial "navbar.html" . }}
<!-- Flag for jQuery -->
<span id="homepage" style="display: none"></span>
<!-- Widgets -->
{{ range $index, $page := where .Data.Pages "Type" "home" }}
{{ $params := dict "root" $ "page" $page }}
{{ $widget := printf "widgets/%s.html" ( or $page.Params.widget "custom" ) }}
<section id="{{ $page.File.TranslationBaseName }}" class="home-section">
<div class="container">
{{ partial $widget $params }}
</div>
</section>
{{ end }}
<!-- Page Footer -->
{{ partial "footer_container.html" . }}
{{ partial "footer.html" . }}

View file

@ -1,41 +0,0 @@
{{ $is_list := .is_list }}
{{ $ := .content }}
<div class="article-metadata">
<span class="article-date">
<time datetime="{{ $.Date }}" itemprop="datePublished">
{{ $.Date.Format $.Site.Params.date_format }}
</time>
</span>
{{ if isset $.Params "categories" }}
{{ $categoriesLen := len $.Params.categories }}
{{ if gt $categoriesLen 0 }}
<span class="article-categories">
<i class="fa fa-folder"></i>
{{ range $k, $v := $.Params.categories }}
<a href="{{ "/categories/" | relLangURL }}{{ . | urlize | lower }}">{{ . }}</a
>{{ if lt $k (sub $categoriesLen 1) }}, {{ end }}
{{ end }}
</span>
{{ end }}
{{ end }}
{{ if isset $.Params "tags" }}
{{ $tagsLen := len $.Params.tags }}
{{ if gt $tagsLen 0 }}
<span class="article-tags">
<i class="fa fa-tags"></i>
{{ range $k, $v := $.Params.tags }}
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize | lower }}">{{ . }}</a
>{{ if lt $k (sub $tagsLen 1) }}, {{ end }}
{{ end }}
</span>
{{ end }}
{{ end }}
{{ if ne $is_list 1 }}
{{ partial "share.html" $ }}
{{ end }}
</div>

View file

@ -1,7 +0,0 @@
{{ if and .Site.DisqusShortname (not (or .Site.Params.disable_comments .Params.disable_comments)) }}
<section id="comments">
<div id="disqus_thread">
{{ template "_internal/disqus.html" . }}
</div>
</section>
{{ end }}

View file

@ -1,54 +0,0 @@
{{ if not .Site.Params.disable_sri }}
{{ printf "<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js\" integrity=\"%s\" crossorigin=\"anonymous\"></script>" .Site.Data.sri.js.jQuery | safeHTML }}
{{ printf "<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.imagesloaded/4.1.2/imagesloaded.pkgd.min.js\" integrity=\"%s\" crossorigin=\"anonymous\"></script>" .Site.Data.sri.js.imagesLoaded | safeHTML }}
{{ printf "<script src=\"https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.1/TweenMax.min.js\" integrity=\"%s\" crossorigin=\"anonymous\"></script>" .Site.Data.sri.js.tweenMax| safeHTML }}
{{ printf "<script src=\"https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.1/plugins/ScrollToPlugin.min.js\" integrity=\"%s\" crossorigin=\"anonymous\"></script>" .Site.Data.sri.js.scrollToPlugin| safeHTML }}
{{ printf "<script src=\"https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js\" integrity=\"%s\" crossorigin=\"anonymous\"></script>" .Site.Data.sri.js.bootstrap | safeHTML }}
{{ printf "<script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery.isotope/3.0.4/isotope.pkgd.min.js\" integrity=\"%s\" crossorigin=\"anonymous\"></script>" .Site.Data.sri.js.isotope | safeHTML }}
{{ else }}
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery.imagesloaded/4.1.2/imagesloaded.pkgd.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.19.1/TweenMax.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.19.1/plugins/ScrollToPlugin.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery.isotope/3.0.4/isotope.pkgd.min.js"></script>
{{ end }}
<script src="{{ "/js/hugo-academic.js" | relURL }}"></script>
{{ range .Site.Params.custom_js }}
<script src="{{ "/js/" | relURL }}{{ . }}"></script>
{{ end }}
<!-- Code highlighting -->
{{ if $.Scratch.Get "highlight_enabled" }}
{{ $v := .Site.Params.highlight_version | default "9.9.0" }}
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/{{ $v }}/highlight.min.js"></script>
{{ range .Site.Params.highlight_languages }}
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/{{ $v }}/languages/{{ . }}.min.js"></script>
{{ end }}
{{ range .Params.highlight_languages }}
{{/* Do not double-include languages that are in both .Site.Params and .Params.
If Hugo ever grows a "union" function for set union, this range clause can be merged with the one above. */}}
{{ if not (in $.Site.Params.highlight_languages .) }}
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/{{ $v }}/languages/{{ . }}.min.js"></script>
{{ end }}
{{ end }}
<script>hljs.initHighlightingOnLoad();</script>
{{ end }}
<!-- LaTeX math rendering -->
{{ if or .Params.math .Site.Params.math }}
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] } });
</script>
{{ if not .Site.Params.disable_sri }}
{{ printf "<script src=\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_CHTML\" integrity=\"%s\" crossorigin=\"anonymous\"></script>" .Site.Data.sri.js.mathJax | safeHTML }}
{{ else }}
<script async src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_CHTML"></script>
{{ end }}
{{ end }}
</body>
</html>

View file

@ -1,20 +0,0 @@
<footer class="site-footer">
<div class="container">
<p class="powered-by">
{{ with .Site.Copyright }}{{ . | markdownify}} &middot; {{ end }}
Powered by the <a href="https://github.com/gcushen/hugo-academic" target="_blank">Academic
theme</a> for <a href="http://gohugo.io" target="_blank">Hugo</a>.
<span class="pull-right" aria-hidden="true">
<a href="#" id="back_to_top">
<span class="button_icon">
<i class="fa fa-chevron-up fa-2x"></i>
</span>
</a>
</span>
</p>
</div>
</footer>

View file

@ -1,75 +0,0 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode | default "en-us" }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="theme" content="hugo-academic">
{{ .Hugo.Generator }}
{{ with .Site.Params.name }}<meta name="author" content="{{ . }}">{{ end }}
{{ with .Site.Params.role }}<meta name="description" content="{{ . }}">{{ end }}
{{/* Default to enabling highlighting, but allow the user to override it in .Params or .Site.Params.
Use $.Scratch to store "highlight_enabled", so that we can read it again in footer.html. */}}
{{ $.Scratch.Set "highlight_enabled" true }}
{{ if isset .Params "highlight" }}
{{ $.Scratch.Set "highlight_enabled" .Params.highlight }}
{{ else if isset .Site.Params "highlight" }}
{{ $.Scratch.Set "highlight_enabled" .Site.Params.highlight }}
{{ end }}
{{ if $.Scratch.Get "highlight_enabled" }}
{{ $v := .Site.Params.highlight_version | default "9.9.0" }}
{{ with .Site.Params.highlight_style }}
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/{{ $v }}/styles/{{ . }}.min.css">
{{ else }}
<link rel="stylesheet" href="{{ "/css/highlight.min.css" | relURL }}">
{{ end }}
{{ end }}
{{ if not .Site.Params.disable_sri }}
{{ printf "<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css\" integrity=\"%s\" crossorigin=\"anonymous\">" .Site.Data.sri.css.bootstrap | safeHTML }}
{{ printf "<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/academicons/1.8.1/css/academicons.min.css\" integrity=\"%s\" crossorigin=\"anonymous\">" .Site.Data.sri.css.academicons | safeHTML }}
{{ printf "<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css\" integrity=\"%s\" crossorigin=\"anonymous\">" .Site.Data.sri.css.fontAwesome | safeHTML }}
{{ else }}
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/academicons/1.8.1/css/academicons.min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
{{ end }}
{{/* We cannot use SRI with Google Fonts because the CSS is dynamically generated according to the user agent */}}
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lato:400,700%7CMerriweather%7CRoboto+Mono">
<link rel="stylesheet" href="{{ "/css/hugo-academic.css" | relURL }}">
{{ range .Site.Params.custom_css }}
<link rel="stylesheet" href="{{ "/css/" | relURL }}{{ . }}">
{{ end }}
{{ if .Site.GoogleAnalytics }}
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', '{{ .Site.GoogleAnalytics }}', 'auto');
ga('require', 'eventTracker');
ga('require', 'outboundLinkTracker');
ga('require', 'urlChangeTracker');
ga('send', 'pageview');
</script>
<script async src="//www.google-analytics.com/analytics.js"></script>
{{ if not .Site.Params.disable_sri }}
{{ printf "<script async src=\"https://cdnjs.cloudflare.com/ajax/libs/autotrack/2.4.1/autotrack.js\" integrity=\"%s\" crossorigin=\"anonymous\"></script>" .Site.Data.sri.js.autotrack | safeHTML }}
{{ else }}
<script async src="//cdnjs.cloudflare.com/ajax/libs/autotrack/2.4.1/autotrack.js"></script>
{{ end }}
{{ end }}
<link rel="alternate" href="{{ .RSSLink | default .Site.RSSLink }}" type="application/rss+xml" title="{{ .Site.Title }}">
<link rel="feed" href="{{ .RSSLink | default .Site.RSSLink }}" type="application/rss+xml" title="{{ .Site.Title }}">
<link rel="icon" type="image/png" href="{{ "/img/icon.png" | relURL }}">
<link rel="apple-touch-icon" type="image/png" href="{{ "/img/apple-touch-icon.png" | relURL }}">
<link rel="canonical" href="{{ .Permalink }}">
{{ partial "head_custom" . }}
<title>{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title>
</head>
<body id="top" data-spy="scroll" data-target="#navbar-main" data-offset="71">

View file

@ -1,6 +0,0 @@
{{ if .Params.header.image }}
<div class="article-header">
<img src="{{ "/img/" | relURL }}{{ .Params.header.image }}" class="article-banner" itemprop="image">
{{ with .Params.header.caption }}<span class="article-header-caption">{{ . | markdownify | emojify }}</span>{{ end }}
</div>
{{end}}

View file

@ -1,74 +0,0 @@
<nav class="navbar navbar-default navbar-fixed-top" id="navbar-main">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
data-target=".navbar-collapse" aria-expanded="false">
<span class="sr-only">{{ i18n "toggle_navigation" }}</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{{ "/" | relLangURL }}">{{ .Site.Title }}</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse">
<!-- Left Nav Bar -->
<ul class="nav navbar-nav navbar-right">
{{ range .Site.Menus.main }}
{{ if .HasChildren }}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true">
{{ .Name }}
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
{{ range .Children }}
<li class="nav-item">
<a href="{{ .URL | relLangURL }}"{{ if $.IsHome }} data-target="{{ .URL }}"{{ end }}>
{{ .Pre }}
<span>{{ .Name }}</span>
</a>
</li>
{{ end }}
</ul>
</li>
{{ else }}
<li class="nav-item">
<a href="{{ .URL | relLangURL }}"{{ if $.IsHome }} data-target="{{ .URL }}"{{ end }}>
{{ .Pre }}
<span>{{ .Name }}</span>
</a>
</li>
{{ end }}
{{ end }}
{{ if .IsTranslated }}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true">
<i class="fa fa-globe" aria-hidden="true"></i>
<span>{{ index .Site.Data.i18n.languages .Lang }}</span>
</a>
<ul class="dropdown-menu">
{{ range .Translations }}
<li class="nav-item">
<a href="{{ .URL }}"{{ if $.IsHome }} data-target="{{ .URL }}"{{ end }}>
<span>{{ index .Site.Data.i18n.languages .Lang }}</span>
</a>
</li>
{{ end }}
</ul>
</li>
{{ end }}
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container -->
</nav>

View file

@ -1,12 +0,0 @@
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
<nav>
<ul class="pager">
{{ if .Paginator.HasPrev }}
<li><a href="{{ .Paginator.Prev.URL | relLangURL }}">&laquo; Previous</a></li>
{{ end }}
{{ if .Paginator.HasNext }}
<li><a href="{{ .Paginator.Next.URL | relLangURL }}">Next &raquo;</a></li>
{{ end }}
</ul>
</nav>
{{ end }}

View file

@ -1,29 +0,0 @@
{{ $post := .post }}
{{ $page := .page }}
<div class="article-list-item" itemscope itemprop="blogPost">
{{ $preview := $post.Params.header.preview | default true }}
{{ if and $post.Params.header.image $preview }}
<a href="{{ $post.Permalink }}">
<img src="{{ "/img/" | relURL }}{{ $post.Params.header.image }}" class="article-banner" itemprop="image">
</a>
{{end}}
<h3 class="article-title" itemprop="name">
<a href="{{ $post.Permalink }}" itemprop="url">{{ $post.Title }}</a>
</h3>
{{ partial "article_metadata" (dict "content" $post "is_list" 1) }}
<div class="article-style" itemprop="articleBody">
{{ if $post.Params.summary }}
<p>{{ printf "%s" $post.Params.summary | markdownify }}</p>
{{ else if $post.Truncated }}
{{ $post.Summary }}
{{ else }}
{{ $post.Content }}
{{ end }}
</div>
<p class="read-more">
<a href="{{ $post.Permalink }}" class="btn btn-primary btn-outline">
{{ i18n "continue_reading" }}
</a>
</p>
</div>

View file

@ -1,61 +0,0 @@
<div class="pub-list-item" itemscope itemtype="http://schema.org/CreativeWork">
<div class="row">
{{ if .Params.image_preview }}
<div class="col-md-12">
<a href="{{ .Permalink }}">
<img src="{{ "/img/" | relURL }}{{ .Params.image_preview }}" class="pub-banner"
itemprop="image">
</a>
</div>
<div class="col-md-12">
{{ else if .Params.header.image}}
<div class="col-md-12">
<a href="{{ .Permalink }}">
<img src="{{ "/img/" | relURL }}{{ .Params.header.image }}" class="pub-banner" itemprop="image">
</a>
</div>
<div class="col-md-12">
{{ else }}
<div class="col-md-12">
{{ end }}
<h3 class="article-title" itemprop="name">
<a href="{{ .Permalink }}" itemprop="url">{{ .Title }}</a>
</h3>
<div class="pub-abstract" itemprop="text">
{{ if .Params.abstract_short }}
{{ .Params.abstract_short | markdownify }}
{{ else }}
{{ .Params.abstract | markdownify}}
{{ end }}
</div>
<div class="pub-authors" itemprop="author">
{{ with .Params.authors }}
{{ delimit . ", " | markdownify }}
{{ end }}
</div>
<div class="pub-publication">
{{ if .Params.publication_short }}
{{ .Params.publication_short | markdownify }}
{{ else }}
{{ .Params.publication | markdownify }}
{{ end }}
</div>
<div class="pub-links">
{{ partial "publication_links" (dict "content" . "is_list" 1) }}
</div>
</div>
</div>
</div>

View file

@ -1,5 +0,0 @@
<li itemscope itemtype="http://schema.org/CreativeWork">
<i class="fa-li fa fa-file-text-o pub-icon" aria-hidden="true"></i>
<span itemprop="name">{{ .Title }}</span>
<p>{{ partial "publication_links" (dict "content" . "is_list" 1) }}</p>
</li>

View file

@ -1,43 +0,0 @@
{{ $is_list := .is_list }}
{{ $ := .content }}
{{ if $is_list }}
<a class="btn btn-primary btn-outline btn-xs" href="{{ $.Permalink }}">
{{ i18n "btn_details" }}
</a>
{{ end }}
{{ with $.Params.url_pdf }}
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
{{ i18n "btn_pdf" }}
</a>
{{ end }}
{{ with $.Params.url_slides }}
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
{{ i18n "btn_slides" }}
</a>
{{ end }}
{{ with $.Params.url_video }}
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
{{ i18n "btn_video" }}
</a>
{{ end }}
{{ with $.Params.url_code }}
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
{{ i18n "btn_code" }}
</a>
{{ end }}
{{ with $.Params.url_dataset }}
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
{{ i18n "btn_dataset" }}
</a>
{{ end }}
{{ with $.Params.url_project }}
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absLangURL }}">
{{ i18n "btn_project" }}
</a>
{{ end }}
{{ range $.Params.url_custom }}
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ .url | absURL }}">
{{ .name }}
</a>
{{ end }}

View file

@ -1,13 +0,0 @@
<nav>
<ul class="pager">
{{if .PrevInSection}}
<li class="previous"><a href="{{.PrevInSection.Permalink}}"><span
aria-hidden="true">&larr;</span> {{.PrevInSection.Title}}</a></li>
{{end}}
{{if .NextInSection}}
<li class="next"><a href="{{.NextInSection.Permalink}}">{{.NextInSection.Title}} <span
aria-hidden="true">&rarr;</span></a></li>
{{end}}
</ul>
</nav>

View file

@ -1,40 +0,0 @@
{{ if .Site.Params.sharing }}
<div class="share-box" aria-hidden="true">
<ul class="share">
<li>
<a class="facebook"
href="https://www.facebook.com/sharer.php?u={{ .Permalink | html }}"
target="_blank">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a class="twitter"
href="https://twitter.com/intent/tweet?text={{ .Title | html }}&amp;url={{ .Permalink | html }}"
target="_blank">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a class="linkedin"
href="https://www.linkedin.com/shareArticle?mini=true&amp;url={{ .Permalink | html }}&amp;title={{ .Title | html }}"
target="_blank">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a class="weibo"
href="http://service.weibo.com/share/share.php?url={{ .Permalink | html }}&amp;title={{ .Title | html }}"
target="_blank">
<i class="fa fa-weibo"></i>
</a>
</li>
<li>
<a class="email"
href="mailto:?subject={{ .Title | html }}&amp;body={{ .Permalink | html }}">
<i class="fa fa-envelope"></i>
</a>
</li>
</ul>
</div>
{{ end }}

View file

@ -1,29 +0,0 @@
<div class="pub-list-item" itemscope itemtype="http://schema.org/CreativeWork">
<div class="row">
<h3 class="article-title" itemprop="name">
<a href="{{ .Permalink }}" itemprop="url">{{ .Title }}</a>
</h3>
<div class="talk-abstract" itemprop="text">
{{ if .Params.abstract_short }}
{{ .Params.abstract_short }}
{{ else }}
{{ .Params.abstract }}
{{ end }}
</div>
<div class="talk-event">
{{ if .Params.event }}
{{ .Params.event | markdownify }}
{{ else if .Params.event_short }}
{{ .Params.event_short | markdownify }}
{{ end }}
</div>
<div class="talk-links">
{{ partial "talk_links" (dict "content" . "is_list" 1) }}
</div>
</div>
</div>

View file

@ -1,12 +0,0 @@
<li itemscope itemtype="http://schema.org/CreativeWork">
<i class="fa-li fa fa-comment-o pub-icon" aria-hidden="true"></i>
<span itemprop="name"><a href="{{ .Permalink }}">{{ .Title }}</a></span>
<p>
{{ .Date.Format $.Site.Params.date_format }},
{{ if .Params.event_short }}
{{ .Params.event_short | markdownify }}
{{ else if .Params.event }}
{{ .Params.event | markdownify }}
{{ end }}
</p>
</li>

View file

@ -1,33 +0,0 @@
{{ $is_list := .is_list }}
{{ $ := .content }}
{{ if $is_list }}
<a class="btn btn-primary btn-outline btn-xs" href="{{ $.Permalink }}">
{{ i18n "btn_details" }}
</a>
{{ end }}
{{ with $.Params.url_pdf }}
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
{{ i18n "btn_pdf" }}
</a>
{{ end }}
{{ with $.Params.url_slides }}
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
{{ i18n "btn_slides" }}
</a>
{{ end }}
{{ with $.Params.url_video }}
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
{{ i18n "btn_video" }}
</a>
{{ end }}
{{ with $.Params.url_code }}
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ . | absURL }}">
{{ i18n "btn_code" }}
</a>
{{ end }}
{{ range $.Params.url_custom }}
<a class="btn btn-primary btn-outline{{ if $is_list }} btn-xs{{end}}" href="{{ .url | absURL }}">
{{ .name }}
</a>
{{ end }}

View file

@ -1,80 +0,0 @@
{{ $ := .root }}
{{ $page := .page }}
<!-- About widget -->
<div class="row" itemprop="author" itemscope itemtype="http://schema.org/Person" itemref="{{ if $.Site.Params.email }}person-email{{ end }}{{ if $.Site.Params.phone }} person-telephone{{ end }}{{ if $.Site.Params.address}} person-address{{ end }}">
<div class="col-xs-12 col-md-4">
<div id="profile">
{{ if $.Site.Params.gravatar }}
<div class="portrait" style="background-image: url('https://s.gravatar.com/avatar/{{ md5 $.Site.Params.email }}?s=200');"></div>
<meta itemprop="image" content="https://s.gravatar.com/avatar/{{ md5 $.Site.Params.email }}?s=200">
{{ else if $.Site.Params.avatar }}
<div class="portrait" style="background-image: url('{{ $.Site.BaseURL }}img/{{ $.Site.Params.avatar }}');"></div>
<meta itemprop="image" content="{{ $.Site.BaseURL }}img/{{ $.Site.Params.avatar }}">
{{ end }}
<div class="portrait-title">
<h2 itemprop="name">{{ $.Site.Params.name }}</h2>
<h3 itemprop="jobTitle">{{ $.Site.Params.role }}</h3>
{{ if $.Site.Params.organization }}
<h3 itemprop="worksFor" itemscope itemtype="http://schema.org/Organization">
{{ with $.Site.Params.organization_url }}<a href="{{ . }}" target="_blank" itemprop="url">{{ end }}
<span itemprop="name">{{ $.Site.Params.organization }}</span>
{{ if $.Site.Params.organization_url }}</a>{{ end }}
</h3>
{{ end }}
</div>
<link itemprop="url" href="{{ $.Site.BaseURL }}">
<ul class="social-icon" aria-hidden="true">
{{ range $.Site.Params.social }}
{{ $pack := or .icon_pack "fa" }}
<li>
<a itemprop="sameAs" href="{{ .link | safeURL }}" target="_blank">
<i class="{{ $pack }} {{ $pack }}-{{ .icon }} big-icon"></i>
</a>
</li>
{{ end }}
</ul>
</div>
</div>
<div class="col-xs-12 col-md-8" itemprop="description">
{{ $page.Content }}
<div class="row">
{{ with $page.Params.interests }}
<div class="col-sm-5">
<h3>{{ i18n "interests" | markdownify }}</h3>
<ul class="ul-interests">
{{ range .interests }}
<li>{{ . }}</li>
{{ end }}
</ul>
</div>
{{ end }}
{{ with $page.Params.education }}
<div class="col-sm-7">
<h3>{{ i18n "education" | markdownify }}</h3>
<ul class="ul-edu fa-ul">
{{ range .courses }}
<li>
<i class="fa-li fa fa-graduation-cap"></i>
<div class="description">
<p class="course">{{ .course }}{{ with .year }}, {{ . }}{{ end }}</p>
<p class="institution">{{ .institution }}</p>
</div>
</li>
{{ end }}
</ul>
</div>
{{ end }}
</div>
</div>
</div>

Some files were not shown because too many files have changed in this diff Show more