You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IMHO, the render-link hook is useful for changing the appearance of links (e.g., see #269), but it shouldn't rewrite URLs. The relrefinternal Hugo function should be used instead if/when we want to rewrite paths based on page lookups.
This might be a vestige of the time when the docs were a part of the etcd repo rather than here under the website repo.
The text was updated successfully, but these errors were encountered:
The render-link hook is currently rewriting URL paths for non-external links using the
.GetPage
feature (see line 8 below):website/layouts/_default/_markup/render-link.html
Lines 1 to 16 in 6fdc098
IMHO, the render-link hook is useful for changing the appearance of links (e.g., see #269), but it shouldn't rewrite URLs. The relref internal Hugo function should be used instead if/when we want to rewrite paths based on page lookups.
This might be a vestige of the time when the docs were a part of the etcd repo rather than here under the website repo.
The text was updated successfully, but these errors were encountered: