refactor: move into a website directory
This commit is contained in:
parent
86529d7148
commit
3c5c0e808a
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
@ -27,7 +27,11 @@ jobs:
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- run: cp .env.example .env
|
- run: cp .env.example .env
|
||||||
- run: ./run ci:build-images
|
working-directory: ./website
|
||||||
- run: ./run ci:push-images
|
|
||||||
|
|
||||||
|
- run: ./run ci:build-images
|
||||||
|
working-directory: ./website
|
||||||
|
|
||||||
|
- run: ./run ci:push-images
|
||||||
|
working-directory: ./website
|
||||||
# vim: sw=2 ts=2
|
# vim: sw=2 ts=2
|
||||||
|
|
0
.gitignore → website/.gitignore
vendored
0
.gitignore → website/.gitignore
vendored
0
composer.lock → website/composer.lock
generated
0
composer.lock → website/composer.lock
generated
21
website/drafts
Executable file
21
website/drafts
Executable file
|
@ -0,0 +1,21 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
readonly DRAFTS_DIR="${HOME}/Code/Personal/oliverdavies.uk/source/_posts"
|
||||||
|
|
||||||
|
if [[ $# -eq 0 ]]; then
|
||||||
|
grep -lr "draft: true" "${DRAFTS_DIR}" | cut -d"/" -f9- | tr ".md" "" | sort
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
readonly DRAFTS_FILE="${*}.md"
|
||||||
|
readonly DRAFTS_PATH="${DRAFTS_DIR}/${DRAFTS_FILE// /-}"
|
||||||
|
|
||||||
|
echo $DRAFTS_PATH
|
||||||
|
if [[ -e "${DRAFTS_PATH}" ]]; then
|
||||||
|
eval "${EDITOR}" "${DRAFTS_PATH}"
|
||||||
|
else
|
||||||
|
touch "${DRAFTS_PATH}"
|
||||||
|
fi
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue