mirror of
https://github.com/TrezOne/congo-hindi-gujarati.git
synced 2026-07-21 10:14:13 -04:00
@@ -1,9 +1,11 @@
|
|||||||
{
|
{
|
||||||
|
"plugins": ["prettier-plugin-go-template"],
|
||||||
"goTemplateBracketSpacing": true,
|
"goTemplateBracketSpacing": true,
|
||||||
"htmlWhitespaceSensitivity": "css",
|
"htmlWhitespaceSensitivity": "css",
|
||||||
"printWidth": 100,
|
"printWidth": 100,
|
||||||
"singleQuote": false,
|
"singleQuote": false,
|
||||||
"tabWidth": 2,
|
"tabWidth": 2,
|
||||||
|
"useTabs": false,
|
||||||
"trailingComma": "es5",
|
"trailingComma": "es5",
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Extra whitespace added after links ([#679](https://github.com/jpanther/congo/issues/679))
|
||||||
|
|
||||||
## [2.7.1] - 2023-10-24
|
## [2.7.1] - 2023-10-24
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
{{ $link := .Destination }}
|
{{ $link := .Destination }}
|
||||||
{{ $isRemote := strings.HasPrefix $link "http" }}
|
{{ $isRemote := strings.HasPrefix $link "http" }}
|
||||||
{{- if not $isRemote -}}
|
{{- if not $isRemote }}
|
||||||
{{ $url := urls.Parse .Destination }}
|
{{ $url := urls.Parse .Destination }}
|
||||||
{{- if $url.Path -}}
|
{{ if $url.Path }}
|
||||||
{{ $fragment := "" }}
|
{{ $fragment := "" }}
|
||||||
{{- with $url.Fragment }}{{ $fragment = printf "#%s" . }}{{ end -}}
|
{{- 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 }}{{ end -}}
|
||||||
{{- end -}}
|
{{ end }}
|
||||||
<a href="{{ $link | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}{{ if $isRemote }} target="_blank" rel="noreferrer"{{ end }}>{{ .Text | safeHTML }}</a>
|
{{ end -}}
|
||||||
|
<a href="{{ $link | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}{{ if $isRemote }} target="_blank" rel="noreferrer"{{ end }}>{{- .Text | safeHTML -}}</a>
|
||||||
Reference in New Issue
Block a user