tags weren't working for stories, but I think I fixed it
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<div class="sidebar">
|
||||
<div class="diary-box about-box">
|
||||
<h2>about</h2>
|
||||
<p><a href="/"><b>Blessfrey.me</b></a> is my blog and portfolio for programming, art, and Scripture. I want to learn and play!</p>
|
||||
<p><a href="/"><b>Blessfrey.me</b></a> is my webdev playground!</p>
|
||||
</div>
|
||||
|
||||
<div class="diary-box social-box">
|
||||
@@ -31,13 +31,13 @@
|
||||
<h2>cloud</h2>
|
||||
% for t in tags:
|
||||
% tagless = t.replace('#','')
|
||||
<a href=/diary/tag/{{tagless}}>{{t}}</a>
|
||||
<a href=/{{category}}/tag/{{tagless}}>{{t}}</a>
|
||||
% end
|
||||
</div>
|
||||
|
||||
<div class="diary-box disclosure">
|
||||
<h2>disclosure</h2>
|
||||
<p>Blessfrey.me is not using sponsored posts or affiliate links.</p>
|
||||
<p>Blessfrey.me has no sponsored posts or affiliate links.</p>
|
||||
<p>Blessfrey.me is not collecting personal information + has no cookies. </p>
|
||||
<p>Thank you for visiting. </p>
|
||||
<!--⠀⠀⠀⠀⠀⠀⠀⠀⠀ __<br>
|
||||
|
||||
+20
-20
@@ -16,18 +16,18 @@
|
||||
%>
|
||||
<div class="diary-dir-left">
|
||||
% # << is always active link pointing to 0
|
||||
<a href=/diary/0>
|
||||
<a href=/{{category}}/0>
|
||||
<<
|
||||
</a>
|
||||
|
||||
% # < points to 0 if page 0 or below
|
||||
% if page <= 0:
|
||||
<a href=/diary/0>
|
||||
<a href=/{{category}}/0>
|
||||
<
|
||||
</a>
|
||||
% # < points to previous page otherwise
|
||||
% else:
|
||||
<a href=/diary/{{page - 1}}>
|
||||
<a href=/{{category}}/{{page - 1}}>
|
||||
<<
|
||||
</a>
|
||||
% end
|
||||
@@ -38,7 +38,7 @@
|
||||
% if max_pages > cluster and page > max_pages - cluster:
|
||||
% for j in range(cluster - max_pages + page):
|
||||
<div class="diary-dir-number">
|
||||
<a href=/diary/{{max_pages - cluster * 2 + j}} rel="nofollow">{{max_pages - cluster * 2 + j}}</a>
|
||||
<a href=/{{category}}/{{max_pages - cluster * 2 + j}} rel="nofollow">{{max_pages - cluster * 2 + j}}</a>
|
||||
</div>
|
||||
% end
|
||||
% end
|
||||
@@ -53,7 +53,7 @@
|
||||
% # form neighboring numbers into links
|
||||
% else:
|
||||
<div class="diary-dir-number">
|
||||
<a href=/diary/{{i}} rel="nofollow">{{i}}</a>
|
||||
<a href=/{{category}}/{{i}} rel="nofollow">{{i}}</a>
|
||||
</div>
|
||||
% end
|
||||
% end
|
||||
@@ -62,7 +62,7 @@
|
||||
% if page <= cluster - 1 and max_pages > page + cluster:
|
||||
% for j in range(cluster - page):
|
||||
<div class="diary-dir-number">
|
||||
<a href=/diary/{{page + j + cluster + 1}} rel="nofollow">{{page + j + cluster + 1}}</a>
|
||||
<a href=/{{category}}/{{page + j + cluster + 1}} rel="nofollow">{{page + j + cluster + 1}}</a>
|
||||
</div>
|
||||
% end
|
||||
% end
|
||||
@@ -71,18 +71,18 @@
|
||||
<div class="diary-dir-right">
|
||||
% # > points to max if page is at or above maximum
|
||||
% if page >= max_pages:
|
||||
<a href=/diary/{{max_pages}}>
|
||||
<a href=/{{category}}/{{max_pages}}>
|
||||
>
|
||||
</a>
|
||||
% # > point to next page otherwise
|
||||
% else:
|
||||
<a href=/diary/{{page + 1}}>
|
||||
<a href=/{{category}}/{{page + 1}}>
|
||||
>
|
||||
</a>
|
||||
% end
|
||||
|
||||
% # >> is always active link to maximum page
|
||||
<a href=/diary/{{max_pages}}>
|
||||
<a href=/{{category}}/{{max_pages}}>
|
||||
>>
|
||||
</a>
|
||||
</div>
|
||||
@@ -91,7 +91,7 @@
|
||||
<!-- DIARY PAGES -->
|
||||
<div class="diary-pages">
|
||||
|
||||
<span class=title><h1>diary</h1></span>
|
||||
<span class=title><h1>{{category}}</h1></span>
|
||||
% for s in snippets[page * limit:page * limit + limit]:
|
||||
<div class="snippet">
|
||||
<div class="snippet-title">
|
||||
@@ -109,7 +109,7 @@
|
||||
% for j in s[5]:
|
||||
<div class="snippet-tag">
|
||||
% tagless = j.replace('#','')
|
||||
<a href=/diary/tag/{{tagless}}>{{j}}</a>
|
||||
<a href=/{{category}}/tag/{{tagless}}>{{j}}</a>
|
||||
</div>
|
||||
% end
|
||||
</div>
|
||||
@@ -145,18 +145,18 @@
|
||||
%>
|
||||
<div class="diary-dir-left">
|
||||
% # << is always active link pointing to 0
|
||||
<a href=/diary/0>
|
||||
<a href=/{{category}}/0>
|
||||
<<
|
||||
</a>
|
||||
|
||||
% # < points to 0 if page 0 or below
|
||||
% if page <= 0:
|
||||
<a href=/diary/0>
|
||||
<a href=/{{category}}/0>
|
||||
<
|
||||
</a>
|
||||
% # < points to previous page otherwise
|
||||
% else:
|
||||
<a href=/diary/{{page - 1}}>
|
||||
<a href=/{{category}}/{{page - 1}}>
|
||||
<
|
||||
</a>
|
||||
% end
|
||||
@@ -167,7 +167,7 @@
|
||||
% if max_pages > cluster and page > max_pages - cluster:
|
||||
% for j in range(cluster - max_pages + page):
|
||||
<div class="diary-dir-number">
|
||||
<a href=/diary/{{max_pages - cluster * 2 + j}} rel="nofollow">{{max_pages - cluster * 2 + j}}</a>
|
||||
<a href=/{{category}}/{{max_pages - cluster * 2 + j}} rel="nofollow">{{max_pages - cluster * 2 + j}}</a>
|
||||
</div>
|
||||
% end
|
||||
% end
|
||||
@@ -182,7 +182,7 @@
|
||||
% # form neighboring numbers into links
|
||||
% else:
|
||||
<div class="diary-dir-number">
|
||||
<a href=/diary/{{i}} rel="nofollow">{{i}}</a>
|
||||
<a href=/{{category}}/{{i}} rel="nofollow">{{i}}</a>
|
||||
</div>
|
||||
% end
|
||||
% end
|
||||
@@ -191,7 +191,7 @@
|
||||
% if page <= cluster - 1 and max_pages > page + cluster:
|
||||
% for j in range(cluster - page):
|
||||
<div class="diary-dir-number">
|
||||
<a href=/diary/{{page + j + cluster + 1}} rel="nofollow">{{page + j + cluster + 1}}</a>
|
||||
<a href=/{{category}}/{{page + j + cluster + 1}} rel="nofollow">{{page + j + cluster + 1}}</a>
|
||||
</div>
|
||||
% end
|
||||
% end
|
||||
@@ -201,17 +201,17 @@
|
||||
<div class="diary-dir-right">
|
||||
% # > points to max if page is at or above maximum
|
||||
% if page >= max_pages:
|
||||
<a href=/diary/{{max_pages}}>
|
||||
<a href=/{{category}}/{{max_pages}}>
|
||||
>
|
||||
</a>
|
||||
% # > point to next page otherwise
|
||||
% else:
|
||||
<a href=/diary/{{page + 1}}>
|
||||
<a href=/{{category}}/{{page + 1}}>
|
||||
>
|
||||
</a>
|
||||
% end
|
||||
% # >> is always active link to maximum page
|
||||
<a href=/diary/{{max_pages}}>
|
||||
<a href=/{{category}}/{{max_pages}}>
|
||||
>>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
+3
-3
@@ -19,17 +19,17 @@
|
||||
% for t in entry[5]:
|
||||
<div class="diary-tag">
|
||||
% tagless = t.replace('#', '')
|
||||
<a href=/diary/tag/{{tagless}}>{{t}}</a>
|
||||
<a href=/{{category}}/tag/{{tagless}}>{{t}}</a>
|
||||
</div>
|
||||
% end
|
||||
</div>
|
||||
% end
|
||||
</div>
|
||||
<!--<hr>-->
|
||||
|
||||
<div class="share-links">
|
||||
|
||||
</div>
|
||||
<br>
|
||||
|
||||
</div>
|
||||
|
||||
% include diary-boxes.tpl
|
||||
|
||||
+16
-2
@@ -7,13 +7,27 @@
|
||||
<div class="intro">
|
||||
<h2>hello,</h2>
|
||||
<p>call me chimchooree.</p>
|
||||
<p>I live in the USA and dabble in lots of things - webdev, gamedev, programming, sewing, pattern-making, drawing, and creative writing, to name a few. Some of my projects are shared on here. Others may be lurking on <a href="https://chimchooree.itch.io/">itch.io (chimchooree)</a> and <a href="https://gitlab.com/chimchooree">GitLab (chimchooree)</a>, though most never see the light of day. </p>
|
||||
<p>I live in the USA and love to learn! Sometimes I post my writing, art, and code here like a portfolio. Other projects may be lurking on <a href="https://chimchooree.itch.io/">itch.io (chimchooree)</a> and <a href="https://gitlab.com/chimchooree">GitLab (chimchooree)</a>, though most are locked away forever. </p>
|
||||
<p>Blessfrey.me is a project in itself, a blog coded from scratch in <a href="https://bottlepy.org/docs/dev/">Bottle: Python</a>, <a href="https://bottlepy.org/docs/dev/stpl.html">SimpleTemplate</a>, and HTML+CSS. Any embedded applications are probably HTML5 and developed in <a href="https://godotengine.org/">Godot Engine</a>. </p>
|
||||
<p>Also, I am very sick. Please pray for me. </p>
|
||||
<p>If you don't mind, pray for me. I am very sick. </p>
|
||||
<h3>contact</h3>
|
||||
<ul>
|
||||
<li>{{random.choice(['.','•','☆','★'])}}	Steam: <a href="https://steamcommunity.com/id/customso/">Customs Officer</a> </li>
|
||||
<li>{{random.choice(['.','•','☆','★'])}}	FlightRising: <a href="https://www1.flightrising.com/clan-profile/525948">Aristene</a> </li>
|
||||
</ul>
|
||||
|
||||
<!--<form action="/contact" method="post">
|
||||
<label for="name">Name:</label>
|
||||
<input type="text" name="name" required><br>
|
||||
|
||||
<label for="email">Email:</label>
|
||||
<input type="email" name="email" required><br>
|
||||
|
||||
<label for="message">Message:</label>
|
||||
<textarea name="message" required></textarea><br>
|
||||
|
||||
<input type="submit" value="Submit">
|
||||
</form>-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
% rebase('frame.tpl')
|
||||
{{!entry[1]}}
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user