Skip to content

Commit

Permalink
Add attribution to blog posts (ocaml#1351)
Browse files Browse the repository at this point in the history
Co-authored-by: Thibaut Mattio <thibaut.mattio@gmail.com>
  • Loading branch information
reynir and tmattio committed Jun 29, 2023
1 parent 4109246 commit 007e187
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/ocamlorg_frontend/pages/blog_post.eml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@ Layout.render
</a>
</div>

<div class="prose prose-orange mx-auto max-w-5xl">
<h1><%s planet.title %></h1>
<article class="prose prose-orange mx-auto max-w-5xl">
<header>
<h1><%s planet.title %></h1>
<% (match planet.authors with None -> () | Some authors -> %>
<i>Authored by: <%s String.concat ", " authors %></i>
<% ); %>
</header>
<%s! planet.body_html %>
</div>
</article>
</div>
</div>

0 comments on commit 007e187

Please sign in to comment.