https://github.com/discovery-data-lab/ddl-site
Discovery Data Lab main blog in production.
https://github.com/discovery-data-lab/ddl-site
blog decap-cms hugo
Last synced: about 2 months ago
JSON representation
Discovery Data Lab main blog in production.
- Host: GitHub
- URL: https://github.com/discovery-data-lab/ddl-site
- Owner: Discovery-Data-Lab
- License: mit
- Created: 2024-10-10T21:39:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-11T18:58:58.000Z (over 1 year ago)
- Last Synced: 2025-04-08T17:19:09.774Z (about 1 year ago)
- Topics: blog, decap-cms, hugo
- Language: CSS
- Homepage: https://discoverydatalab.ufop.br/
- Size: 29.6 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Main repository for the blog website.



### Overview
This repository contains the source code for the Hugo-based static blog site. The site is designed to be easily customizable and deployable, with automated workflows to ensure seamless updates.
## Documentation 📚
### Theme Customization
- **[Required Tools](#required-tools)**
- **[Running the Site Locally](#running-the-site-locally)**
### Deployment
- **[Easy Deployment](#easy-deployment)**
Learn how to deploy the site using Hugo and GitHub Pages (or any preferred platform). The guide covers building and pushing the static files to the deployment server.
- **[Customizing the Workflow](#customizing-the-workflow)**
Instructions on modifying the CI/CD pipeline for automated deployment, including configuring build triggers and customizing the environment.
---
## Required Tools
- [Install Hugo to preview changes locally](https://gohugo.io/getting-started/installing/)
- [Install Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
## Running the Site Locally
To preview and develop the site locally:
1. Clone the repository:
```bash
git clone https://github.com/Discovery-Data-Lab/blog
```
2. Navigate to the project folder:
```bash
cd blog
```
3. Start the Hugo development server:
```bash
hugo server
```
4. Open your browser and go to `http://localhost:1313` to view the site.
## Easy Deployment
This project utilizes a GitHub Actions workflow located in `github/workflows/deploy.yml` for automated deployment. Simply create a pull request, and the deployment will be triggered automatically. Be aware that errors might occur if the FTP server is down.
## Customizing the Workflow
- The current workflow uses `hugo-version: 0.111.3`. While this isn't the latest version, it is compatible with the project's tools (comments, styles, etc.).
- The deployment process employs `lftp` to remove old static files from the FTP server and replace them with the new ones. Although resource-intensive, it's effective. Feel free to suggest improvements if you have any ideas.
- If FTP credentials are incorrect or missing, check the site configuration and update them as necessary.