summaryrefslogtreecommitdiffci
path: root/internal/lightgallery/block.go
diff options
from:
to:
context:
space:
mode:
authorGravatar SayaAndy <montferrat@tuta.io> 2025-10-16 12:23:00 +0700
committerGravatar SayaAndy <montferrat@tuta.io> 2025-10-16 12:23:00 +0700
commit44fe2478478225450becb77ad5d273462c9b400a (patch)
tree299d22a03f84c7eb0bdc36ea679fcc8687e848c4 /internal/lightgallery/block.go
parentd3ffefbd3d9de2378b564e4c6f965c03a5a06113 (diff)
downloadweb-44fe2478478225450becb77ad5d273462c9b400a.tar.gz
web-44fe2478478225450becb77ad5d273462c9b400a.zip
feat: implement new prototype gallery
Diffstat (limited to 'internal/lightgallery/block.go')
-rw-r--r--internal/lightgallery/block.go31
1 files changed, 0 insertions, 31 deletions
diff --git a/internal/lightgallery/block.go b/internal/lightgallery/block.go
deleted file mode 100644
index 8eb7c9e..0000000
--- a/internal/lightgallery/block.go
+++ /dev/null
@@ -1,31 +0,0 @@
-package lightgallery
-
-import (
- "time"
-
- "github.com/yuin/goldmark/ast"
-)
-
-// LightGalleryBlock represents a light gallery block in the AST
-type LightGalleryBlock struct {
- ast.BaseBlock
- Images []LightGalleryImage
- Location *time.Location
-}
-
-type LightGalleryImage struct {
- URL string
- Caption []byte
-}
-
-var KindLightGalleryBlock = ast.NewNodeKind("LightGalleryBlock")
-
-// Dump implements ast.Node.Dump
-func (n *LightGalleryBlock) Dump(source []byte, level int) {
- ast.DumpHelper(n, source, level, nil, nil)
-}
-
-// Kind implements ast.Node.Kind
-func (n *LightGalleryBlock) Kind() ast.NodeKind {
- return KindLightGalleryBlock
-}