mirror of https://git.envs.net/envs/burrow.git
removed .template fallback for posts to plan future implementation of gophermap regeneration
This commit is contained in:
parent
9f4a61b4f9
commit
22387cc6fe
|
@ -30,8 +30,7 @@ burrow update-git # pull latest git repo for gopher dir, if exists
|
||||||
- `edit-config` will open your burrow configuration file for easy editing.
|
- `edit-config` will open your burrow configuration file for easy editing.
|
||||||
|
|
||||||
- `phlog` will prompt for the title of a new post, then open it in your default
|
- `phlog` will prompt for the title of a new post, then open it in your default
|
||||||
`$EDITOR`. By default it will provide you a template, but you can override this
|
`$EDITOR`.
|
||||||
by including a `.template` file in your phlog directory.
|
|
||||||
|
|
||||||
- `gophermap` will open a gophermap file for editing. This will
|
- `gophermap` will open a gophermap file for editing. This will
|
||||||
remove any `type i` formatting and allow comments to be added in natural text.
|
remove any `type i` formatting and allow comments to be added in natural text.
|
||||||
|
|
5
burrow
5
burrow
|
@ -383,10 +383,7 @@ make_post_temp () {
|
||||||
temp_post=$(mktemp -t "$(basename "$0").post.XXXXXXX") || \
|
temp_post=$(mktemp -t "$(basename "$0").post.XXXXXXX") || \
|
||||||
die "Failed to create temporary file" 1
|
die "Failed to create temporary file" 1
|
||||||
|
|
||||||
# Populate tempfile with either template or default template
|
if [ -n "$title" ]; then
|
||||||
if [ -f "${post_dir}/.template" ]; then
|
|
||||||
cat "${post_dir}/.template" > "$temp_post"
|
|
||||||
elif [ -n "$title" ]; then
|
|
||||||
{ printf "%s\\n%s\\n" "----------------------------------------" "$title"
|
{ printf "%s\\n%s\\n" "----------------------------------------" "$title"
|
||||||
if $use_date; then
|
if $use_date; then
|
||||||
date +"%B %d$(day_suffix), %Y"
|
date +"%B %d$(day_suffix), %Y"
|
||||||
|
|
5
burrow.1
5
burrow.1
|
@ -10,10 +10,7 @@ modification, and maintenance of a gopher hole.
|
||||||
.TP
|
.TP
|
||||||
.B phlog
|
.B phlog
|
||||||
Prompt for the title of a new post, then open it in your default
|
Prompt for the title of a new post, then open it in your default
|
||||||
$EDITOR. By default it will provide you a template, but you can override this
|
$EDITOR.
|
||||||
by including a
|
|
||||||
.I .template
|
|
||||||
file in your phlog directory.
|
|
||||||
.TP
|
.TP
|
||||||
.B gophermap
|
.B gophermap
|
||||||
Open a gophermap file relative to your gopher directory for editing,
|
Open a gophermap file relative to your gopher directory for editing,
|
||||||
|
|
Loading…
Reference in New Issue