✨ relative_path filter
This commit is contained in:
@ -3,8 +3,8 @@
|
||||
<head>
|
||||
<title>{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}</title>
|
||||
{% include meta.html %}
|
||||
<link href="/css/main.css" media="screen, projection" rel="stylesheet" type="text/css">
|
||||
<link href="/atom.xml" rel="alternate" title="{{site.title}}" type="application/atom+xml">
|
||||
<link href="{{ "/css/main.css" | relative_path }}" media="screen, projection" rel="stylesheet" type="text/css">
|
||||
<link href="{{ "/atom.xml" | relative_path }}" rel="alternate" title="{{site.title}}" type="application/atom+xml">
|
||||
<script defer data-domain="walkah.net" src="https://plausible.io/js/script.js"></script>
|
||||
</head>
|
||||
<body class="bg-white text-gray-900 dark:bg-gray-900 dark:text-gray-100">
|
||||
|
@ -8,7 +8,7 @@ layout: default
|
||||
</header>
|
||||
{% if page.image %}
|
||||
<figure class="md:-mx-12">
|
||||
<img class="u-featured rounded-md shadow-md w-full" src="{{ page.image }}" alt="{{ page.title }}">
|
||||
<img class="u-featured rounded-md shadow-md w-full" src="{{ page.image | relative_path }}" alt="{{ page.title }}">
|
||||
{% if page.image_source %}
|
||||
<figcaption>
|
||||
<cite><a href="{{ page.image_source }}">{{ page.image_source }}</a></cite>
|
||||
@ -21,8 +21,8 @@ layout: default
|
||||
</section>
|
||||
<footer class="flex flex-row not-prose">
|
||||
<div rel="author" class="p-author h-card basis-1/2">
|
||||
<img class="u-photo w-8 inline-block" src="/images/walkah-avatar.png" >
|
||||
<a href="/">walkah</a>
|
||||
<img class="u-photo w-8 inline-block" src="{{ "/images/walkah-avatar.png" | relative_path }}" >
|
||||
<a href="{{ "/" | relative_path }}">walkah</a>
|
||||
</div>
|
||||
<div class="text-right basis-1/2">{{ page.tags | tag_links }}</div>
|
||||
</footer>
|
||||
|
Reference in New Issue
Block a user