summaryrefslogtreecommitdiffstats
path: root/docs/layouts
Commit message (Collapse)AuthorAgeFilesLines
* Remove meta charset from HTML5 documents (#24744)silverwind2023-05-161-1/+0
| | | | | | | When `<!DOCTYPE html>` is present, the default (and only valid) charset it `utf-8` so it does not need to be specified. Also we do serve with HTML with `Content-Type: text/html; charset=utf-8`, so it is duplicate info anyways.
* Override alias template to preserve anchor fragment (#24394)John Olheiser2023-04-281-0/+13
| | | | | | | | | | | | | | | | | | | | This PR fixes an annoyance where docs aliases aren't preserving their anchor fragments. The refactor included aliases to keep old links from dying, but currently they redirect without their anchor, which was used _often_ to jump to sections. This overrides the alias template with an alternative that preserves the anchor fragment. To note, this is just a copy of the [embedded template](https://github.com/gohugoio/hugo/blob/5c7b79cf7f00aa2651dd5f0364ee575af6715a31/tpl/tplimpl/embedded/templates/alias.html), but defaults to a JS redirect that preserves the anchor, and uses the meta tag as a fallback for noscript users. --------- Signed-off-by: jolheiser <john.olheiser@gmail.com>
* docs: move search input to navbar (#20551)Norwin2022-08-081-6/+0
| | | | | | * remove search item from sidebar * fix search for some docs languages Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add node version variable to docs (#10620)John Olheiser2020-03-051-0/+1
| | | | | | Also adjusted other version mentions so go version is always mentioned as major.minor and node only as major. Co-authored-by: silverwind <me@silverwind.io>
* Versions (#10597)guillep2k2020-03-042-0/+2
| | | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Implement documentation search (#8937)John Olheiser2019-11-132-0/+49
| | | | | | * Implement documentation search Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Add config option and shortcode for Gitea version (#7940)John Olheiser2019-08-231-0/+1
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Import docs into main repository (#2874)techknowlogick2017-11-261-0/+23
* import docs into main repository Signed-off-by: Matti Ranta <matti@mdranta.net>