https://github.com/otthe/minpo
Flexible SSG with HTML bundling, automatic FTP deploying and backups
https://github.com/otthe/minpo
ejs ftp-server minify static-site-generator
Last synced: 2 months ago
JSON representation
Flexible SSG with HTML bundling, automatic FTP deploying and backups
- Host: GitHub
- URL: https://github.com/otthe/minpo
- Owner: otthe
- Created: 2024-05-10T12:53:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-18T16:46:03.000Z (about 1 year ago)
- Last Synced: 2025-01-22T08:11:27.236Z (4 months ago)
- Topics: ejs, ftp-server, minify, static-site-generator
- Language: JavaScript
- Homepage:
- Size: 81.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minpo
Static site generator for personal websites with automatic FTP deploy## Minpo has:
- One click FTP deployment
- One file data management
- One click page status management
- Backup files
- File packing for optimization## Instructions:
- All data is stored in site.json
- Each page should have view named 'pagename.ejs' in views folder
- Each subpage should have view named 'pagename_subpage.ejs' in views folder
- You can refer page specific data by using page.page_data_field or subpage.page_data_field## Commands
- -g || --generate to generate html files
- -d || --deploy to deploy files to FTP server
- -b || --backup to copy site.json and contents of dist
- If you chain multiple commands, they will be executed in call order## .env
- Create .env file to the root directory with following fields
```bash
FTP_HOST = ""
FTP_PORT = 21
FTP_USER = ""
FTP_PASSWORD = ""
FTP_PUBLIC_FOLDER = "/public_folder/" # use slashes
LOCALHOST = "true"
``````## Folder structure:
```bash
├── backup/
│ └── 2024-5-17-0-44-8/
│ ├── blog/
│ ├── contact/
├── dist/
│ ├── blog/
│ ├── contact/
├── site/
│ ├── images/
│ ├── layouts/
│ ├── partials/
│ └── views/
├── src/
└── tests/
```