made some changes to bb.sh, discovered some issues with old posts not being templatable and fixed bb.sh to allow new posts to be properly templated.

This commit is contained in:
CHNK 2022-01-08 10:08:27 -07:00
parent fc253c7951
commit ad65cb4cdc
4 changed files with 35 additions and 32 deletions

View File

@ -8,13 +8,14 @@
<title>GRU's blog &mdash; all posts</title>
</head><body>
<div id="divbodyholder">
<div class="headerholder"><div class="header">
<div id="title">
<h1 class="nomargin"><a class="ablack" href="https://gru.codeberg.page/blog/index.html">GRU's blog</a></h1>
<div id="description">GRU's blog</div>
</div></div></div>
<div id="divbody"><div class="content">
<h3>all posts</h3>
<div id="header">
<a href="/">
<img src="../gru.png" style="width: 35%; height: 68px;">
</a>
</div>
<hr>
<h3>All Posts</h3>
<h4 class='allposts_header'>January 2022</h4>
<ul>
<li><a href="./gru-devlog-23---more-olibc-and-start-of-occ-and-more-projects-ideas.html">GRU Devlog 23 - more olibc and start of occ (and more projects ideas!)</a> &mdash; January 02, 2022</li>
@ -60,8 +61,9 @@
<li><a href="./gru-devlog-week-0---grsh-grutils-and-start-of-gros.html">GRU DevLog Week 0 - grsh, grutils and start of gros</a> &mdash; July 25, 2021</li>
</ul>
<div id="all_posts"><a href="./index.html">back home</a></div>
</div>
<div id="footer">CC by-nc-nd <a href="https://gru.codeberg.page/">G1n</a> &mdash; <a href="mailto:g1n&#64;ttm&#46;sh">g1n&#64;ttm&#46;sh</a><br>
generated with <a href="https://tildegit.org/team/bashblog">bashblog</a>, a single bash script to easily create blogs like this one</div>
<hr>
</div>
</div></div>
</body></html>

View File

@ -5,16 +5,17 @@
<link rel="stylesheet" href="main.css" type="text/css">
<link rel="stylesheet" href="blog.css" type="text/css">
<link rel="alternate" type="application/rss+xml" title="subscribe to this page..." href="https://gru.codeberg.page/blog/feed.xml">
<title>GRU's blog &mdash; all tags</title>
<title>GRU's Blog &mdash; all tags</title>
</head><body>
<div id="divbodyholder">
<div class="headerholder"><div class="header">
<div id="title">
<h1 class="nomargin"><a class="ablack" href="https://gru.codeberg.page/blog/index.html">GRU's blog</a></h1>
<div id="description">GRU's blog</div>
</div></div></div>
<div id="divbody"><div class="content">
<h3>all tags</h3>
<div id="header">
<a href="/">
<img src="../gru.png" style="width: 35%; height: 68px;">
</a>
</div>
<hr>
<h3>All Tags</h3>
<ul>
<li><a href="tag_contribution.html">contribution</a> &mdash; 1 post</li>
<li><a href="tag_coreutils.html">coreutils</a> &mdash; 2 posts</li>
@ -57,8 +58,9 @@
<li><a href="tag_yemu.html">yemu</a> &mdash; 6 posts</li>
</ul>
<div id="all_posts"><a href="./index.html">back home</a></div>
</div>
<div id="footer">CC by-nc-nd <a href="https://gru.codeberg.page/">G1n</a> &mdash; <a href="mailto:g1n&#64;ttm&#46;sh">g1n&#64;ttm&#46;sh</a><br>
generated with <a href="https://tildegit.org/team/bashblog">bashblog</a>, a single bash script to easily create blogs like this one</div>
<hr>
</div>
</div></div>
</body></html>

View File

@ -365,12 +365,9 @@ create_html_page() {
[[ -n $body_begin_file ]] && cat "$body_begin_file"
# body divs
echo '<div id="divbodyholder">'
echo '<div class="headerholder"><div class="header">'
# blog title
echo '<div id="title">'
cat .title.html
echo '</div></div></div>' # title, header, headerholder
echo '<div id="divbody"><div class="content">'
echo '<div id="header"><a href="/"><img src="../gru.png" style="width: 35%; height: 68px;"></a></div><hr>'
file_url=${filename#./}
file_url=${file_url%.rebuilt} # Get the correct URL when rebuilding
@ -406,10 +403,10 @@ create_html_page() {
echo '<!-- entry end -->' # absolute end of the post
fi
echo '</div>' # content
# page footer
cat .footer.html
echo '<hr>'
echo '</div>' # content
# close divs
echo '</div></div>' # divbody and divbodyholder
[[ -n $body_end_file ]] && cat "$body_end_file"

View File

@ -3,7 +3,7 @@ body {
color: #a7d129;
/* font-family: 'Inconsolata', monospace; */
letter-spacing: 1.2px;
line-height: 1em;
line-height: 1.2em;
font-family: 'Share Tech Mono', monospace;
font-weight: 300;
}
@ -40,8 +40,10 @@ h3 {
}
h4 {
margin: 1px;
padding: 1px;
margin-top: 8px;
margin: 2px;
padding: 2px;
padding-top: 20px;
}
em {
@ -79,10 +81,10 @@ img{
}
p {
padding-bottom: 10px;
padding-top: 10px;
margin-top: 0px;
margin-bottom: 0px;
background-color: #1F1F1F;
padding: 1px;
margin-top: 12px;
margin-bottom: 12px;
}
header {
width:100%;
@ -111,10 +113,10 @@ header {
.content p {
margin-left:24px;
margin-right:24px;
padding-bottom: 2px;
padding-top: 2px;
padding-bottom: 5px;
padding-top: 5px;
}
a.ablack {
background-color: #101010;
padding: 1px;
padding: 2px;
}