mirror of https://github.com/jpanther/congo.git
Compare commits
5 Commits
8aa2b68329
...
68e666af2f
Author | SHA1 | Date |
---|---|---|
stereobooster | 68e666af2f | |
James Panther | e3015b9006 | |
James Panther | e4fafd7359 | |
James Panther | 79a66d4fda | |
stereobooster | e70c968e56 |
|
@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## [2.7.4] - 2023-11-05
|
||||
|
||||
### Fixed
|
||||
|
||||
- Links with non-whitespace characters preceeding them are prefixed with a space ([#695](https://github.com/jpanther/congo/issues/695))
|
||||
|
||||
## [2.7.3] - 2023-10-31
|
||||
|
||||
### Fixed
|
||||
|
@ -774,7 +780,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||
- Advanced customisation using simple Tailwind colour definitions and styles
|
||||
- Fully documented
|
||||
|
||||
[Unreleased]: https://github.com/jpanther/congo/compare/v2.7.3...HEAD
|
||||
[Unreleased]: https://github.com/jpanther/congo/compare/v2.7.4...HEAD
|
||||
[2.7.4]: https://github.com/jpanther/congo/compare/v2.7.3...v2.7.4
|
||||
[2.7.3]: https://github.com/jpanther/congo/compare/v2.7.2...v2.7.3
|
||||
[2.7.2]: https://github.com/jpanther/congo/compare/v2.7.1...v2.7.2
|
||||
[2.7.1]: https://github.com/jpanther/congo/compare/v2.7.0...v2.7.1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*! Congo v2.7.3 | MIT License | https://github.com/jpanther/congo */
|
||||
/*! Congo v2.7.4 | MIT License | https://github.com/jpanther/congo */
|
||||
|
||||
/*! tailwindcss v3.3.5 | MIT License | https://tailwindcss.com */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*! Congo v2.7.3 | MIT License | https://github.com/jpanther/congo */
|
||||
/*! Congo v2.7.4 | MIT License | https://github.com/jpanther/congo */
|
||||
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
|
|
|
@ -1,11 +1,17 @@
|
|||
{{ $link := .Destination }}
|
||||
{{ $isRemote := strings.HasPrefix $link "http" }}
|
||||
{{- $link := .Destination -}}
|
||||
{{- $isRemote := strings.HasPrefix $link "http" -}}
|
||||
{{- if not $isRemote }}
|
||||
{{ $url := urls.Parse .Destination }}
|
||||
{{ if $url.Path }}
|
||||
{{- if $url.Path }}
|
||||
{{ $fragment := "" }}
|
||||
{{- with $url.Fragment }}{{ $fragment = printf "#%s" . }}{{ end -}}
|
||||
{{- with .Page.GetPage $url.Path }}{{ $link = printf "%s%s" .RelPermalink $fragment }}{{ end -}}
|
||||
{{ end }}
|
||||
{{- with .Page.GetPage $url.Path }}
|
||||
{{ $link = printf "%s%s" .RelPermalink $fragment }}
|
||||
{{ else }}
|
||||
{{- if hasSuffix $url.Path ".md" }}
|
||||
{{ warnf "Can't resolve: %s" .Destination }}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
<a href="{{ $link | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if $isRemote }} target="_blank" rel="noreferrer"{{ end }}>{{- .Text | safeHTML -}}</a>
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hugo-congo-theme",
|
||||
"version": "2.7.3",
|
||||
"version": "2.7.4",
|
||||
"description": "Congo theme for Hugo",
|
||||
"scripts": {
|
||||
"preinstall": "rimraf assets/lib",
|
||||
|
|
Loading…
Reference in New Issue