From eeaff80c1c880af206be1a71b1deb6a61d07bf37 Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Sun, 18 Jun 2023 15:59:30 +0200 Subject: [PATCH] Make it work everywhere --- Makefile | 2 +- ext/post | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bc0adf8..eb20d8b 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ build: serve: @echo "Served on http://localhost:8000" - cd _site && http + cd _site && httplz .PHONY: serve deploy: clean build index diff --git a/ext/post b/ext/post index e355faa..a3550b2 100755 --- a/ext/post +++ b/ext/post @@ -1,7 +1,7 @@ #!/usr/bin/env ruby # encoding: utf-8 -OUTPUT_DIR = File.expand_path("~/projects/fnordig.de/_posts") +OUTPUT_DIR = File.expand_path(File.join(File.dirname(__FILE__), "..", "_posts")) EDITOR = ENV['EDITOR'] || 'vim' EXTENSION=".md" HEADER = <