Merge pull request #2324 from ZhenShuo2021/fix/gist-corb

🐛 Fix: gist CORB error
This commit is contained in:
Nuno C.
2025-07-21 10:03:52 +01:00
committed by GitHub
3 changed files with 9 additions and 3 deletions

View File

@@ -383,6 +383,7 @@ In order to add images to the gallery, use `img` tags for each image and add `cl
{{</* gist "octocat" "6cad326836d38bd3a7ae" */>}} {{</* gist "octocat" "6cad326836d38bd3a7ae" */>}}
```` ````
{{< gist "octocat" "6cad326836d38bd3a7ae" >}}
**Example 2: Embed specific file from Gist** **Example 2: Embed specific file from Gist**
@@ -390,6 +391,8 @@ In order to add images to the gallery, use `img` tags for each image and add `cl
{{</* gist "rauchg" "2052694" "README.md" */>}} {{</* gist "rauchg" "2052694" "README.md" */>}}
``` ```
{{< gist "rauchg" "2052694" "README.md" >}}
<br/><br/><br/> <br/><br/><br/>
## Gitea Card ## Gitea Card

View File

@@ -385,6 +385,7 @@ Blowfish 还支持使用标准 Markdown 语法自动转换图像。只需使用
{{</* gist "octocat" "6cad326836d38bd3a7ae" */>}} {{</* gist "octocat" "6cad326836d38bd3a7ae" */>}}
``` ```
{{< gist "octocat" "6cad326836d38bd3a7ae" >}}
**示例 2嵌入 Gist 中的特定文件** **示例 2嵌入 Gist 中的特定文件**
@@ -392,6 +393,8 @@ Blowfish 还支持使用标准 Markdown 语法自动转换图像。只需使用
{{</* gist "rauchg" "2052694" "README.md" */>}} {{</* gist "rauchg" "2052694" "README.md" */>}}
``` ```
{{< gist "rauchg" "2052694" "README.md" >}}
<br/><br/><br/> <br/><br/><br/>

View File

@@ -1,3 +1,3 @@
<script src="https://gist.github.com/{{ index .Params 0 }}/{{ index .Params 1 }}.js{{ if len .Params | eq 3 }} <script src="https://gist.github.com/{{- index .Params 0 -}}/{{- index .Params 1 -}}.js{{- if len .Params | eq 3 -}}
?file={{ index .Params 2 }} ?file={{- index .Params 2 -}}
{{ end }}"></script> {{- end -}}"></script>