1
0

content: Use ref instead of relref for internal links

Hugo 0.45 changed the behavior of ref and relref. The blog post, docs,
and error messages are all fairly confusing to be honest, but changing
the paths to simply include the document name seems to work, though it
appears there is a non-standard case when resolving a reference from a
post in another language. In that case the only ref syntax that worked
was the longer one that uses "path" and "lang".

Switching from relref to ref is probably unnecessary, but I wanted the
links to be absolute and never really noticed that they weren't.

See: https://gohugo.io/news/0.45-relnotes/
This commit is contained in:
Alan Orth 2018-07-31 00:58:52 +03:00
parent 5fe47b3564
commit 28dcadcd90
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
5 changed files with 5 additions and 5 deletions

View File

@ -12,7 +12,7 @@ images = ["/2016/09/DSC_0008.jpg"]
{{< figure src="/2016/09/DSC_0008.jpg" title="A colorful floral pattern pops out of the ceiling" alt="A hand-painted floral pattern on wooden panels on the ceiling" >}}
Another day, another exquisite, hand-painted ceiling in Amman. Just like the [other hand-painted wood ceiling]({{< relref "posts/beautiful-hand-painted-woodwork.md" >}}) I posted about two weeks ago, the work was done by an old Syrian man. This one is actually in my flat, and I may or may not have taken this picture while laying on my back on the living room floor.
Another day, another exquisite, hand-painted ceiling in Amman. Just like the [other hand-painted wood ceiling]({{< ref "beautiful-hand-painted-woodwork.md" >}}) I posted about two weeks ago, the work was done by an old Syrian man. This one is actually in my flat, and I may or may not have taken this picture while laying on my back on the living room floor.
<!--more-->

View File

@ -11,7 +11,7 @@ author = "Alan Orth"
{{< figure src="/2018/02/DSC_0005.JPG" title="Remains of the classical basilica of Pella" alt="Remains of the classical basilica of Pella" >}}
These days there isn't much to see of the GrecoRoman city of Pella in northwestern Jordan. Sadly, the ancient ruins here suffer from being slightly smaller, slightly less well-preserved, and slightly less convenient to visit than the similar ruins at [Jerash]({{< relref "posts/greco-roman-ruins-jerash.md" >}}). With a bit of imagination and some historical background, however, they are equally enchanting and even have a unique character of their own.
These days there isn't much to see of the GrecoRoman city of Pella in northwestern Jordan. Sadly, the ancient ruins here suffer from being slightly smaller, slightly less well-preserved, and slightly less convenient to visit than the similar ruins at [Jerash]({{< ref "greco-roman-ruins-jerash.md" >}}). With a bit of imagination and some historical background, however, they are equally enchanting and even have a unique character of their own.
<!--more-->

View File

@ -11,7 +11,7 @@ author = "Alan Orth"
{{< figure src="/2018/07/IMG_20180707_185402.jpg" title="Iconic Armenian Church in Jabal Ashrafieh at Sunset" alt="Church in typical Armenian style with pointy blue roof and the city behind it." >}}
Shortly after moving to Amman [I noticed this unique building]({{< relref "posts/saint-thaddeus-church-amman.md" >}}) on a distant hill and I set out on a sort of scavenger hunt to find it. The walk from downtown to Jabal Ashrafieh is packed with winding streets and steep staircases (some of which go nowhere). To this day the church is one of my favorite landmarks in Amman and I often make the trek there when I'm feeling like getting some exercise and exploring the city. I like to think of it as a pilgrimageit *is* a religious site after all!
Shortly after moving to Amman [I noticed this unique building]({{< ref "saint-thaddeus-church-amman.md" >}}) on a distant hill and I set out on a sort of scavenger hunt to find it. The walk from downtown to Jabal Ashrafieh is packed with winding streets and steep staircases (some of which go nowhere). To this day the church is one of my favorite landmarks in Amman and I often make the trek there when I'm feeling like getting some exercise and exploring the city. I like to think of it as a pilgrimageit *is* a religious site after all!
<!--more-->

View File

@ -11,7 +11,7 @@ tags = ["Джамия", "Акаба"]
{{< figure src="/2016/10/DSC_0024.JPG" title="Красива джамия на морския бряг, заобиколена от палмови дървета" alt="Красива джамия на морския бряг, заобиколена от палмови дървета" >}}
Най-добрият начин да се опише джамията „Шейх Зайед“ е „перлата на Акаба“. Тази живописна джамия на йорданския морски бряг впечатлява с красотата си, но „перлата в короната“ — да продължим аналогията — е безупречната арабска калиграфия, инкрустирана на фасадата ѝ. За съжаление, [малко може да се напише за самия град Акаба]({{< relref "posts/aqaba-dirty-disappointing.md" >}}).
Най-добрият начин да се опише джамията „Шейх Зайед“ е „перлата на Акаба“. Тази живописна джамия на йорданския морски бряг впечатлява с красотата си, но „перлата в короната“ — да продължим аналогията — е безупречната арабска калиграфия, инкрустирана на фасадата ѝ. За съжаление, [малко може да се напише за самия град Акаба]({{< ref path="aqaba-dirty-disappointing.md" lang="en" >}}).
<!--more-->

View File

@ -11,7 +11,7 @@ tags = ["Mosque", "Aqaba"]
{{< figure src="/2016/10/DSC_0024.JPG" title="Beautiful mosque by the sea, surrounded by palm trees" alt="Beautiful mosque by the sea, surrounded by palm trees" >}}
The best way to describe the Sheikh Zayed mosque would be "the pearl of Aqaba." There is a lot to love about this picturesque mosque by the Jordanian seaside, but its crown jewelto continue the analogyis the impeccable Arabic calligraphy inlaid in its facade. Sadly, Aqaba itself [isn't much to write home about]({{< relref "posts/aqaba-dirty-disappointing.md" >}}).
The best way to describe the Sheikh Zayed mosque would be "the pearl of Aqaba." There is a lot to love about this picturesque mosque by the Jordanian seaside, but its crown jewelto continue the analogyis the impeccable Arabic calligraphy inlaid in its facade. Sadly, Aqaba itself [isn't much to write home about]({{< ref "aqaba-dirty-disappointing.md" >}}).
<!--more-->