Skip to content

Commit

Permalink
WIP: add task list memo
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Nov 7, 2024
1 parent 5518053 commit 79742da
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion layouts/_default/_markup/render-image.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
{{- /* TODO refactor */ -}}
{{- /*
TODO refactor
The current image rendering is too complicated, and some image rendering sizes do not meet expectations.

There are several things to consider when refactoring:

- [ ] Regular images (different formats)
- [ ] Remote images (different formats)
- [ ] Base64 images

There are also different rendering ways to consider:

- [ ] Image render hook (Markdown)
- [ ] Image shortcode
- [ ] `img` tag (HTML)

Other dimensions to consider:

- [ ] lightgallery render (maybe the plugin will be changed)
- [ ] Responsive images
- [ ] Lazy Loading
*/ -}}

{{- $params := .Page.Params | merge site.Params.page -}}
{{- if .Title | and .Text -}}
{{- $linked := ne $params.lightgallery false -}}
Expand Down

0 comments on commit 79742da

Please sign in to comment.