summaryrefslogtreecommitdiff
path: root/layouts/partials/templates
AgeCommit message (Collapse)Author
2022-05-08remove shits from opengraphReorx
2022-05-08rename some image variables; rss default show contentReorx
2022-05-05add site title after titleReorx
2022-05-05simpler twitter cardsReorx
2022-05-05reindent twitter_cardsReorx
2022-05-05cover.relative -> cover.absoluteReorx
2022-03-27Use `site` function instead of `.Site` or `$.Site`Aditya Telange
- The site function provides global access to the same data as the .Site page method. - Current context (`.`) is never considered.
2021-05-01Use `title` instead of `humanize`Aditya Telange
- https://gohugo.io/functions/title/
2021-05-01Update hugo internal templatesAditya Telange
Remove .Site.Authors from embedded templates https://github.com/gohugoio/hugo/commit/f6745ad3588a7b3aaae228fec18fe0027affd566
2021-03-30Fix Spacing in overall repoAditya Telange
2021-03-28Revert "Remove trailing and leading slashes off the $url for Breadcrumb gen;"Aditya Telange
This reverts commit 0f0e027def4bce325f810be4c9f4e3c3a9218b68.
2021-03-28Remove trailing and leading slashes off the $url for Breadcrumb gen;Aditya Telange
so that no empty values remain in []interface fixes: #331
2021-03-23Update internal tempplate from hugoDaniel Atwood
cp from ffd9dac4218b8f1709de04f7131ca661715fc481 & fe77f7434bc0d7a9b54af69014eb28dbea2b236b tpl: Update date logic of opengraph and schema internal templates * Fix: updated date logic in opengraph template * Updated date logic in schema template * Reformatted opengraph and schema * Wrapped PublishDate and Lastmod in with tpl: Make the build green again Co-authored-by: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= <bjorn.erik.pedersen@gmail.com> Signed-off-by: Aditya Telange <21258296+adityatelange@users.noreply.github.com>
2021-03-23add Description and Summary in JSON schema as in other templatesAditya Telange
2021-02-22Enforce language url subsitution on path boundary for breadcrumbs (#254)Jason Lavoie
* 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-16fix json schema parsing error on pages not having a sectionAditya Telange
2021-02-12add structured data for breadcrumb navAditya Telange
https://developers.google.com/search/docs/data-types/breadcrumb
2020-12-16templates: Fix series detection in opengraphMaciej Sawicki
When inside front matter you specified series with spaces, then the opengraph template wouldn't detect other articles, because in `.Site.Taxonomies.series` they are stored by urlized key. Example: ```yaml series: - My Series ``` ```gohtml {{/* in a template */}} {{- $series := index .Site.Taxonomies.series$name }} {{/* was resolved to */}} {{- $series := index {'my-series': ...} "MySeries" }} ``` (cherry picked from commit d2d493ab5d6a054001a8448ea0de2949dac4b30e)
2020-12-13Remove whitespace around urls wherever applicableAditya Telange
- corrects mistyped urls with leading or trailing whitespaces
2020-10-25json-schema:fix multiple authors in config displayed incorrectlyAditya Telange
* is of type `[]interface {}` and not `[]string`
2020-10-25json-schema: add support for multiple authorsAditya Telange
2020-10-15json-schema: add support for Rich Results: Json schema for structured data (#36)Aditya Telange
* 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-12templates: social-meta: prefer cover image over other imagesAditya Telange
2020-10-11templates: add cover image to be linked into metaAditya Telange
for opengraph, schema and twitter
2020-10-11templates: Add Twitter Cards, OpenGraph, SchemaAditya Telange
This code is licensed under Apache License 2.0 and is part of https://github.com/gohugoio/hugo