Commit Graph
25 Commits
Author SHA1 Message Date
George Cushen 486c70c216 feat: add Netlify form options to Contact widget
Help reduce spam
2020-06-30 19:53:06 +01: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
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 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
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 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 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 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 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 2f9d2ab80f fix(css): contact widget style wasn't applied if widget was renamed 2018-10-25 14:21:49 +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
Prateek Kumar 965a64ffaa Migrate from Bootstrap v3 to v4 (#571) 2018-09-08 22:50:36 +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
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 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 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 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
Ronny Chevalier 74041d65d1 Add more schema tags (#157)
* about,contact: add more schema tags for contact related information.
   It adds schema tags for the e-mail, telephone, and address, when they
   are available. They are linked to the Person type.

* about: add the schema Organization type.
   This way we also tag the organization url not just its name.

* about: add a hidden url schema property to the person.
   It makes sure that the URL of the website is linked to the person.

* about: add the sameAs property for each social link.
2017-04-20 20:18:33 +01:00
Kirill Kirilenko bdb68fdf7d contact widget: Support Telegram (#70) 2016-12-27 02:07:23 +00:00
George Cushen 991a343d48 contact widget: Add office hours and Skype options 2016-12-19 03:42:15 +00:00
George Cushen 8277658b81 Set widget identifiers to their respective filenames
Example: `content/home/about.md` widget is now linked from the
menu bar by setting the relevant URL as "#about" in `config.toml`.
2016-11-24 15:57:54 +00:00
George Cushen 9c27ae98cf css: Improve style of contact widget and refactor (#36) 2016-10-05 03:12:19 +01:00
Stephan Kulla fe04cf84b9 contact.html: Shorten code for autolinks (#49)
Signed-off-by: Stephan Kulla <git.mail@kulla.me>
2016-10-04 15:33:51 +01:00
Stephan Kulla db9dcf6055 widgets: Direct inclusion of widgets (#45)
Replace the long if-else block in index.html with a direct inclusion of
the widgets.

Signed-off-by: Stephan Kulla <git.mail@kulla.me>
2016-10-04 01:14:37 +01:00
George Cushen 61769e9b29 Refactor homepage sections as dedicated widgets in content/home/.
Enable full control of the order in which sections appear.
Add option to add custom Markdown content at top of widgets (e.g. to introduce sections).
Add Keybase option to config.
Use 2 space indentation.
Update docs.
Note: requires Hugo 0.16.
2016-09-24 18:22:47 +01:00