adds new gemlog post

This commit is contained in:
James Tomasino 2023-04-16 20:25:42 +00:00
parent 477efa3f66
commit 3fc1b8ad4c
4 changed files with 43 additions and 2 deletions

View File

@ -4,7 +4,7 @@
<title>tomasino@tilde.team</title>
<link rel="alternate" href="gemini://tilde.team/~tomasino/"/>
<link rel="self" href="gemini://tilde.team/~tomasino/atom.xml" />
<updated>2023-04-12T10:27:00Z</updated>
<updated>2023-04-16T20:25:00Z</updated>
<id>gemini://tilde.team/~tomasino/</id>
<author>
@ -12,6 +12,13 @@
<uri>gemini://tilde.team/~tomasino/about.txt</uri>
</author>
<entry>
<title>Re: my create article script</title>
<link href="gemini://tilde.team/~tomasino/journal/20230416-re-my-create-article-script.gmi"/>
<id>gemini://tilde.team/~tomasino/journal/20230416-re-my-create-article-script.gmi</id>
<updated>2023-04-16T20:25:00Z</updated>
</entry>
<entry>
<title>Five Star Review - Babette's Feast</title>
<link href="gemini://tilde.team/~tomasino/review/20230412-babette-s-feast-1987.gmi"/>

View File

@ -19,12 +19,12 @@
## Recent Journal Entries
=> /~tomasino/journal/ All Entries
=> /~tomasino/journal/20220520-some-rpg-math.gmi 2022-05-20 Some RPG Math
=> /~tomasino/journal/20220618-onlyflans.gmi 2022-06-18 OnlyFlans
=> /~tomasino/journal/20220626-small-internet-survey.gmi 2022-06-26 Small Internet Survey
=> /~tomasino/journal/20220923-roophloch.gmi 2022-09-23 ROOPHLOCH
=> /~tomasino/journal/20230412-focus-group.gmi 2023-04-12 Focus Group
=> /~tomasino/journal/20230412-five-star-reviews.gmi 2023-04-12 Five Star Reviews
=> /~tomasino/journal/20230416-re-my-create-article-script.gmi 2023-04-16 RE: my create article script
## Role Playing Games
=> /~tomasino/rpg/micro-rpg.gmi Micro RPG System

View File

@ -0,0 +1,33 @@
# RE: my create article script
In reply to:
=> gemini://yretek.com/english/2023-04-15_My_create_article_script.en.gmi Yretek - My create article script
My capsule has a Makefile in the root. One of the targets of that file is "journal".
``` Makefile
journal: ## create new journal post
@test -n "$(title)" || read -p "Enter a title for your journal: " title; \
export post_date=$(shell date +"%Y-%m-%d"); \
export post_date_slug=$(shell date +"%Y%m%d"); \
export title_slug=$$post_date_slug-`echo $${title:-Untitled} | sed -E -e 's/[^[:alnum:]]/-/g' -e 's/^-+|-+$$//g' | tr -s '-' | tr A-Z a-z`; \
export post_path=journal/$$title_slug.gmi; \
printf "# %s\n" "$$title" > $$post_path; \
printf "\n\n" >> $$post_path; \
printf "Originally Published %s at:\n" "$$post_date" >> $$post_path; \
printf "gemini://tilde.team/~tomasino/%s\n" "$$post_path" >> $$post_path; \
printf "\n" >> $$post_path; \
printf "If you have questions or thoughts to add" >> $$post_path; \
printf " please send me a link to your response.\n" >> $$post_path; \
printf "=> /~tomasino/about.txt Contact Information" >> $$post_path; \
vim $$post_path
```
I made a similar one for my new film reviews section as well. After writing I manually update my index pages and my Atom feed.
Originally Published 2023-04-16 at:
gemini://tilde.team/~tomasino/journal/20230416-re-my-create-article-script.gmi
If you have questions or thoughts to add please send me a link to your response.
=> /~tomasino/about.txt Contact Information

View File

@ -32,3 +32,4 @@
=> /~tomasino/journal/20220923-roophloch.gmi 2022-09-23 ROOPHLOCH
=> /~tomasino/journal/20230412-focus-group.gmi 2023-04-12 Focus Group
=> /~tomasino/journal/20230412-five-star-reviews.gmi 2023-04-12 Five Star Reviews
=> /~tomasino/journal/20230416-re-my-create-article-script.gmi 2023-04-16 RE: my create article script