OSDN Git Service

[fix] : Fixed page path
authorhayao <hayao@fascode.net>
Mon, 18 Oct 2021 14:41:44 +0000 (23:41 +0900)
committerhayao <hayao@fascode.net>
Mon, 18 Oct 2021 14:41:44 +0000 (23:41 +0900)
blog/new-post.sh

index bb5298a..a74a9e4 100755 (executable)
@@ -9,4 +9,4 @@ script_path="$( cd -P "$( dirname "$(readlink -f "${0}")" )" && pwd )"
 cd "${script_path}" || return 0
 filename="posts/$(date +%Y%m%d)/${1}/index.md"
 [[ ! -f "${script_path}/${filename}" ]] && hugo new "${filename}"
-type code 1>/dev/null 2>&1 && code "${script_path}/${filename}"
+type code 1>/dev/null 2>&1 && code "${script_path}/src/content/${filename}"