Commit Graph

10 Commits

Author SHA1 Message Date
Aditya Telange fe94d7f347
Revert "Remove trailing and leading slashes off the $url for Breadcrumb gen;"
This reverts commit 0f0e027def.
2021-03-28 20:14:11 +05:30
Aditya Telange 0f0e027def
Remove trailing and leading slashes off the $url for Breadcrumb gen;
so that no empty values remain in []interface

fixes: #331
2021-03-28 19:25:09 +05:30
Aditya Telange 0ca760a9b3
add Description and Summary in JSON schema as in other templates 2021-03-23 15:10:40 +05:30
Jason Lavoie 5e05ed6543
Enforce language url subsitution on path boundary for breadcrumbs (#254)
* Without this, the section name gets mangled when the language was a
  sub-string of the section.  For example, under 'en', a section named
  "fragment" changes to "fragmt".
2021-02-22 11:30:04 +05:30
Aditya Telange e53bfe514a fix json schema parsing error on pages not having a section 2021-02-16 18:37:55 +05:30
Aditya Telange 17d48ce9bb
add structured data for breadcrumb nav
https://developers.google.com/search/docs/data-types/breadcrumb
2021-02-12 13:13:33 +05:30
Aditya Telange 14c524539b
Remove whitespace around urls wherever applicable
- corrects mistyped urls with leading or trailing whitespaces
2020-12-13 16:56:41 +05:30
Aditya Telange 1256f353e5
json-schema:fix multiple authors in config displayed incorrectly
* is of type `[]interface {}` and not `[]string`
2020-10-25 13:08:03 +05:30
Aditya Telange 44bc299ca3
json-schema: add support for multiple authors 2020-10-25 12:49:58 +05:30
Aditya Telange fb945ba3c1
json-schema: add support for Rich Results: Json schema for structured data (#36)
* json-schema: init

* sameAs can be set through .Site.Params.schema.sameAs
* if it is not specified but social-icons exsists, we use social-icons for sameAs vars
* .Site.Params.schema.sameAs overrides social-icons
* publisherType can be changed via .Site.Params.schema.publisherType
2020-10-15 10:21:33 +05:30