14 lines
379 B
SQL
14 lines
379 B
SQL
{{ define "main" }}
|
|
{{ range (where .Pages "Section" "ne" "gist") }}
|
|
{{ range .Pages }}
|
|
INSERT INTO db.blog (published, title, body, url)
|
|
VALUES(
|
|
'{{ .Date.Format "2006-01-02" }}',
|
|
'{{ plainify .Title }}',
|
|
'{{ (plainify .Content) }}',
|
|
'{{ .Permalink }}'
|
|
);
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|