parent:
0dc4c3cf24b542dd316944205d8505abbab10507
nick <nick@nick-mykins.local>
2017-03-05T14:07:28-05:00
really fix link bug
diff --git a/cowtemplate.html b/cowtemplate.html
index a7b3ac79086a5885ac817dbbeb4e773d946b3f3f..c6c38e17394e876b16ebab0631ebec2999ba036a 100644
--- a/cowtemplate.html
+++ b/cowtemplate.html
@@ -25,7 +25,7 @@ <font color="green">\|/</font> || ||
</pre>
<img src="internet_party.gif" alt="internet_party.gif" width="300">
</div><div class="posts">
-{% for cowpost in cowposts %}<pre><a href="{{cowpost.htmltitle}}"><p class="cowdate">{{cowpost.date}}</p></a>{{cowpost.cowtext}}
+{% for cowpost in cowposts %}<pre><a href="{{cowpost.frontpagehtmltitle}}"><p class="cowdate">{{cowpost.date}}</p></a>{{cowpost.cowtext}}
</pre>
{% endfor %}
<img src="lol_nothing_matters.gif" alt="lol_nothing_matters.gif" width="300">
diff --git a/deploy.py b/deploy.py
index a2624b3ec732365574e2a5931e1599343d56c1fc..4cb5623f6c9bf1635012dca5c8da960e0a80bcba 100644
--- a/deploy.py
+++ b/deploy.py
@@ -28,7 +28,8 @@ with db_connect() as conn:
cur = conn.cursor()
cur.execute('''
select date
- , 'cowposts/' || title || '.html' as htmltitle
+ , 'cowposts/' || title || '.html' as frontpagehtmltitle
+ , title || '.html' as htmltitle
, cowtext
from cowposts
order by id desc''')