summaryrefslogtreecommitdiffhomepage
path: root/hugolib/site_render.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-03-30 16:46:18 +0100
committerBjørn Erik Pedersen <[email protected]>2019-03-30 16:46:51 +0100
commitf9d6feca0802cd83c4d843244ce389cf7c792cec (patch)
treef8d20cf525e60412fbfa3cca1041275def7a8c7b /hugolib/site_render.go
parent439ab0339d9ac6972caabaa55fa41887ace839cb (diff)
downloadhugo-f9d6feca0802cd83c4d843244ce389cf7c792cec.tar.gz
hugo-f9d6feca0802cd83c4d843244ce389cf7c792cec.zip
hugolib: Fix alias path for AMP and similar
Fixes #5760
Diffstat (limited to 'hugolib/site_render.go')
-rw-r--r--hugolib/site_render.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/site_render.go b/hugolib/site_render.go
index a6cf4bafa..c528e61a8 100644
--- a/hugolib/site_render.go
+++ b/hugolib/site_render.go
@@ -305,7 +305,7 @@ func (s *Site) renderAliases() error {
for _, a := range p.Aliases() {
if f.Path != "" {
// Make sure AMP and similar doesn't clash with regular aliases.
- a = path.Join(a, f.Path)
+ a = path.Join(f.Path, a)
}
lang := p.Language().Lang