summaryrefslogtreecommitdiffstats
path: root/tpl/tplimpl/embedded/templates.autogen.go
AgeCommit message (Collapse)Author
2022-02-14tpl: Use go:embed to load internal templatesBjørn Erik Pedersen
Fixes #8297
2021-12-02Remove empty href element from pagination templateJoe Mooring
Closes #9149
2021-11-21Add deprecation warning to google_news templateJoe Mooring
Closes #9172
2021-11-01Update Twitter shortcode oEmbed endpointJoe Mooring
The existing endpoint will be retired and removed on November 23, 2021. References: - https://twittercommunity.com/t/consolidating-the-oembed-functionality/154690 - https://developer.twitter.com/en/docs/twitter-for-websites/oembed-api#Embedded This is a backward compatible change. The existing endpoint requires a single parameter: the id of the tweet. The new endpoint requires two parameters: the id of the tweet, and the user with whom it is associated. For the moment, if you supply the wrong user, the request will be redirected (with a small delay) to the correct user/id pair. This behavior is undocumented, but we will take advantage of it as Hugo site authors transition to the new syntax. {{< tweet 1453110110599868418 >}} --> works, throws warning, deprecate at some point {{< tweet user="SanDiegoZoo" id="1453110110599868418" >}} --> new syntax Fixes #8130
2021-07-05Fix tab selection of disabled items in internal pagination templateRaoul
2021-06-29Fix date format in schema and opengraph templatesJoe Mooring
Fixes #8671
2021-06-18tpl: Rename err-missing-instagram-accesstoken => ↵Bjørn Erik Pedersen
error-missing-instagram-accesstoken To get it in line with the other.
2021-06-08tpl: Add a terse pagination template variant to improve performanceJoe Mooring
These calls are equivalent: {{ template "_internal/pagination.html" . }} {{ template "_internal/pagination.html" (dict "page" .) }} {{ template "_internal/pagination.html" (dict "page" . "format" "default") }} To use an alternate format: {{ template "_internal/pagination.html" (dict "page" . "format" "terse") }} Fixes #8599
2021-06-08Upgrade Instagram shortcodeBjørn Erik Pedersen
Fixes #7879
2021-04-29Remove .Site.Authors from embedded templatesJoe Mooring
Closes #4458
2021-04-15Remove extraneous space from figure shortcodeJoe Mooring
Fixes #8401
2021-03-03Add support for Google Analytics v4Daniel Atwood
2021-02-18tpl: Make the build green againBjørn Erik Pedersen
2021-02-18tpl: Regenerate internal templatesBjørn Erik Pedersen
2021-02-06tpl/embedded: Exclude pages without Permalink from sitemapJeremy Epstein
2020-12-16tpl: Regenerate templatesBjørn Erik Pedersen
2020-12-02tpl: Add title parameter to YouTube shortcodeAndrew Zenk
2020-10-16embedded: Always show page number when 5 pages or lessCameron Moore
Fixes #7523
2020-10-02tpl: Add Do Not Track (dnt) option to Vimeo shortcodeJosh Gerdes
Added a Vimeo EnableDNT privacy option to the Hugo config. This will enable the Vimeo 'Do Not Track' flag when either Vimeo shortcode tempalte options are used. When enabled, it will force the Vimeo player to be blocked from tracking any session data, including all cookies and stats. Fixes #7700
2020-08-12Remove trailing whitespace and tabs from RSS templatesKyle Anderson
The rss templates had some tab characters mixed in with the spaces. Additionally there would end up being trailing whitespace in output rss feeds, which looks red in git diff.
2020-08-06Revert "Fix ellipsis display logic in pagination template"Joe Mooring
This reverts commit 2fa851e6500752c0cea1da5cfdfc6d99e0a81a71.
2020-07-31Fix ellipsis display logic in pagination templateJoe Mooring
Closes #7523
2020-07-23Fix date format in internal schema templateJoe Mooring
Prior to this change, the offset indicator for dates with positive offsets was rendered as &#43; instead of +. Fixes #7495
2020-06-12Regenerate templatesBjørn Erik Pedersen
2020-05-07Use .Lastmod for og:updated_timeDaniel Tipping
.Lastmod is the time at which the website was most recently updated, rather than .Date which is the time at which the website content file was created.
2020-02-18tpl: Adjust the RSS taxonomy logicBjørn Erik Pedersen
See #6909
2020-02-18tpl: Fix RSS template for the terms listingBjørn Erik Pedersen
Fixes #6909
2019-12-12Rework template handling for function and map lookupsBjørn Erik Pedersen
This is a big commit, but it deletes lots of code and simplifies a lot. * Resolving the template funcs at execution time means we don't have to create template clones per site * Having a custom map resolver means that we can remove the AST lower case transformation for the special lower case Params map Not only is the above easier to reason about, it's also faster, especially if you have more than one language, as in the benchmark below: ``` name old time/op new time/op delta SiteNew/Deep_content_tree-16 53.7ms ± 0% 48.1ms ± 2% -10.38% (p=0.029 n=4+4) name old alloc/op new alloc/op delta SiteNew/Deep_content_tree-16 41.0MB ± 0% 36.8MB ± 0% -10.26% (p=0.029 n=4+4) name old allocs/op new allocs/op delta SiteNew/Deep_content_tree-16 481k ± 0% 410k ± 0% -14.66% (p=0.029 n=4+4) ``` This should be even better if you also have lots of templates. Closes #6594
2019-11-26tpl/tplimpl: Featured and Site.Params image support for SchemaMax Arnold
2019-11-26tpl/tplimpl: Add support for featured and global image to OpenGraph templateMax Arnold
2019-10-12tpl: Add optional "title" attribute to iframe in Vimeo shortcodeZach Bayoff
Add an optional "title" attribute to the iframe in the vimeo shortcode. If one is not given, the title attribute will default to "vimeo video". It is imperative for iframes to have a non-empty "title" attribute in order to meet WCAG2.0 accessibility guidelines https://www.w3.org/TR/WCAG20-TECHS/H64.
2019-09-29Support typed bool, int and float in shortcode paramsBjørn Erik Pedersen
This means that you now can do: {{< vidur 9KvBeKu false true 32 3.14 >}} And the boolean and numeric values will be converted to `bool`, `int` and `float64`. If you want these to be strings, they must be quoted: {{< vidur 9KvBeKu "false" "true" "32" "3.14" >}} Fixes #6371
2019-09-21tpl: Add `rel="noopener"` for external linksXhmikosR
This could be a security and performance issue. See https://developers.google.com/web/tools/lighthouse/audits/noopener
2019-09-21tpl: Remove unneeded spaceXhmikosR
2019-08-30tpl: Migrate last shortcodes (YouTube and Vimeo) to HTTPS embedsJake Jarvis
2019-08-17tpl: Use RegularPages for RSS templateBjørn Erik Pedersen
This is in line with how it was in Hugo 0.56. See #6238
2019-08-17tpl: Avoid "home page warning" in RSS templateBjørn Erik Pedersen
See #6238
2019-08-08Simplify page tree logicBjørn Erik Pedersen
This is preparation for #6041. For historic reasons, the code for bulding the section tree and the taxonomies were very much separate. This works, but makes it hard to extend, maintain, and possibly not so fast as it could be. This simplification also introduces 3 slightly breaking changes, which I suspect most people will be pleased about. See referenced issues: This commit also switches the radix tree dependency to a mutable implementation: github.com/armon/go-radix. Fixes #6154 Fixes #6153 Fixes #6152
2019-08-01tpl: Regenerate templatesBjørn Erik Pedersen
2019-07-24Add Hugo ModulesBjørn Erik Pedersen
This commit implements Hugo Modules. This is a broad subject, but some keywords include: * A new `module` configuration section where you can import almost anything. You can configure both your own file mounts nd the file mounts of the modules you import. This is the new recommended way of configuring what you earlier put in `configDir`, `staticDir` etc. And it also allows you to mount folders in non-Hugo-projects, e.g. the `SCSS` folder in the Bootstrap GitHub project. * A module consists of a set of mounts to the standard 7 component types in Hugo: `static`, `content`, `layouts`, `data`, `assets`, `i18n`, and `archetypes`. Yes, Theme Components can now include content, which should be very useful, especially in bigger multilingual projects. * Modules not in your local file cache will be downloaded automatically and even "hot replaced" while the server is running. * Hugo Modules supports and encourages semver versioned modules, and uses the minimal version selection algorithm to resolve versions. * A new set of CLI commands are provided to manage all of this: `hugo mod init`, `hugo mod get`, `hugo mod graph`, `hugo mod tidy`, and `hugo mod vendor`. All of the above is backed by Go Modules. Fixes #5973 Fixes #5996 Fixes #6010 Fixes #5911 Fixes #5940 Fixes #6074 Fixes #6082 Fixes #6092
2019-06-26tpl/tplimpl: Regenerate templatesBjørn Erik Pedersen
2019-05-26Remove references to Google+Bruno Amaral
According to google, this is no longer supported and structured data should be used instead: https://support.google.com/webmasters/answer/6083347?hl=en
2019-05-17tpl: Fix internal templates usage of safeHTMLAttrRodolfo Carvalho
The `safeHTMLAttr` function operates on a full attribute definition, not just within the attribute value. Docs: https://gohugo.io/functions/safehtmlattr/ For `opengraph.html`, run the whole `content` HTML attribute through `safeHTMLAttr`. That will preserve `+` signs in formatted dates. For `vimeo_simple.html`, `safeHTMLAttr` was in the context of an attribute value, thus having no effect. In this case we could replace it with `safeURL`, but since the code is coming from an API it is safer to just let Go's template engine sanitize the value as it already does with `provider_url`. Fixes #5236 (no need to change Go upstream) Related to #5246
2019-04-09tpl/tplimpl: Replace deprecated .GetParam usageBjørn Erik Pedersen
Fixes #5834
2019-04-08Misc paginator adjustmentsBjørn Erik Pedersen
* Rewind paginator for server mode * Add some more related tests. * Replace the clumsy scratch constructs in internal paginator template with variables See #5825
2019-03-23Make Page an interfaceBjørn Erik Pedersen
The main motivation of this commit is to add a `page.Page` interface to replace the very file-oriented `hugolib.Page` struct. This is all a preparation step for issue #5074, "pages from other data sources". But this also fixes a set of annoying limitations, especially related to custom output formats, and shortcodes. Most notable changes: * The inner content of shortcodes using the `{{%` as the outer-most delimiter will now be sent to the content renderer, e.g. Blackfriday. This means that any markdown will partake in the global ToC and footnote context etc. * The Custom Output formats are now "fully virtualized". This removes many of the current limitations. * The taxonomy list type now has a reference to the `Page` object. This improves the taxonomy template `.Title` situation and make common template constructs much simpler. See #5074 Fixes #5763 Fixes #5758 Fixes #5090 Fixes #5204 Fixes #4695 Fixes #5607 Fixes #5707 Fixes #5719 Fixes #3113 Fixes #5706 Fixes #5767 Fixes #5723 Fixes #5769 Fixes #5770 Fixes #5771 Fixes #5759 Fixes #5776 Fixes #5777 Fixes #5778
2019-01-25Fix OpenGraph image fallback to site paramsElliot Murphy
Signed-off-by: Elliot Murphy <statik@users.noreply.github.com>
2018-11-27tpl: Regenerate templatesBjørn Erik Pedersen
2018-11-27tpl: Add "param" shortcodeBjørn Erik Pedersen
Fixes #4010
2018-11-01Add file (line/col) info to ref/relref errorsBjørn Erik Pedersen
See #5371