aboutsummaryrefslogtreecommitdiff
path: root/generate.sh
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-03-11 18:34:20 +0000
committerAkshay <[email protected]>2020-03-11 18:34:20 +0000
commite0fc0ebca6f457d11e470ed4f2803ac5c0d40ac1 (patch)
tree709222a725850c73ad2ff249f6de077d072fabd7 /generate.sh
parent9e8fbb5f2bb41e712e9680f825d238181876f45c (diff)
add intro to all pages
Diffstat (limited to 'generate.sh')
-rwxr-xr-xgenerate.sh27
1 files changed, 14 insertions, 13 deletions
diff --git a/generate.sh b/generate.sh
index a836eb1..da20c14 100755
--- a/generate.sh
+++ b/generate.sh
@@ -44,6 +44,16 @@ link_wrapper() {
44 44
45intro() { 45intro() {
46 echo -ne " 46 echo -ne "
47 <div class="intro">
48 Hi. <a href="https://peppe.rs/index.xml" class="feed-button">Subscribe</a>
49 <p>I'm Akshay, I go by nerd or nerdypepper on the internet.</p>
50 <p>
51 I am a compsci undergrad, Rust programmer and an enthusiastic Vimmer.
52 I write open-source stuff to pass time. I also design fonts: scientifica, curie.
53 Things I find cool usually end up here.
54 </p>
55 <p>Get in touch at [email protected] or [email protected].</p>
56 </div>
47 " 57 "
48} 58}
49 59
@@ -68,20 +78,10 @@ cat > ./docs/index.html << EOF
68 <div class="posts"> 78 <div class="posts">
69 <div class="post"> 79 <div class="post">
70 <div class="separator"></div> 80 <div class="separator"></div>
71 <div class="intro">
72 Hi.
73 <p>I'm Akshay, I go by nerd or nerdypepper on the internet.</p>
74 <p>
75 I am a compsci undergrad, Rust programmer and an enthusiastic Vimmer.
76 I write open-source stuff to pass time. I also design fonts: scientifica, curie.
77 Things I find cool usually end up here.
78 </p>
79 <p>Get in touch at [email protected] or [email protected].</p>
80 </div>
81 <div class="separator"></div>
82 <table>
83EOF 81EOF
84 82
83echo -ne "$(intro)<table><div class="separator"></div>" >> ./docs/index.html
84
85 85
86# posts 86# posts
87posts=$(ls -t ./posts) 87posts=$(ls -t ./posts)
@@ -115,7 +115,8 @@ for f in $posts; do
115 date="$post_date" \ 115 date="$post_date" \
116 title="$post_title" \ 116 title="$post_title" \
117 read_time="$r_time" \ 117 read_time="$r_time" \
118 height="$height" 118 height="$height" \
119 intro="$(intro)"
119done 120done
120 121
121# generate rss feeds 122# generate rss feeds