LukeSmithxyz/lb

"Recent Blog Posts" feature missing?

lukerb52 opened this issue · 3 comments

In the html for lukesmith.xyz, there is a <!--BLOG--> tag, and under it are your 5 recent blog posts. Is lb supposed to put blog titles there. or is that managed by a different process? If it is managed by lb, then putting in my html file and creating a new blogpost does not do the trick.

This isn't a feature of this repository, but a single command I have run when I upload my website which reads the output of this program. Here is what mine looks line if you need it explained specifically.

repl=$(grep "<li>" "$HOME/.local/src/website/blogindex.html" | sed 5q | tr -d '\n' | sed 's/[\/&]/\\&/g')
sed -i "s/<!--BLOG-->.*/<!--BLOG-->$repl/g" ~/.local/src/website/index.html

Thanks! I'll give it a look later.