mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
Disqus support, exampleSite preview through make commando (#16)
* Added disqus support * reformatted README * Updated example config * Added a make demo command to easy run the exampleSite. Also good for developing new features but don`t want to setup a different project for it * Updated readme * Working on my .md skillsw
This commit is contained in:
committed by
Luiz F. A. de Prá
parent
0f2bd0c0a6
commit
826fa2ee18
16
Makefile
16
Makefile
@@ -3,7 +3,7 @@ LESS_FILE = style.less
|
||||
CSS_DIR = ./static/css
|
||||
CSS_FILE = style.min.css
|
||||
CSS_TMP_FILE = tmp.css
|
||||
|
||||
current_dir = $(shell pwd)
|
||||
|
||||
.PHONY: clean build
|
||||
|
||||
@@ -12,5 +12,19 @@ build: clean
|
||||
uglifycss $(CSS_DIR)/$(CSS_TMP_FILE) > $(CSS_DIR)/$(CSS_FILE)
|
||||
rm -f $(CSS_DIR)/$(CSS_TMP_FILE)
|
||||
|
||||
demo: build
|
||||
mkdir -p exampleSite/themes/coder
|
||||
mkdir -p exampleSite/themes/coder/archetypes
|
||||
mkdir -p exampleSite/themes/coder/images
|
||||
mkdir -p exampleSite/themes/coder/layouts
|
||||
mkdir -p exampleSite/themes/coder/static
|
||||
cp -r $(current_dir)/archetypes/* exampleSite/themes/coder/archetypes/
|
||||
cp -r $(current_dir)/images/* exampleSite/themes/coder/images
|
||||
cp -r $(current_dir)/layouts/* exampleSite/themes/coder/layouts
|
||||
cp -r $(current_dir)/static/* exampleSite/themes/coder/static
|
||||
cp -r $(current_dir)/theme.toml exampleSite/themes/coder/theme.toml
|
||||
cd examplesite && hugo serve -D
|
||||
|
||||
clean:
|
||||
rm -f $(CSS_DIR)/*.css
|
||||
rm -rf exampleSite/themes/coder
|
||||
|
||||
Reference in New Issue
Block a user