caddy/modules/caddyhttp/fileserver
Forza 130f6d1f83
fileserver: Set canonical URL on browse template (#5867)
* Browse.html: Add canonical URL and home-link

When contents are equal, but maybe just a sort order is different, it is good to add `<link rel="canonical" href="base-path/" />`. This helps search engines propeely index the page.

I also added a link to the home page with the name of `{{.Host}}` just above the bread crumbs to make the page clearer.

https://paste.tnonline.net/files/28Wun5CQZiqA_Screenshot_20231007_134435_Opera.png

* Update browse.html
2023-10-11 13:47:38 -06:00
..
testdata fileserver: Support glob expansion in file matcher (#4993) 2022-09-05 13:53:41 -06:00
browse.go fileserver: Export BrowseTemplate 2023-08-29 09:34:20 -06:00
browse.html fileserver: Set canonical URL on browse template (#5867) 2023-10-11 13:47:38 -06:00
browsetplcontext_test.go fileserver: Use EscapedPath for browse (#5534) 2023-05-15 10:48:05 -06:00
browsetplcontext.go ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
caddyfile.go Drop requirement for filesystems to implement fs.StatFS 2022-09-05 19:25:34 -04:00
command.go fileserver: Add command shortcuts -l and -a (#5854) 2023-10-10 20:57:18 +00:00
matcher_test.go go.mod: Upgrade various dependencies (#5362) 2023-02-08 17:49:17 +00:00
matcher.go ci: use gci linter (#5708) 2023-08-14 09:41:15 -06:00
staticfiles_test.go caddyhttp: Refactor and export SanitizedPathJoin for use in fastcgi (#4207) 2021-06-17 09:59:08 -06:00
staticfiles.go fileserver: docs: clarify the ability to produce JSON array with browse (#5751) 2023-08-18 19:04:08 +00:00