Write a new script to calculate next Sunday's date
This commit is contained in:
parent
e2d64f82f8
commit
7843ee9cdd
2 changed files with 33 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -36,7 +36,7 @@ nethack-commit: $(NETHACK_LOGFILE_DATA_FILE)
|
|||
|
||||
weeknotes: YEAR=$(shell date '+%Y')
|
||||
weeknotes: WEEK_NUMBER=$(shell date '+%V')
|
||||
weeknotes: UPCOMING_SUNDAY=$(shell date -v +Sun +%FT%T%z)
|
||||
weeknotes: UPCOMING_SUNDAY=$(shell scripts/next_sunday.py)
|
||||
weeknotes: PAGE_PATH=blog/$(YEAR)/weeknotes-$(YEAR)w$(WEEK_NUMBER).md
|
||||
weeknotes: $(CONTENT_PATH)/$(PAGE_PATH)
|
||||
hugo new -k weeknotes --clock "$(UPCOMING_SUNDAY)" -c "$(CONTENT_PATH)" "$(PAGE_PATH)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue