diff --git a/content/notes/hosting.md b/content/notes/hosting.md
index 70f9d04..fffcd65 100644
--- a/content/notes/hosting.md
+++ b/content/notes/hosting.md
@@ -66,7 +66,7 @@ Please note that the `cname` field should *not* have any path `e.g. end with /qu
[Reference `deploy.yaml` here](https://github.com/jackyzha0/quartz/blob/hugo/.github/workflows/deploy.yaml)
-```yaml
+```yaml {title=".github/workflows/deploy.yaml"}
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html
index 8dda6a8..dbcf732 100644
--- a/layouts/_default/_markup/render-image.html
+++ b/layouts/_default/_markup/render-image.html
@@ -1,8 +1,9 @@
{{$src := .Destination | safeURL }}
+{{$width := index (split .Text "|") 1 | default "auto" }}
{{$external := strings.HasPrefix $src "http" }}
{{- if $external -}}
-
+
{{- else -}}
{{$fixedUrl := (cond (hasPrefix $src "/") $src (print "/" $src)) | urlize}}
-
+
{{- end -}}