-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmetadata.yaml
75 lines (75 loc) · 2.02 KB
/
metadata.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
title: Today I Learned
about: mabdullahabid/til
about_url: https://github.com/mabdullahabid/til
plugins:
datasette-graphql:
path: /-/graphql
datasette-atom:
allow_unsafe_html_in_canned_queries: true
datasette-block-robots:
literal: |-
User-agent: *
Disallow: /tils
datasette-sitemap:
sql: |-
select '/' || topic || '/' || slug as path from til
databases:
tils:
queries:
search: |
select
til_fts.rank,
til.*,
snippet(til_fts, -1, 'b4de2a49c8', '8c94a2ed4b', '...', 60) as snippet
from
til
join til_fts on til.rowid = til_fts.rowid
where
til_fts match case
:q
when '' then 'nomatchforthisterm'
else escape_fts(:q)
end
order by
til_fts.rank limit 40
feed:
title: Abdullah Abid TIL
sql: |-
SELECT
'tag:til.abd.dev,2020-04-30:' || path as atom_id,
title as atom_title,
'https://til.abd.dev/' || topic || '/' || slug as atom_link,
created_utc as atom_updated,
html as atom_content_html,
'Abdullah Abid' as atom_author_name,
'https://abd.dev/' as atom_author_uri
FROM
til
order by
created_utc desc
limit
15
feed_by_topic:
title: Abdullah Abid TIL for topic
sql: |-
SELECT
'tag:til.abd.dev,2020-04-30:' || path as atom_id,
title as atom_title,
'https://til.abd.dev/' || topic || '/' || slug as atom_link,
created_utc as atom_updated,
html as atom_content_html,
'Abdullah Abid' as atom_author_name,
'https://abd.dev/' as atom_author_uri
FROM
til
where
topic = :topic
order by
created_utc desc
limit
15
tables:
til:
sort_desc: updated_utc
facets:
- topic