chore: cleanup and refactor
This commit is contained in:
parent
b6fb54ab98
commit
5295a6eacc
37 changed files with 285 additions and 356 deletions
|
@ -1,9 +1,9 @@
|
|||
<div class="mt-12 py-8 border-t-2 flex flex-col md:flex-row justify-between items-center">
|
||||
<div class="flex flex-col mb-4 md:mb-0 md:flex-row items-center flex-1">
|
||||
<div class="border border-blue-600 dark:border-blue-400 bg-white rounded-full overflow-hidden mb-4 md:mb-0 md:mr-4 [&>*]:h-20 [&>*]:w-20 flex flex-col items-center">
|
||||
{% image './src/assets/img/avatar.webp', site.name, 'inline-block' %}
|
||||
{% image './src/assets/img/avatar.webp', meta.siteName, 'inline-block' %}
|
||||
</div>
|
||||
<span class="text-lg font-medium">{{ site.name }}</span>
|
||||
<span class="text-lg font-medium">{{ meta.siteName }}</span>
|
||||
</div>
|
||||
<p class="text-sm flex-1">{{ site.description }}</p>
|
||||
<p class="text-sm flex-1">{{ meta.siteDescription }}</p>
|
||||
</div>
|
|
@ -3,8 +3,8 @@
|
|||
"version": "https://jsonfeed.org/version/1",
|
||||
"title": "{{ title }}",
|
||||
"icon": "https://coryd.dev/static/images/avatar.webp",
|
||||
"home_page_url": "{{ site.url }}",
|
||||
"feed_url": "{{ site.url }}{{ permalink }}",
|
||||
"home_page_url": "{{ meta.url }}",
|
||||
"feed_url": "{{ meta.url }}{{ permalink }}",
|
||||
"items": [{% for entry in entries limit: 20 -%}
|
||||
{
|
||||
"id": "{{ entry.url | btoa }}",
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
{% assign entries = data | normalizeEntries -%}
|
||||
<title>{{ title }}</title>
|
||||
<description>{{ description }}</description>
|
||||
<link>{{ permalink | absoluteUrl: site.url }}</link>
|
||||
<link>{{ permalink | absoluteUrl: meta.url }}</link>
|
||||
<lastBuildDate>{{ updated }}</lastBuildDate>
|
||||
<image>
|
||||
<title>{{ title }}</title>
|
||||
<link>{{ permalink | absoluteUrl: site.url }}</link>
|
||||
<url>{{ site.url }}/assets/icons/feed-icon.png</url>
|
||||
<link>{{ permalink | absoluteUrl: meta.url }}</link>
|
||||
<url>{{ meta.url }}/assets/icons/feed-icon.png</url>
|
||||
<width>144</width>
|
||||
<height>144</height>
|
||||
</image>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<div class="flex flex-col md:flex-row md:items-center md:justify-between pt-5 md:pt-10">
|
||||
<h1 class="text-2xl md:text-3xl font-black leading-tight pb-5 md:pb-0">
|
||||
<a class="text-gray-700 dark:text-gray-200" href="/">{{ site.title }}</a>
|
||||
<a class="text-gray-700 dark:text-gray-200" href="/">{{ meta.siteName }}</a>
|
||||
</h1>
|
||||
{% render "partials/nav/menu.liquid", page: page, nav: nav %}
|
||||
</div>
|
Reference in a new issue