https://github.com/pgreze/blog
My personal blog
https://github.com/pgreze/blog
blog hugo
Last synced: 3 months ago
JSON representation
My personal blog
- Host: GitHub
- URL: https://github.com/pgreze/blog
- Owner: pgreze
- Created: 2018-06-28T13:37:36.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2022-04-12T05:43:45.000Z (about 3 years ago)
- Last Synced: 2025-01-12T05:28:45.261Z (4 months ago)
- Topics: blog, hugo
- Language: CSS
- Homepage: https://pgreze.dev/
- Size: 9.86 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# pgreze.com
[](https://app.netlify.com/sites/pgreze/deploys) [](https://console.firebase.google.com/project/blog-78f07/hosting/sites/pgreze)
My [hugo](https://gohugo.io/) powered and [netlify](https://netlify.com) hosted blog.
## Usage
```bash
# Install
brew install hugo# Create a new post
hugo new posts/2019-10-02-universal-apk-commands.md# Start server
hugo server
# With drafts
hugo server -D# Create release in public/
hugo
```### With a specific version
To use always the same version with docker (-extras is adding py-pygments):
```
# Version
docker run --rm -it jguyomard/hugo-builder:0.55-extras hugo version# Create a new post
docker run --rm -it -v $PWD:/src -u hugo jguyomard/hugo-builder:0.55-extras hugo new posts/2019-10-02-universal-apk-commands.md# Serve
docker run --rm -it -v $PWD:/src -p 1313:1313 -u hugo jguyomard/hugo-builder:0.55-extras hugo server -w --bind=0.0.0.0
# With drafts
docker run --rm -it -v $PWD:/src -p 1313:1313 -u hugo jguyomard/hugo-builder:0.55-extras hugo server -D -w --bind=0.0.0.0# Build and see results
docker run --rm -it -v $PWD:/src -u hugo jguyomard/hugo-builder:0.55-extras hugo
cd public/ && python3 -m http.server
```## Themes
They're handled with [subrepo](https://github.com/ingydotnet/git-subrepo).
```
# Upgrade
git subrepo pull themes/hello-friend# Force upgrade
git subrepo clone https://github.com/panr/hugo-theme-hello-friend.git themes/hello-friend -f
```To update styles:
```
cd themes/hello-friend# Install dependencies
yarn install# Build assets
yarn build
```## Firebase
Ensure .firebaserc is existing:
```
{
"projects": {
"default": "MY_PROJECT"
}
}
```Usage:
```
# Install
brew install firebase-cli# Serve locally
firebase serve --host 0.0.0.0# Deploy
firebase deploy
```