diff --git a/templates/threads.html b/templates/home.html similarity index 99% rename from templates/threads.html rename to templates/home.html index 2fbdba4..82fb5e0 100644 --- a/templates/threads.html +++ b/templates/home.html @@ -319,7 +319,7 @@
{% if tags is defined%} {% with tags=tags %} - {% include "tags.html" %} + {% include "tag-pills.html" %} {% endwith %} {% endif %}
diff --git a/templates/tag.html b/templates/tag-page.html similarity index 99% rename from templates/tag.html rename to templates/tag-page.html index 1244e66..59ca16b 100644 --- a/templates/tag.html +++ b/templates/tag-page.html @@ -307,7 +307,7 @@
{% if tags is defined%} {% with tags=tags %} - {% include "tags.html" %} + {% include "tag-pills.html" %} {% endwith %} {% endif %}
diff --git a/templates/tags.html b/templates/tag-pills.html similarity index 100% rename from templates/tags.html rename to templates/tag-pills.html diff --git a/threads.py b/threads.py index 1a580ae..ef591d1 100755 --- a/threads.py +++ b/threads.py @@ -65,7 +65,7 @@ async def home(): # List featured hashtags tags = masto.featured_tags() - return render_template('threads.html', threads=statuses, tags=tags, app=app, attribution=attribution, render_date=datetime.now()) + return render_template('home.html', threads=statuses, tags=tags, app=app, attribution=attribution, render_date=datetime.now()) @threads.route('/tag/') @@ -83,7 +83,7 @@ async def tag(id): - return render_template('tag.html', threads=statuses, tag=id, app=app, tags=tags, attribution=attribution, render_date=datetime.now()) + return render_template('tag-page.html', threads=statuses, tag=id, app=app, tags=tags, attribution=attribution, render_date=datetime.now()) @threads.route('/') @@ -96,7 +96,7 @@ def thread(id): status['summary'] = utils.clean_html(status['content']).strip() if len(status['summary']) > 69: status['summary'] = status['summary'][:69] + '...' - return render_template('threads.html', threads=[status], app=app, attribution=attribution, render_date=datetime.now()) + return render_template('home.html', threads=[status], app=app, attribution=attribution, render_date=datetime.now()) else: return '

Not Found

🤷🤷‍♀️🤷‍♂️

go home', 404