mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
🐛 Fix(ignore): hide link to editor in content adapter posts
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{{- .Scratch.Set "version" "v0.3.20-c21914dd" -}}
|
{{- .Scratch.Set "version" "v0.3.20-b45ab833" -}}
|
||||||
{{- .Scratch.Set "this" dict -}}
|
{{- .Scratch.Set "this" dict -}}
|
||||||
|
|
||||||
{{- partial "init/detection-env.html" . -}}
|
{{- partial "init/detection-env.html" . -}}
|
||||||
|
|||||||
@@ -74,7 +74,7 @@
|
|||||||
{{- $options := dict "Class" "link-to-report" "Destination" $link "Title" (T "single.reportIssue") "Content" (T "single.reportIssue") -}}
|
{{- $options := dict "Class" "link-to-report" "Destination" $link "Title" (T "single.reportIssue") "Content" (T "single.reportIssue") -}}
|
||||||
{{- $linkOptions = $linkOptions | append $options -}}
|
{{- $linkOptions = $linkOptions | append $options -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- if $params.LinkToVscode | and hugo.IsServer -}}
|
{{- if $params.LinkToVscode | and hugo.IsServer | and (not $.File.IsContentAdapter) -}}
|
||||||
{{- $link := printf "vscode://file/%v" $.File.Filename -}}
|
{{- $link := printf "vscode://file/%v" $.File.Filename -}}
|
||||||
{{- $options := dict "Class" "link-to-vscode" "Destination" $link "Title" (T "single.openInEditor") "Content" (T "single.openInEditor") -}}
|
{{- $options := dict "Class" "link-to-vscode" "Destination" $link "Title" (T "single.openInEditor") "Content" (T "single.openInEditor") -}}
|
||||||
{{- $linkOptions = $linkOptions | append $options -}}
|
{{- $linkOptions = $linkOptions | append $options -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user