🐛 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).
---
## [Unreleased]
### 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
- Some content not centred correctly on the profile homepage layout
- Some links missing the correct styles when in Firefox
- `externalUrl` front matter not working on some list pages
## [1.1.1] - 2020-08-19

View File

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