OSDN Git Service
(root)
/
alterlinux
/
hayao.fascode.net.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8854e8b
)
[fix] : Fixed page path
author
hayao
<hayao@fascode.net>
Mon, 18 Oct 2021 14:41:44 +0000
(23:41 +0900)
committer
hayao
<hayao@fascode.net>
Mon, 18 Oct 2021 14:41:44 +0000
(23:41 +0900)
blog/new-post.sh
patch
|
blob
|
history
diff --git
a/blog/new-post.sh
b/blog/new-post.sh
index
bb5298a
..
a74a9e4
100755
(executable)
--- a/
blog/new-post.sh
+++ b/
blog/new-post.sh
@@
-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}"