mirror of
https://github.com/tildeclub/geminipage.git
synced 2026-06-25 13:09:25 +00:00
added a single additional line to 'index.gmi' to ensure that
a variety of different user's posts is always shown on the main index page. I also made two changes to 'gemlog.gmi' that fix the handling of tabs and CRLF newlines respectively. thanks to ~seifferth
This commit is contained in:
@@ -11,10 +11,10 @@ While this is an aggregated gemlog for all users, this does not imply that it is
|
||||
|
||||
EOF
|
||||
get() {
|
||||
grep \
|
||||
'^=>[ ]\+[^ ]\+[ ]\+[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]' \
|
||||
grep -P \
|
||||
'^=>[ \t]+[^ \t]+[ \t]+[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]' \
|
||||
-s "$@" |
|
||||
sed 's,\t, ,g;s, *$,,
|
||||
sed 's,\r,,g;s,\t, ,g;s, *$,,
|
||||
s,^/home/,,
|
||||
|
||||
# Link processing in sed can be quite messy; Hence the comments
|
||||
|
||||
Reference in New Issue
Block a user