initial
This commit is contained in:
commit
d9e8f18b3b
|
@ -0,0 +1,3 @@
|
|||
Geomyidae Markdown Test
|
||||
|
||||
[1|Phlog Test|/phlog|server|port]
|
|
@ -0,0 +1,6 @@
|
|||
# Markdown Phlog Test
|
||||
This is a test
|
||||
---
|
||||
[Back to Phlog Folder](/phlog)
|
||||
---
|
||||
I don't know what I'm doing.
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "Test Phlog List"
|
||||
echo ""
|
||||
|
||||
local_dir=$(pwd)
|
||||
gopher_dir=$(pwd | cut -c 12-)
|
||||
|
||||
for file in $local_dir/*.md; do
|
||||
long_name=$(basename "$file" .md)
|
||||
date=$(echo "$long_name" | cut -c -10)
|
||||
|
||||
entry_name=$(echo "$long_name" | cut -c 12- | sed -e 's/-/ /g')
|
||||
echo "[1|$date $entry_name|$gopher_dir/lc.dcgi?$(basename "$file")|server|port]"
|
||||
done
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
filename=$2
|
||||
|
||||
while read line; do
|
||||
# echo "$line"
|
||||
if [[ $line == \[* ]]; then
|
||||
link_name=$(echo "$line" | sed 's/\].*//' | sed -e 's/\[//g')
|
||||
link=$(echo "$line" | sed 's/^[^(]*(//g' | sed -e 's/)//g')
|
||||
echo "[1|$link_name|$link|server|port]"
|
||||
else
|
||||
echo $line
|
||||
fi
|
||||
done <$filename
|
Loading…
Reference in New Issue