aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgenerate.sh6
-rw-r--r--post.esh3
-rw-r--r--rss.esh2
3 files changed, 8 insertions, 3 deletions
diff --git a/generate.sh b/generate.sh
index 5a01962..aac713c 100755
--- a/generate.sh
+++ b/generate.sh
@@ -45,7 +45,11 @@ link_wrapper() {
45intro() { 45intro() {
46 echo -ne " 46 echo -ne "
47 <div class="intro"> 47 <div class="intro">
48 Hi. <a href="https://peppe.rs/index.xml" class="feed-button">Subscribe</a> 48 Hi.
49 <div class="hot-links">
50 <a href="https://peppe.rs/index.xml" class="feed-button">Subscribe</a>
51 <a href="https://liberapay.com/nerdypepper/donate" class="donate-button">Donate</a>
52 </div>
49 <p>I'm Akshay, I go by nerd or nerdypepper on the internet.</p> 53 <p>I'm Akshay, I go by nerd or nerdypepper on the internet.</p>
50 <p> 54 <p>
51 I am a compsci undergrad, Rust programmer and an enthusiastic Vimmer. 55 I am a compsci undergrad, Rust programmer and an enthusiastic Vimmer.
diff --git a/post.esh b/post.esh
index 17d34c8..8e3ec6d 100644
--- a/post.esh
+++ b/post.esh
@@ -2,6 +2,7 @@
2<html lang="en"> 2<html lang="en">
3 <head> 3 <head>
4 <link rel="stylesheet" href="/style.css"> 4 <link rel="stylesheet" href="/style.css">
5 <link rel="stylesheet" href="/syntax.css">
5 <meta charset="UTF-8"> 6 <meta charset="UTF-8">
6 <meta name="viewport" content="initial-scale=1"> 7 <meta name="viewport" content="initial-scale=1">
7 <meta content="#ffffff" name="theme-color"> 8 <meta content="#ffffff" name="theme-color">
@@ -36,7 +37,7 @@
36 <%=$title%> 37 <%=$title%>
37 </h1> 38 </h1>
38 <div class="post-text"> 39 <div class="post-text">
39 <% pandoc --quiet -t html -s --highlight-style monochrome "$file" %> 40 <% pandoc --quiet -t html --highlight-style monochrome "$file" %>
40 </div> 41 </div>
41 <%= "$intro" %> 42 <%= "$intro" %>
42 <a href="/" class="post-end-link">⟵ Back</a> 43 <a href="/" class="post-end-link">⟵ Back</a>
diff --git a/rss.esh b/rss.esh
index 2d2e6a8..324642f 100644
--- a/rss.esh
+++ b/rss.esh
@@ -14,7 +14,7 @@
14 <% for f in `ls -t ./posts`; do 14 <% for f in `ls -t ./posts`; do
15 file="./posts/"$f 15 file="./posts/"$f
16 post_date=$(date -u -r "$file" "+%a, %d %b %Y %H:%M:00 %z") 16 post_date=$(date -u -r "$file" "+%a, %d %b %Y %H:%M:00 %z")
17 html=$(lowdown "$file") 17 html=$(pandoc -t html "$file")
18 id="${file##*/}" 18 id="${file##*/}"
19 id="${id%.*}" 19 id="${id%.*}"
20 post_title=$(echo "$id" | sed -E -e "s/\..+$//g" -e "s/_(.)/ \u\1/g" -e "s/^(.)/\u\1/g") 20 post_title=$(echo "$id" | sed -E -e "s/\..+$//g" -e "s/_(.)/ \u\1/g" -e "s/^(.)/\u\1/g")