refactor: move into a website directory

This commit is contained in:
Oliver Davies 2022-07-13 18:09:09 +01:00
parent 86529d7148
commit 3c5c0e808a
747 changed files with 133 additions and 2 deletions

View file

@ -27,7 +27,11 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- run: cp .env.example .env
- run: ./run ci:build-images
- run: ./run ci:push-images
working-directory: ./website
- run: ./run ci:build-images
working-directory: ./website
- run: ./run ci:push-images
working-directory: ./website
# vim: sw=2 ts=2

View file

21
website/drafts Executable file
View 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

View file

Some files were not shown because too many files have changed in this diff Show more