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).
|
||||
|
||||
---
|
||||
|
||||
## [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
|
||||
|
||||
|
|
|
@ -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" }}"
|
||||
>↗</span
|
||||
>
|
||||
↗
|
||||
</span>
|
||||
{{ else }}
|
||||
<a
|
||||
class="hover:underline hover:underline-primary-500 hover:underline-offset-small text-neutral-800 dark:text-neutral"
|
||||
|
|
Loading…
Reference in New Issue