mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-05 08:13:40 +00:00
Update footer
This commit is contained in:
34
Makefile
Normal file
34
Makefile
Normal file
@@ -0,0 +1,34 @@
|
||||
SHELL := bash
|
||||
.SHELLFLAGS := -eu -o pipefail -c
|
||||
.DELETE_ON_ERROR:
|
||||
MAKEFLAGS += --warn-undefined-variables
|
||||
MAKEFLAGS += --no-builtin-rules
|
||||
|
||||
ifeq ($(origin .RECIPEPREFIX), undefined)
|
||||
$(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later)
|
||||
endif
|
||||
.RECIPEPREFIX = >
|
||||
|
||||
## server: run server locally on port 1313
|
||||
server:
|
||||
> hugo server -D
|
||||
|
||||
## deploy: deploy the website to github pages
|
||||
deploy:
|
||||
> @echo -e "\033[0;32mDeploying updates to GitHub...\033[0m"
|
||||
> hugo -t xmin
|
||||
> cd public || exit; \
|
||||
git add .; \
|
||||
msg="rebuilding site $$(date)"; \
|
||||
git commit -m "$$msg"; \
|
||||
git push origin main; \
|
||||
cd .. || exit;
|
||||
|
||||
## help: Print this help message
|
||||
help:
|
||||
> @echo
|
||||
> @echo "Usage:"
|
||||
> @echo
|
||||
> @sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /' | sort
|
||||
> @echo
|
||||
.PHONY: help
|
@@ -1,10 +1,11 @@
|
||||
# hugo-blog
|
||||
|
||||
Hugo source for davegallant.github.io.
|
||||
# blog
|
||||
|
||||
Source for https://davegallant.github.io.
|
||||
|
||||
## Deploy
|
||||
|
||||
Requires hugo.
|
||||
|
||||
```shell
|
||||
./deploy.sh
|
||||
make deploy
|
||||
```
|
||||
|
@@ -37,4 +37,4 @@ canonifyURLs = true
|
||||
|
||||
[params]
|
||||
description = "A website built through Hugo and blogdown."
|
||||
footer = "© Dave Gallant 2020 | [Github](https://github.com/davegallant) | [Twitter](https://twitter.com/dgallant0)"
|
||||
footer = "© Dave Gallant 2021 | [Github](https://github.com/davegallant) | [Twitter](https://twitter.com/Dave_Gallant_)"
|
||||
|
@@ -155,5 +155,3 @@ The docs that say `Deprecated since version 3.5, will be removed in version 3.8:
|
||||
|
||||
I guess this highlights one of the caveats of relying upon system python.
|
||||
|
||||
Enjoy.
|
||||
|
||||
|
24
deploy.sh
24
deploy.sh
@@ -1,24 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo -e "\033[0;32mDeploying updates to GitHub...\033[0m"
|
||||
|
||||
# Build the project.
|
||||
hugo -t xmin
|
||||
|
||||
# Go To Public folder
|
||||
cd public
|
||||
# Add changes to git.
|
||||
git add .
|
||||
|
||||
# Commit changes.
|
||||
msg="rebuilding site `date`"
|
||||
if [ $# -eq 1 ]
|
||||
then msg="$1"
|
||||
fi
|
||||
git commit -m "$msg"
|
||||
|
||||
# Push source and build repos.
|
||||
git push origin master
|
||||
|
||||
# Come Back up to the Project Root
|
||||
cd ..
|
2
public
2
public
Submodule public updated: adb9c9cce0...c6d614fc82
Reference in New Issue
Block a user