Skip to content

Commit

Permalink
fix: manually update row paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jthodge committed Oct 15, 2023
1 parent 00fe3a0 commit 207293d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ <h1>

<p>
<strong>Recently added:</strong> <ul>{% for row in sql("select * from til order by
created_utc desc limit 5") %}<li><a href="/til/til/{{ row.path }}"
created_utc desc limit 5") %}<li><a href="/til/til/{{ row.path }}~2Emd"
>{{ row.title }}</a
></li>{% if not loop.last %} {% endif %}{% endfor %}</ul>
</p>
Expand All @@ -116,7 +116,7 @@ <h2>{{ row.topic }}</h2>
{% for til in sql("select * from til where topic = :topic order by created_utc
desc", {"topic": row.topic}) %}
<li>
<a href="/til/til/{{ til.path }}">{{ til.title }}</a> - {{ til.created[:10]
<a href="/til/til/{{ til.path }}~2Emd">{{ til.title }}</a> - {{ til.created[:10]
}}
</li>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion templates/query-til-search.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ <h1>TIL search: {{ q }}</h1>
{% endif %} {% for row in rows %}
<p>
<span class="topic">{{ row.topic }}</span>
<a href="{{ row.path }}">{{ row.title }}</a> - {{ row.created[:10] }}
<a href="{{ row.path }}~2Emd">{{ row.title }}</a> - {{ row.created[:10] }}
</p>
<pre>{{ highlight(row.snippet)|safe }}</pre>
{% endfor %} {% endblock %}

0 comments on commit 207293d

Please sign in to comment.