# plugin-lightgallery **Repository Path**: halo-sigs/plugin-lightgallery ## Basic Information - **Project Name**: plugin-lightgallery - **Description**: No description available - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-12-13 - **Last Updated**: 2024-03-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # plugin-lightgallery 提供对 [lightgallery.js](https://github.com/sachinchoolur/lightgallery.js) 的集成,支持在内容页放大显示图片。 ## 开发环境 ```bash git clone git@github.com:halo-sigs/plugin-lightgallery.git # 或者当你 fork 之后 git clone git@github.com:{your_github_id}/plugin-lightgallery.git ``` ```bash cd path/to/plugin-lightgallery ``` ```bash # macOS / Linux ./gradlew build # Windows ./gradlew.bat build ``` 修改 Halo 配置文件: ```yaml halo: plugin: runtime-mode: development classes-directories: - "build/classes" - "build/resources" lib-directories: - "libs" fixedPluginPath: - "/path/to/plugin-lightgallery" ``` ## 使用方式 1. 在 [Releases](https://github.com/halo-sigs/plugin-lightgallery/releases) 下载最新的 JAR 文件。 2. 在 Halo 后台的插件管理上传 JAR 文件进行安装。 3. 进入 plugin-lightgallery 插件的设置页面,配置 `DOM 节点选择` 设置选项。 ## 主题适配 此插件无需主题主动适配即可使用,其原理就是将 `lightgallery.js` 所需的依赖引入和初始化代码都自动插入到了内容页面上。因此,主题开发者无需再针对图片放大进行适配开发,如果有特殊的需求,建议共同完善此插件。