add: change database to postgres

This commit is contained in:
trisua 2025-08-18 21:32:43 -04:00
parent 24d9f17bd4
commit 187508b8f3
15 changed files with 647 additions and 471 deletions

View file

@ -143,7 +143,7 @@
const { load, failed } = submitter_load(rm ? document.getElementById(\"fake_delete_button\") : e.submitter);
load();
fetch(\"/api/v1/entries/{{ entry.slug }}\", {
fetch(\"/api/v1/entries/{{ entry.id }}\", {
method: \"POST\",
headers: {
\"Content-Type\": \"application/json\",

View file

@ -33,7 +33,7 @@
("class" "button camo fade")
(text "{{ icon \"menu\" }}"))
(div
("class" "inner")
("class" "inner left")
(a
("class" "button")
("href" "/")

View file

@ -55,7 +55,7 @@
; views
(text "{% if not metadata.option_disable_views -%}")
(span (text "Views: {{ views }}"))
(span (text "Views: {{ entry.views }}"))
(text "{%- endif %}")
; easy-to-read