14 lines
379 B
MySQL
14 lines
379 B
MySQL
|
{{ 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 }}
|