🛠 Use built-in jekyll serve, rather than php server

This commit is contained in:
Dan Jones 2018-01-23 12:25:24 -06:00
commit e59e1a69b6
2 changed files with 4 additions and 18 deletions

View file

@ -1,20 +1,9 @@
export PATH := $(HOME)/bin:$(PATH):/usr/local/bin export PATH := $(HOME)/bin:$(PATH):/usr/local/bin
POINT=$(shell echo $$((RANDOM%79+128512)) ) all: serve
EMOJI=$(shell printf '%x' $(POINT) )
all: deploy stage:
build:
true
stage: build
bundle exec jekyll build -c '_config.yml,_config.local.yml' bundle exec jekyll build -c '_config.yml,_config.local.yml'
serve: stage serve:
cd _site; php -S localhost:9090 bundle exec jekyll serve -c '_config.yml,_config.local.yml'
deploy: build
git add -A _posts _data archives
git commit -m "[Add] `printf "\U$(EMOJI)"` `date`: `fortune -s -n 61 | tr '\n' ' ' | sed -r 's/[[:blank:]]+/ /g'`"
git push origin master

View file

@ -61,9 +61,6 @@ baseurl: "/danielrayjones"
permalink: /:year/:month/:title/ permalink: /:year/:month/:title/
# The release of Jekyll Now that you're using
version: v1.2.0
# Jekyll 3 now only supports Kramdown for Markdown # Jekyll 3 now only supports Kramdown for Markdown
kramdown: kramdown:
# Use GitHub flavored markdown, including triple backtick fenced code blocks # Use GitHub flavored markdown, including triple backtick fenced code blocks