Skip to content

Commit

Permalink
Update links to point to own pages, closes #17
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Aug 22, 2020
1 parent 6e64607 commit 22cbcdd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion metadata.yaml
Expand Up @@ -26,7 +26,7 @@ databases:
SELECT
'tag:til.simonwillison.net,2020-04-30:' || path as atom_id,
title as atom_title,
url as atom_link,
'https://til.simonwillison.net/til/til/' || path as atom_link,
created_utc as atom_updated,
html as atom_content_html,
'Simon Willison' as atom_author_name,
Expand Down
6 changes: 3 additions & 3 deletions templates/index.html
Expand Up @@ -11,7 +11,7 @@
font-family: helvetica;
padding: 1em;
max-width: 800px;
line-height: 1.5em;
line-height: 1.4;
}
input[type=search] {
padding: .25em;
Expand Down Expand Up @@ -62,7 +62,7 @@ <h1>Simon Willison: TIL</h1>
<path fill="#FFF" d="M184 213A140 140 0 0 0 44 73V38a175 175 0 0 1 175 175z" />
</svg> Atom feed</a></p>

<p><strong>Recently added:</strong> {% for row in sql("select * from til order by created_utc desc limit 5") %}<a href="{{ row.url }}">{{ row.title }}</a>{% if not loop.last %}, {% endif %}{% endfor %}</p>
<p><strong>Recently added:</strong> {% for row in sql("select * from til order by created_utc desc limit 5") %}<a href="/til/til/{{ row.path }}">{{ row.title }}</a>{% if not loop.last %}, {% endif %}{% endfor %}</p>

<form action="/til/search">
<p>
Expand All @@ -75,7 +75,7 @@ <h1>Simon Willison: TIL</h1>
<h2>{{ row.topic }}</h2>
<ul>
{% for til in sql("select * from til where topic = :topic order by created_utc desc", {"topic": row.topic}) %}
<li><a href="{{ til.url }}">{{ til.title }}</a> - {{ til.created[:10] }}</li>
<li><a href="/til/til/{{ til.path }}">{{ til.title }}</a> - {{ til.created[:10] }}</li>
{% endfor %}
</ul>
{% endfor %}
Expand Down

0 comments on commit 22cbcdd

Please sign in to comment.