fix: render assignments

This commit is contained in:
Cory Dransfeldt 2023-07-08 13:12:43 -07:00
parent f162f04a6e
commit 669232428b
No known key found for this signature in database
8 changed files with 12 additions and 15 deletions

View file

@ -40,8 +40,7 @@ module.exports = {
}
const filtered =
webmentions
?.filter((entry) => entry['wm-target'] === `https://coryd.dev${url}`)
webmentions.filter((entry) => entry['wm-target'] === `https://coryd.dev${url}`)
.filter((entry) => allowedTypes.includes(entry['wm-property'])) || []
filtered.forEach((m) => {

View file

@ -1,9 +1,7 @@
---
layout: main
---
{% render "partials/header.liquid", site: site %}
{% render "partials/header.liquid", site: site, page: page %}
<div class="pt-8 prose dark:prose-invert hover:prose-a:text-blue-500 max-w-full">
{{ content }}
</div>
</div>

View file

@ -6,5 +6,5 @@ layout: base
<main class="flex-1 w-10/12 max-w-screen-sm md:max-w-screen-md mx-auto">
{{ content }}
</main>
{% render "partials/footer.liquid" %}
{% render "partials/footer.liquid", page: page %}
</div>

View file

@ -1,7 +1,7 @@
---
layout: main
---
{% render "partials/header.liquid", site: site %}
{% render "partials/header.liquid", site: site, page: page %}
<h2 class="m-0 text-xl flex flex-row items-center font-black leading-tight tracking-normal dark:text-gray-200 md:text-2xl mt-8 mb-4">
{% heroicon "outline" "clock" "Currently" "height=28" %}
<div class="ml-1">Currently</div>

View file

@ -11,6 +11,6 @@
<p class="text-sm text-gray-500 dark:text-gray-100 pb-8 text-center">
<a class="text-gray-500 hover:text-purple-500 dark:text-gray-200 dark:hover:text-purple-500{% if page.url == '/uses/' %} active{% endif %}" href="/uses">Uses</a> •
<a class="text-gray-500 hover:text-purple-500 dark:text-gray-200 dark:hover:text-purple-500{% if page.url == '/referrals/' %} active{% endif %}" href="/referrals">Referrals</a> •
<a class="text-gray-500 hover:text-purple-500 dark:text-gray-200 dark:hover:text-purple-500{% if page.url == '/referrals/' %} active{% endif %}" href="/reports/lighthouse/">Lighthouse</a>
<a class="text-gray-500 hover:text-purple-500 dark:text-gray-200 dark:hover:text-purple-500" href="/reports/lighthouse/">Lighthouse</a>
</p>
</footer>

View file

@ -2,5 +2,5 @@
<h1 class="text-2xl md:text-3xl font-black leading-tight pb-5 md:pb-0">
<a class="text-gray-700 hover:text-purple-500 dark:text-gray-200 dark:hover:text-purple-500" href="/">{{ site.title }}</a>
</h1>
{% render "partials/nav.liquid" %}
{% render "partials/nav.liquid", page: page %}
</div>

View file

@ -7,13 +7,13 @@
<a class="text-gray-700 hover:text-purple-500 dark:text-gray-200 dark:hover:text-purple-500{% if page.url == '/about/' %} active{% endif %}" href="/about">About</a>
</li>
<li class="mr-6">
{% render "icons/tags.liquid" %}
{% render "icons/tags.liquid", page: page %}
</li>
<li class="mr-6 client-side">
{% render "icons/search.liquid" %}
{% render "icons/search.liquid", page: page %}
</li>
<li>
{% render "icons/rss.liquid" %}
{% render "icons/rss.liquid", page: page %}
</li>
</ul>
</nav>

View file

@ -1,7 +1,7 @@
---
layout: main
---
{% render "partials/header.liquid", site: site %}
{% render "partials/header.liquid", site: site, page: page %}
<article class="h-entry" data-pagefind-body>
<h2 class="p-name text-xl md:text-2xl font-black leading-tight dark:text-gray-200 pt-8" data-pagefind-meta="title">{{ title }}</h2>
<span class="p-author h-card hidden">{{ site.title }}</span>
@ -12,6 +12,6 @@ layout: main
</div>
</article>
{% render "partials/post-tags.liquid", tags: tags %}
{% render "partials/webmentions.liquid", webmentions: webmentions %}
{% render "partials/webmentions.liquid", webmentions: webmentions, page: page %}
{% render "partials/author.liquid", site: site %}
{% render "partials/popular-posts.liquid", posts: collections.posts, analytics: analytics %}