diff options
Diffstat (limited to 'pages')
-rwxr-xr-x | pages/avatar.sh | 25 | ||||
-rwxr-xr-x | pages/blogposts.sh | 35 | ||||
-rwxr-xr-x | pages/index.sh | 80 | ||||
-rwxr-xr-x | pages/rss.sh | 37 | ||||
-rwxr-xr-x | pages/tools_i_use.sh | 49 |
5 files changed, 146 insertions, 80 deletions
diff --git a/pages/avatar.sh b/pages/avatar.sh index 185371e..477ce1c 100755 --- a/pages/avatar.sh +++ b/pages/avatar.sh @@ -3,12 +3,21 @@ . ~/.config/b4rcms/basics.sh -echo "$( - header - echo \ " - <img src="/files/b4rkod_avatar.png"> - <img src="/files/b4rkod_avatar_1.jpg"> - <img src="/files/b4rkod_avatar_2.jpg"> - " - footer +avatar_database.sh + + +printf "$( + +header avatar.html; + +printf \ " +"; + +for LINE in $( tac $DB/avatar.txt ) ; do + DATE=$(date -d @$(echo $LINE | cut -c -10) "+%d %b %Y, %a") + FILE=$(echo $LINE| cut -c 12-) + echo "<a href=\"/OC/normal/$FILE\"><img src=\"/OC/small/$FILE\"></a>" +done + +footer )" >| $SOURCE/avatar.html diff --git a/pages/blogposts.sh b/pages/blogposts.sh index 33ba683..c910bd0 100755 --- a/pages/blogposts.sh +++ b/pages/blogposts.sh @@ -2,21 +2,36 @@ . ~/.config/b4rcms/basics.sh + +blogposts_database.sh + #compile the blogposts -for FILE in $(ls -t $ROOT/blogposts) ; do +for LINE in $( tac $DB/blogposts.txt ) ; do + DATE=$(date -d @$(echo $LINE | cut -c -10) "+%d %b %Y, %a") + FILE=$(echo $LINE| cut -c 12-) mkdir -p $SOURCE/blogposts - echo "$(header $FILE; cat $ROOT/blogposts/$FILE; footer)" >| $SOURCE/blogposts/$FILE + echo "$( + header $FILE; + echo "<p> $DATE </p> <hr style=\"max-width: 11em ;margin-left:1em;\" align=\"left\"> " ; + cat $ROOT/blogposts/$FILE; + footer)" >| $SOURCE/blogposts/$FILE done #compile the blogpost.html printf "$( - header blogposts.html; - printf \ " - <h1> Here is all the blogposts i have posted about</h1> - <ul> "; - for FILE in $(ls -t $ROOT/blogposts) ; do - echo "<li> <a href="blogposts/$FILE">$FILE</a> </li>" - done - footer + +header blogposts.html; + +printf \ " +<h1> Here is all the blogposts i have posted about</h1> +<ul> +"; + +for FILE in $( tac $DB/blogposts.txt | cut -c 12- ) ; do + echo "<li> <a href="blogposts/$FILE">$FILE</a> </li>" +done + +footer + )" >| $SOURCE/blogposts.html diff --git a/pages/index.sh b/pages/index.sh index 754e09a..3d58bb6 100755 --- a/pages/index.sh +++ b/pages/index.sh @@ -4,44 +4,48 @@ . ~/.config/b4rcms/basics.sh echo "$( - header - echo \ " - <h3> Welcome To My Digital Basement, Traveler</h3>" - - echo '<hr style="max-width: 200px; margin-left: 40px;" >' - echo \ " - <img src="/files/b4rkod_avatar.png" align="right"> - <p>Anyways!<p> - <p>In this site i will post crazy weird ramblings about technology with maybe my awful c practices scattered here and there.</p> - <p>I know my website doesn't look like much right now but i am stable and can be trusted with long, tedious labour with no immediate returns soo i will fill it with thingies and stuff. Pinkie promise...</p> - - <h2 > Contents </h2> " - - echo \ " - <ul id="contents"> - <li><a href=/blogposts.html >Blogposts</a></li> - <li><a href="https://git.b4rkod.net.tr">git</a></li> - <li><a href=/tools_i_use.html >Tools i use</a></li> - <li><a href=https://b4rkod.net.tr/#webrings >webrings</a></li> - <li><a href=https://b4rkod.net.tr/avatar.html >avatar</a></li> - <li><a href=https://b4rkod.net.tr/rss.xml >RSS</a></li> - <li><a href=/twtxt.txt >twtxt</a></li> - <li><a href=files/files.html >Library</a></li> - <li><a href=/trash/trash.html >Trash</a></li> - </ul> - " - printf \ " - <h2 id="webrings"> Webrings I am in </h2> - <ul> - <li><a href="lain_webring/webring.html">Lainchan Webring</a> - <li><a href="agora_webring/index.html">Agora Webring</a> - </ul> - <h2> Contact </h2> +header + +echo \ " + <h3> Welcome To My Digital Basement, Traveler</h3>" + +echo '<hr style="max-width: 31em;" align="left"> ' +echo \ " + <img alt="a portrait of a caped character with a monitor head displaying a barcode image" src="/files/b4rkod_avatar.png" align="right"> + <p>Anyways!<p> + <p>In this site i will post crazy weird ramblings about technology with maybe my awful c practices scattered here and there.</p> + <p>I know my website doesn't look like much right now but i am stable and can be trusted with long, tedious labour with no immediate returns soo i will fill it with thingies and stuff. Pinkie promise...</p> + +<h2 > Contents </h2> " + +echo \ " +<ul id="contents"> + <li><a href=/blogposts.html >Blogposts</a></li> + <li><a href="https://git.b4rkod.net.tr">git</a></li> + <li><a href=/tools_i_use.html >Tools i use</a></li> + <li><a href=https://b4rkod.net.tr/#webrings >webrings</a></li> + <li><a href=https://b4rkod.net.tr/avatar.html >avatar</a></li> + <li><a href=https://b4rkod.net.tr/rss.xml >RSS</a></li> + <li><a href=/twtxt.txt >twtxt</a></li> + <li><a href=files/files.html >Library</a></li> + <li><a href=/trash/trash.html >Trash</a></li> +</ul> " + +printf \ " + <h2 id="webrings"> Webrings I am in </h2> <ul> - <li><a href="mailto:lllillilll@protonmail.com" >lllillilll@protonmail.com</a> - <li> irc.b4rkod.net.tr (6667 for no SSL, 6697 for SSL) - <li>I will set up my own mail here, eventually - " - footer + <li><a href="lain_webring/webring.html">Lainchan Webring</a> + <li><a href="agora_webring/index.html">Agora Webring</a> + </ul> + <h2> Contact </h2> + +<ul> + <li><a href="mailto:lllillilll@protonmail.com" >lllillilll@protonmail.com</a> + <li> irc.b4rkod.net.tr (6667 for no SSL, 6697 for SSL) + <li><a href="https://mastodon.sdf.org/@void"> my mastodon </a> + <li>I will set up my own mail here, eventually +" +footer + )" >| $SOURCE/index.html diff --git a/pages/rss.sh b/pages/rss.sh new file mode 100755 index 0000000..70aff51 --- /dev/null +++ b/pages/rss.sh @@ -0,0 +1,37 @@ +#!/bin/sh + +. ~/.config/b4rcms/basics.sh +RSS_FILE="$SOURCE/rss.xml" +echo '<?xml version="1.0" encoding="UTF-8" ?>' >| $RSS_FILE +echo \ "<rss version=\"2.0\"> + +<channel> + <title>B4rkod's Basement</title> + <link>https://b4rkod.net.tr/rss.xml</link> + <description>My Basement's Window</description> + <!--item-->]> " >> $RSS_FILE + +for LINE in $( tac $DB/blogposts.txt ); do + DATE=$(date -d @$(echo $LINE | cut -c -10) -R) + BASE=$(echo $LINE| cut -c 12-) + FILE=$(cat $ROOT/blogposts/$BASE) + echo \ " +<item> + <pubDate>$DATE</pubDate> + <guid>https://b4rkod.net.tr/$BASE</guid> + <title>$BASE</title> + <link>https://b4rkod.net.tr/blogposts/$BASE</link> + <description><![CDATA[ + $FILE + ]]></description> +</item>" >> $RSS_FILE + +done + + +echo \ " +</channel> +</rss> +" >> $RSS_FILE + + diff --git a/pages/tools_i_use.sh b/pages/tools_i_use.sh index 2240821..1ad1326 100755 --- a/pages/tools_i_use.sh +++ b/pages/tools_i_use.sh @@ -4,45 +4,46 @@ . ~/.config/b4rcms/basics.sh echo "$( - header - echo \ " - <h3>Hardware i use</h3> +header - <dl> +echo \ " +<h3>Hardware i use</h3> - <dt>Hardware +<dl> - <dd>I currently use a <a href="https://www.thinkwiki.org/wiki/Category:X201"> Thinkpad X201 M540</a> named Asena. Linux runs on any hardware soo i don't really care about the performance and the keyboard and the trackpoint just makes her perfect for me. I maxxed out everything i could on her, the only thing i could upgrade is a msata drive, which is on the list. +<dt>Hardware - </dl> +<dd>I currently use a <a href="https://www.thinkwiki.org/wiki/Category:X201"> Thinkpad X201 M540</a> named Asena. Linux runs on any hardware soo i don't really care about the performance and the keyboard and the trackpoint just makes her perfect for me. I maxxed out everything i could on her, the only thing i could upgrade is a msata drive, which is on the list. - <h3>Software i use</h3> +</dl> - <dl> - <dt>Distro +<h3>Software i use</h3> - <dd> I use<a href="https://artixlinux.org"> Artix Gnu/Linux</a> for desktop but i have no hard feeling about distros. - <dd> my servers run the latest version of debian, i don't remember which version. +<dl> +<dt>Distro - <dt>WM +<dd> I use<a href="https://artixlinux.org"> Artix Gnu/Linux</a> for desktop but i have no hard feeling about distros. +<dd> my servers run the latest version of debian, i don't remember which version. - <dd>I use <a href="https://dwm.suckless.org">DWM</a> because it is just great. I use it without any patches, disabled layouts, can't change the number of windows in the left side and deleted all code related to starting other programs. I like it more when sxhkd starts my programs, not dwm. +<dt>WM - <dt>Init +<dd>I use <a href="https://dwm.suckless.org">DWM</a> because it is just great. I use it without any patches, disabled layouts, can't change the number of windows in the left side and deleted all code related to starting other programs. I like it more when sxhkd starts my programs, not dwm. - <dd>I use <a href="http://smarden.org/runit">Runit</a> because as far as my limited linux experience goes, it is the most stable one. It is also simple stupid if you spare 5 minutes to read the manual. +<dt>Init - <dt>Terminal Emulator +<dd>I use <a href="http://smarden.org/runit">Runit</a> because as far as my limited linux experience goes, it is the most stable one. It is also simple stupid if you spare 5 minutes to read the manual. - <dd>I use <a href="https://st.suckless.org">St</a> as you would expect, i just have scrollback and anysize patches for it. +<dt>Terminal Emulator - <dt>Editor +<dd>I use <a href="https://st.suckless.org">St</a> as you would expect, i just have scrollback and anysize patches for it. - <dd>I use <a href="https://neovim.io">Neovim</a>, i don't even remember why i use nvim instead of vim directly but i do. Vim is just soo much better, anyone that says it isn't that good or efficient is lying to themselves. You can only gain from using vim. +<dt>Editor - <dt>Shell +<dd>I use <a href="https://neovim.io">Neovim</a>, i don't even remember why i use nvim instead of vim directly but i do. Vim is just soo much better, anyone that says it isn't that good or efficient is lying to themselves. You can only gain from using vim. - <dd>I use bash as interactive shell because it was the one the system came with. I try to keep the shell close to default,my .bashrc is only 66 lines. /bin/sh is symlinked to dash. - " - footer +<dt>Shell + +<dd>I use bash as interactive shell because it was the one the system came with. I try to keep the shell close to default,my .bashrc is only 66 lines. /bin/sh is symlinked to dash. +" +footer )" >| $SOURCE/tools_i_use.html |