path.Ext
The extension is the suffix beginning at the final dot in the final slash-separated element of path; it is empty if there is no dot.
{{ path.Ext "a/b/c/news.html" }} → .html
The extension is the suffix beginning at the final dot in the final slash-separated element of path; it is empty if there is no dot.
{{ path.Ext "a/b/c/news.html" }} → .html