diff --git a/data/blog/posts/Makefile b/data/blog/posts/Makefile index ce7d29d..494eea5 100644 --- a/data/blog/posts/Makefile +++ b/data/blog/posts/Makefile @@ -5,16 +5,16 @@ PRINT = echo DATE = $(shell date '+%d-%m-%Y') DIR = $(shell date '+%Y/%m') -FI := new +PH := new new: $(MKDIR) $(DIR) 2> /dev/null - $(TOUCH) $(DIR)/$(FI).md - $(PRINT) "---" > $(DIR)/$(FI).md - $(PRINT) "publish: false" >> $(DIR)/$(FI).md - $(PRINT) "date: $(DATE)" >> $(DIR)/$(FI).md - $(PRINT) "draft: true" >> $(DIR)/$(FI).md - $(PRINT) "---" >> $(DIR)/$(FI).md + $(TOUCH) $(DIR)/$(PH).md + $(PRINT) "---" > $(DIR)/$(PH).md + $(PRINT) "publish: false" >> $(DIR)/$(PH).md + $(PRINT) "date: $(DATE)" >> $(DIR)/$(PH).md + $(PRINT) "draft: true" >> $(DIR)/$(PH).md + $(PRINT) "---" >> $(DIR)/$(PH).md help: - $(PRINT) "make FI=new" + $(PRINT) "make PH=new"