mirror of https://github.com/jpanther/congo.git
🐛 Fix externalUrl not working on some list pages
parent
0293d0652b
commit
0339729039
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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" }}"
|
||||||
>↗</span
|
|
||||||
>
|
>
|
||||||
|
↗
|
||||||
|
</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"
|
||||||
|
|
Loading…
Reference in New Issue