From cb0d63717be64c3a99c86b40597ce38579ff3b8b Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Fri, 25 Apr 2025 14:04:36 +0800 Subject: [PATCH] :bug: Fix(ignore): hide link to editor in content adapter posts --- layouts/partials/init/index.html | 2 +- layouts/partials/single/footer.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/init/index.html b/layouts/partials/init/index.html index f641887d..720f0ea7 100644 --- a/layouts/partials/init/index.html +++ b/layouts/partials/init/index.html @@ -1,4 +1,4 @@ -{{- .Scratch.Set "version" "v0.3.20-c21914dd" -}} +{{- .Scratch.Set "version" "v0.3.20-b45ab833" -}} {{- .Scratch.Set "this" dict -}} {{- partial "init/detection-env.html" . -}} diff --git a/layouts/partials/single/footer.html b/layouts/partials/single/footer.html index 0046a106..df5d939e 100644 --- a/layouts/partials/single/footer.html +++ b/layouts/partials/single/footer.html @@ -74,7 +74,7 @@ {{- $options := dict "Class" "link-to-report" "Destination" $link "Title" (T "single.reportIssue") "Content" (T "single.reportIssue") -}} {{- $linkOptions = $linkOptions | append $options -}} {{- end -}} - {{- if $params.LinkToVscode | and hugo.IsServer -}} + {{- if $params.LinkToVscode | and hugo.IsServer | and (not $.File.IsContentAdapter) -}} {{- $link := printf "vscode://file/%v" $.File.Filename -}} {{- $options := dict "Class" "link-to-vscode" "Destination" $link "Title" (T "single.openInEditor") "Content" (T "single.openInEditor") -}} {{- $linkOptions = $linkOptions | append $options -}}