updates script for my needs

This commit is contained in:
swiftmandolin 2020-10-28 22:05:35 -05:00
parent 87fe9429da
commit d8078e7c68
Signed by: swiftmandolin
GPG Key ID: 84645B24221234D6
1 changed files with 26 additions and 20 deletions

View File

@ -19,18 +19,18 @@
# change configuration variables here to suit you
### be sure to also change the header and footer in build_entries! ###
make_globals() {
global_title="my gemlog"
global_description="a gemlog about gemlogs"
global_url="gemini://example.com/gemlog/" # link to base url of gemlog
global_author="example"
global_author_email="you@example.com"
global_author_url="gemini://example.com/" # homepage of author
global_title="swiftmandolin's gemlog"
global_description="a gemlog about nonsense you probably don't care about"
global_url="gemini://gemini.circumlunar.space/~swiftmandolin/gemlog/" # link to base url of gemlog
global_author="swiftmandolin"
global_author_email="swiftmandolin@tilde.team"
global_author_url="gemini://gemini.circumlunar.space/~swiftmandolin/index.gmi" # homepage of author
global_license="CC BY 4.0"
gemlog_feed="atom.xml" # filename of the atom feed
number_of_feed_articles="50" # maximum number of posts added to atom feed
feed_base_url="gemini://example.com/gemlog/" # base url that the feed is hosted at
feed_web_url="https://example.com/files/" # base url that the feed is hosted at on the web
feed_base_url="gemini://gemini.circumlunar.space/~swiftmandolin/gemlog/" # base url that the feed is hosted at
feed_web_url="https://swiftmandolin.tilde.team/files/" # base url that the feed is hosted at on the web
index="index.gmi" # main page of gemlog, not recommended to change
@ -108,19 +108,23 @@ build_entries() {
{
# header of the page (above the posts list)
cat << 'EOF'
```wow, alt text! wouldn't you love to help people with screenreaders too?
┌──────────────────┐
│ │
│ YOUR │
│ │
│ ART │
│ │
│ HERE │
│ │
└──────────────────┘
```some crazy looking ASCII art that says gemlog
.-'''-.
.---. ' _ \
__.....__ __ __ ___ | | / /` '. \
.--./) .-'' '. | |/ `.' `. | |. | \ ' .--./)
/.''\\ / .-''"'-. `. | .-. .-. '| || ' | '/.''\\
| | | / /________\ \| | | | | || |\ \ / /| | | |
\`-' /| || | | | | || | `. ` ..' / \`-' /
/("'` \ .-------------'| | | | | || | '-...-'` /("'`
\ '---.\ '-.____...---.| | | | | || | \ '---.
/'""'.\`. .' |__| |__| |__|| | /'""'.\
|| || `''-...... -' '---' || ||
\'. __// \'. __//
`'---' `'---'
```
it's my gemlog all right!
by switmandolin
EOF
curyear=""
curmonth=""
@ -153,12 +157,14 @@ EOF
──────────────────
=> / go home
=> $global_author_url go home
=> $feed_base_url$gemlog_feed this gemlog has an atom feed at: $feed_base_url$gemlog_feed
=> $feed_web_url$gemlog_feed or through the web at: $feed_web_url$gemlog_feed
=> $gemlog_sh_link generated with gemlog.sh
=> https://patorjk.com/software/taag/#p=display&h=2&v=0&f=Crazy&t=gemlog ASCII Art by Patrick Gillespie
EOF
} 3>&1 >"$indexfile"