all repos — site @ ebfa59d9e9ff1dc10c25844c431b6d53637b5d92

source for my site, found at icyphox.sh

Tabularize post listing

Signed-off-by: Anirudh Oppiliappan <x@icyphox.sh>
Anirudh Oppiliappan x@icyphox.sh
Sat, 05 Oct 2019 21:51:48 +0530
commit

ebfa59d9e9ff1dc10c25844c431b6d53637b5d92

parent

7787a72471468688d095e2651f6393d9b3c5938b

M bin/update_index.pybin/update_index.py

@@ -22,8 +22,8 @@ def update_index(s):

path = '../pages/_index.md' with open(path, 'r') as f: md = f.readlines() - latest = md.index('# latest post\n') - md[latest + 2] = s + '\n' + ruler = md.index('| --- | --: |\n') + md[ruler + 1] = s + '\n' with open(path, 'w') as f: f.writelines(md)

@@ -31,9 +31,9 @@

def update_blog(s): path = '../pages/blog/_index.md' - s = s + '\n\n' + s = s + '\n' for l in fileinput.FileInput(path, inplace=1): - if "marker" in l: + if "--:" in l: l=l.replace(l, l + s) print(l, end=''),

@@ -41,7 +41,7 @@ # fetch title and date

meta = markdown_path(getrecent(blog), extras=['metadata']).metadata fname = os.path.basename(os.path.splitext(getrecent(blog))[0]) url = '/blog/' + fname -line = f"`{meta['date']}` [{meta['title']}]({url})" +line = f"| [{meta['title']}]({url}) | `{meta['date']}` |" update_index(line) update_blog(line)
M build/blog/index.htmlbuild/blog/index.html

@@ -36,24 +36,52 @@ <div class="content">

<div align="left"> <h1 id="rssblogfeedxml">блог (<a href="/blog/feed.xml">rss</a>)</h1> -<p><!&#8211;marker&#8211;!> -<code>2019-10-05</code> <a href="/blog/digital-minimalism">Thoughts on digital minimalism</a></p> - -<p><code>2019-09-27</code> <a href="/blog/2019-09-27">Weekly status update, 09/17 &#8211; 09/27</a></p> - -<p><code>2019-09-17</code> <a href="/blog/2019-09-17">Weekly status update, 09/08 &#8211; 09/17</a></p> - -<p><code>2019-09-10</code> <a href="/blog/disinfo">Disinformation demystified</a></p> - -<p><code>2019-08-15</code> <a href="/blog/mailserver">Setting up my personal mailserver</a></p> - -<p><code>2019-08-06</code> <a href="/blog/fb50">Picking the FB50 smart lock (CVE-2019-13143)</a></p> - -<p><code>2019-06-06</code> <a href="/blog/rop-on-arm">Return Oriented Programming on ARM (32-bit)</a></p> - -<p><code>2019-13-05</code> <a href="/blog/my-setup">My Setup</a></p> - -<p><code>2019-02-08</code> <a href="/blog/python-for-re-1/">Python for Reverse Engineering #1: ELF Binaries</a></p> +<table> +<thead> +<tr> + <th></th> + <th align="right"></th> +</tr> +</thead> +<tbody> +<tr> + <td><a href="/blog/digital-minimalism">Thoughts on digital minimalism</a></td> + <td align="right"><code>2019-10-05</code></td> +</tr> +<tr> + <td><a href="/blog/2019-09-27">Weekly status update, 09/17 &#8211; 09/27</a></td> + <td align="right"><code>2019-09-27</code></td> +</tr> +<tr> + <td><a href="/blog/2019-09-17">Weekly status update, 09/08 &#8211; 09/17</a></td> + <td align="right"><code>2019-09-17</code></td> +</tr> +<tr> + <td><a href="/blog/disinfo">Disinformation demystified</a></td> + <td align="right"><code>2019-09-10</code></td> +</tr> +<tr> + <td><a href="/blog/mailserver">Setting up my personal mailserver</a></td> + <td align="right"><code>2019-08-15</code></td> +</tr> +<tr> + <td><a href="/blog/fb50">Picking the FB50 smart lock (CVE-2019-13143)</a></td> + <td align="right"><code>2019-08-06</code></td> +</tr> +<tr> + <td><a href="/blog/rop-on-arm">Return Oriented Programming on ARM (32-bit)</a></td> + <td align="right"><code>2019-06-06</code></td> +</tr> +<tr> + <td><a href="/blog/my-setup">My Setup</a></td> + <td align="right"><code>2019-13-05</code></td> +</tr> +<tr> + <td><a href="/blog/python-for-re-1/">Python for Reverse Engineering #1: ELF Binaries</a></td> + <td align="right"><code>2019-02-08</code></td> +</tr> +</tbody> +</table> </div> <hr />
M build/index.htmlbuild/index.html

@@ -52,7 +52,20 @@ <code>icyphox</code> on Rizon and Freenode.</p>

<h1 id="latest-post">latest post</h1> -<p><code>2019-10-05</code> <a href="/blog/digital-minimalism">Thoughts on digital minimalism</a></p> +<table> +<thead> +<tr> + <th></th> + <th align="right"></th> +</tr> +</thead> +<tbody> +<tr> + <td><a href="/blog/digital-minimalism">Thoughts on digital minimalism</a></td> + <td align="right"><code>2019-10-05</code></td> +</tr> +</tbody> +</table> <p>(<a href="/blog">see all</a>)</p>
M build/static/style.cssbuild/static/style.css

@@ -127,6 +127,10 @@ .muted a {

color: cyan } +table { + width: 100%; +} + a { color: gray; margin: 0;
M pages/_index.mdpages/_index.md

@@ -22,7 +22,9 @@ `icyphox` on Rizon and Freenode.

# latest post -`2019-10-05` [Thoughts on digital minimalism](/blog/digital-minimalism) +| | | +| --- | --: | +| [Thoughts on digital minimalism](/blog/digital-minimalism) | `2019-10-05` | ([see all](/blog))
M pages/blog/_index.mdpages/blog/_index.md

@@ -6,22 +6,15 @@ ---

# блог ([rss](/blog/feed.xml)) -<!--marker--!> -`2019-10-05` [Thoughts on digital minimalism](/blog/digital-minimalism) - -`2019-09-27` [Weekly status update, 09/17 -- 09/27](/blog/2019-09-27) - -`2019-09-17` [Weekly status update, 09/08 -- 09/17](/blog/2019-09-17) - -`2019-09-10` [Disinformation demystified](/blog/disinfo) - -`2019-08-15` [Setting up my personal mailserver](/blog/mailserver) - -`2019-08-06` [Picking the FB50 smart lock (CVE-2019-13143)](/blog/fb50) - -`2019-06-06` [Return Oriented Programming on ARM (32-bit)](/blog/rop-on-arm) - -`2019-13-05` [My Setup](/blog/my-setup) - -`2019-02-08` [Python for Reverse Engineering #1: ELF Binaries](/blog/python-for-re-1/) +| | | +| --- | --: | +| [Thoughts on digital minimalism](/blog/digital-minimalism) | `2019-10-05` | +| [Weekly status update, 09/17 -- 09/27](/blog/2019-09-27) |`2019-09-27`| +| [Weekly status update, 09/08 -- 09/17](/blog/2019-09-17) |`2019-09-17`| +| [Disinformation demystified](/blog/disinfo) |`2019-09-10`| +| [Setting up my personal mailserver](/blog/mailserver) |`2019-08-15`| +| [Picking the FB50 smart lock (CVE-2019-13143)](/blog/fb50) |`2019-08-06`| +| [Return Oriented Programming on ARM (32-bit)](/blog/rop-on-arm) |`2019-06-06`| +| [My Setup](/blog/my-setup) |`2019-13-05`| +| [Python for Reverse Engineering #1: ELF Binaries](/blog/python-for-re-1/)|`2019-02-08`|
M static/style.cssstatic/style.css

@@ -127,6 +127,10 @@ .muted a {

color: cyan } +table { + width: 100%; +} + a { color: gray; margin: 0;