shadowfacts.net/site/layouts/article.html.ejs

56 lines
2.0 KiB
Plaintext
Raw Permalink Normal View History

2019-01-04 18:14:53 +00:00
```
metadata.layout = "default.html.ejs"
```
<article itemprop="blogPost" itemscope itemtype="https://schema.org/BlogPosting">
<meta itemprop="mainEntityOfPage" content="https://shadowfacts.net<%= metadata.permalink %>">
<h1 class="article-title" itemprop="name headline">
2022-01-20 17:46:17 +00:00
<% if (metadata.htmlTitle) { %>
<%- metadata.htmlTitle %>
<% } else { %>
<%= metadata.title %>
<% } %>
</h1>
<%- include("../includes/article-meta.html.ejs", { metadata }) %>
<div class="article-content" itemprop="articleBody">
<% if (metadata.preamble) { %>
<%- metadata.preamble %>
<% } %>
<%- content %>
</div>
2019-08-18 21:15:31 +00:00
<details id="comments-container">
<summary>
<h2 id="comments-container-title">Comments</h2>
</summary>
<p id="comments-info">
2022-05-16 04:41:01 +00:00
Comments powered by ActivityPub. To respond to this post enter your username and instance below, or copy its URL into the search interface of your client for Mastodon, Pleroma, or other compatible software.
2020-01-12 20:52:09 +00:00
<a href="/2019/reincarnation/#activity-pub">Learn more</a>.
2019-08-18 21:15:31 +00:00
</p>
2022-05-16 04:41:01 +00:00
<form action="/interact" method="POST" id="remote-interact">
<span>Reply from your instance:</span>
<% if (metadata.useOldPermalinkForComments) { %>
<input type="hidden" name="permalink" value="<%= metadata.oldPermalink %>">
<% } else { %>
<input type="hidden" name="permalink" value="<%= metadata.permalink %>">
<% } %>
<!-- name needs to be exactly that to get the browser to use same completions as mastodon -->
<input type="text" placeholder="Enter your user@domain" required id="acct" name="remote_follow[acct]">
<input type="submit" value="Interact">
</form>
2019-08-18 21:15:31 +00:00
<noscript>
<p id="comments-js-warning">
JavaScript is required to display comments.
</p>
</noscript>
</details>
</article>
2019-03-01 23:42:28 +00:00
<script>
<% if (metadata.useOldPermalinkForComments) { %>
const permalink = "<%= metadata.oldPermalink %>";
<% } else { %>
const permalink = "<%= metadata.permalink %>";
<% } %>
2019-03-01 23:42:28 +00:00
</script>
<script src="/js/comments.js" async></script>