https://github.com/lfkdsk/create-gallery
Create Gallery Demo
https://github.com/lfkdsk/create-gallery
Last synced: 9 months ago
JSON representation
Create Gallery Demo
- Host: GitHub
- URL: https://github.com/lfkdsk/create-gallery
- Owner: lfkdsk
- Created: 2023-10-11T07:16:05.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-11T09:44:52.000Z (over 2 years ago)
- Last Synced: 2025-04-03T16:54:44.573Z (9 months ago)
- Homepage:
- Size: 65.2 MB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Create Gallery Intro
## 0. Folk this project [link](https://github.com/lfkdsk/create-gallery/fork)
## 1. Change Config
### Github Action
In `.github/workflows` :
``` yml
on:
push:
branches: [master]
workflow_dispatch:
# schedule:
# - cron: '0 12 * * *'
env:
GIT_USER: lfkdsk # change to yourself
GIT_EMAIL: lfkdsk@gmail.com # change to yourself
```
- Change `GIT_USER` and `GIT_EMAIL` with your own ones.
- Open `schedule` if you want to build daily.
### Config.yml
```yml
# change to your own title, subtitle, cover... and author.
title: Create Gallery Demo
subtitle: Take Photo Think Seriously
description: Create Gallery Demo 拿起相机,认真思考
cover: 'https://github.com/lfkdsk/picx-images-hosting/raw/master/20230817/IMG_7586.4e91my1ve140.17iz0sa56gik.webp'
author: lfkdsk
footer_logo:
use: self
self:
link: 'https://lfkdsk.github.io/'
src: 'https://github.com/lfkdsk/picx-images-hosting/raw/master/20230817/tripper2white.2pbuwaqvndu0.webp'
# change to your url and sub url. eq: gallery
url: https://lfkdsk.github.io/create-gallery
root: /create-gallery
# change to your slogan
photography_page:
slogan: true
slogan_descr: 'The moments when I pressed the shutter, the moments are forever.'
google_analytics:
use: gtag
ga_id:
ga_api:
gtag_id: XXXXX
nav:
归档:
link: https://lfkdsk.github.io # change to your links
icon: inbox
thumbnail_url: https://cdn.jsdelivr.net/gh/lfkdsk/create-gallery@thumbnail/
base_url: https://cdn.jsdelivr.net/gh/lfkdsk/create-gallery@master
```
- `base_url` : `https://cdn.jsdelivr.net/gh//@master`
- `thumbnail_url`: `https://cdn.jsdelivr.net/gh//@thumbnail/`
## 2. Add `GH_PAGES_DEPLOY`
1. Generate Github Token with repo permission: https://github.com/settings/tokens/new

2. Add it to repo's secrets as `GH_PAGES_DEPLOY`:

## 3. Add your new gallery page
1. Open PicX Tool & New Dir in root :

2. Select image and upload (recommand use webp and add watermark)

3. Add new config in `README.yml`
```
Title:
date: 2023-10-11
url: Japan
cover: Japan/XXXX.jpg
...
```