🐛 Fix externalUrl not working on some list pages

pull/2/head
James Panther 2021-08-22 16:58:25 +10:00
parent 0293d0652b
commit 0339729039
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
2 changed files with 7 additions and 8 deletions

View File

@ -4,8 +4,6 @@ All notable changes to Congo will be documented in this file. Things that need a
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
---
## [Unreleased] ## [Unreleased]
### Added ### Added
@ -26,6 +24,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Hugo Modules would fail when using default theme config file - Hugo Modules would fail when using default theme config file
- Some content not centred correctly on the profile homepage layout - Some content not centred correctly on the profile homepage layout
- Some links missing the correct styles when in Firefox - Some links missing the correct styles when in Firefox
- `externalUrl` front matter not working on some list pages
## [1.1.1] - 2020-08-19 ## [1.1.1] - 2020-08-19

View File

@ -1,19 +1,19 @@
<article> <article>
<h3 class="flex items-center mt-6 text-xl font-semibold"> <h3 class="flex items-center mt-6 text-xl font-semibold">
{{ if isset .Params "externalUrl" }} {{ with .Params.externalUrl }}
<a <a
class="hover:underline hover:underline-primary-500 hover:underline-offset-small text-neutral-800 dark:text-neutral" class="hover:underline hover:underline-primary-500 hover:underline-offset-small text-neutral-800 dark:text-neutral"
href="{{ .Params.externalUrl }}" href="{{ . }}"
target="_blank" target="_blank"
rel="external" rel="external"
>{{ .Title }}</a >{{ $.Title }}</a
> >
<span <span
class="text-sm cursor-default" class="-mt-2 text-xs cursor-default text-neutral-400 dark:text-neutral-500"
style="vertical-align: super;"
title="{{ i18n "list.externalurl_title" }}" title="{{ i18n "list.externalurl_title" }}"
>&#8599;</span
> >
&#8599;
</span>
{{ else }} {{ else }}
<a <a
class="hover:underline hover:underline-primary-500 hover:underline-offset-small text-neutral-800 dark:text-neutral" class="hover:underline hover:underline-primary-500 hover:underline-offset-small text-neutral-800 dark:text-neutral"