blob: f40a0308f25f3be1fa726c62740c62421587169d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
#!./page.sh -s
entries="$(for f in entries/*.html; do echo $(git log --pretty=format:'%ct' --follow $f | tail -n 1) $f; done | sort -nr | cut -f2- -d' ')"
cat << EOF
<div class="grid">
<div class="about">
<p>hi, i'm david and this is my website. i'm interested in all things esoteric as well as coding in <a href="/git/shblg.git/tree/src/md2html.sh">shell</a> and playing around with free software. if you want to check out my projects, most of them can be found on <a href="/git">/git</a> and an assorted list of older projects can be found on <a href="/m/">/m</a></p>
</div>
EOF
cat << EOF
<div class="posts">
<h2>blog posts</h2>
<ul>
EOF
# list all the files in the directory
for file in $entries; do
title="$(grep '^# ' $file)"
title=${title#\# }
printf "
<li class=\"entry\">
<a href=\"%s\">
<span>%s</span>
<div class=\"small\">%s</div>
</a>
</li>
" "${file%.*}.html" "$title" "$(git log --pretty=format:'%cD' --follow -- "$file" | tail -n 1)"
done
cat << EOF
</ul>
</div>
EOF
cat << EOF
<<<<<<< HEAD
<div class="main-image">
<img src="/images/remotecontrol.gif">
</div>
<div>
<h2 id="donate">donate</h2>
<p>if you like what i do and you want to support me, consider donating <a href="https://www.getmonero.org/">Monero</a></p>
<code>49ECi71yshT6kvzFJKyvVDXLarVp9EGR54ZUw9ebqPetKn2kbaRavFG4FCG4MALkGXVZ16KM5c92MJ7vDWL7iwFs66Q1UQ2</code>
</div>
<div>
<h2 id="contact">contact</h2>
<p>if you want to contact me, you can message me on matrix <code>@ix:davidovski.xyz</code>, XMPP <code>ix@davidovski.xyz</code>, or via the email linked at the top of the page.</p>
</div>
</div>
EOF
|