Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/backend/app/blog.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
~ %.n %payload
[200 ['Content-Type' 'text/html; charset=utf-8']~]
=/ tem=@t (~(gut by themes) theme.act '')
`(as-octs:mimes:html (cat 3 html.act (add-style:blog-lib tem)))
`(as-octs:mimes:html (cat 3 (cat 3 (add-header:blog-lib path.act) html.act) (add-style:blog-lib tem)))
== ==
::
%unpublish
Expand Down
12 changes: 11 additions & 1 deletion src/backend/lib/blog.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@
^- @t
(cat 3 (cat 3 '<style>' css) '</style>')
::
++ add-header
|= title=path
^- @t
%- crip
"""
<head>
<title>{(trip (rear title))}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"></head>
"""
::
++ http-response-cards
|= [id=@tas hed=response-header:http data=(unit octs)]
^- (list card:agent:gall)
Expand All @@ -37,4 +47,4 @@
[%give %fact paths %http-response-data !>(data)]
[%give %kick paths ~]
==
--
--