Begin adding rudimentary support for posting new entries to the site - needs to be prettier and a lot smarter, but it exists now
This commit is contained in:
parent
b027125c2e
commit
4b7a8a7198
12 changed files with 91 additions and 0 deletions
12
templates/mf2/h-entry.hamlet
Normal file
12
templates/mf2/h-entry.hamlet
Normal file
|
@ -0,0 +1,12 @@
|
|||
<article .h-entry>
|
||||
<h1.p-name>#{entryName entry}
|
||||
<p>
|
||||
Published
|
||||
$maybe author <- maybeAuthor
|
||||
\ by
|
||||
<a .p-author.h-card href=@{HomeR}>
|
||||
#{userFullName author}
|
||||
on
|
||||
<time .dt-published datetime=#{show $ entryPublished entry}>
|
||||
<div .e-content>
|
||||
#{entryContent entry}
|
3
templates/mf2/h-feed.hamlet
Normal file
3
templates/mf2/h-feed.hamlet
Normal file
|
@ -0,0 +1,3 @@
|
|||
<ol .h-feed>
|
||||
$forall entry <- entries
|
||||
<li>^{hEntry entry}
|
Loading…
Add table
Add a link
Reference in a new issue