Remove url filter

This commit is contained in:
Helen Chong 2024-09-16 16:56:25 +08:00
parent c0c01517a4
commit ab32d19b09
6 changed files with 11 additions and 11 deletions

View File

@ -12,12 +12,12 @@
{# Fonts #}
{% include "global/fontdefault.njk" %}
<link rel="stylesheet" href="{{'/assets/fonts/intel-one-mono/intel-one-mono.css' | url | safe}}">
<link rel="stylesheet" href="/assets/fonts/intel-one-mono/intel-one-mono.css">
{# CSS #}
{% include "global/css-bundle.njk" %}
{% if hasTooltips %}
<link rel="stylesheet" href="{{'/assets/css/tooltips.css' | url | safe}}">
<link rel="stylesheet" href="/assets/css/tooltips.css">
{% endif %}
<style>{% getBundle "css" %}</style>
@ -49,7 +49,7 @@
</main>
{% block footer %}{% include "global/footer.njk" %}{% endblock %}
{% if hasTooltips %}
<script src="{{'/assets/js/tooltips.js' | url | safe}}"></script>
<script src="/assets/js/tooltips.js"></script>
<script>
var selector = '[data-tooltip]';
var els = document.querySelectorAll(selector);

View File

@ -10,5 +10,5 @@
] %}
{%- for file in cssFiles -%}
<link rel="stylesheet" href="{{'/assets/css/' + file + '.css' | url | safe}}">
<link rel="stylesheet" href="{{'/assets/css/' + file + '.css'}}">
{%- endfor -%}

View File

@ -1,4 +1,4 @@
<link rel="icon" sizes="32x32" href="{{'/assets/favicon/favicon.ico' | url }}">
<link rel="icon" type="image/svg+xml" href="{{'/assets/favicon/leilukin-bee-favicon.svg' | url }}">
<link rel="apple-touch-icon" sizes="180x180" href="{{'/assets/favicon/apple-touch-icon.png' | url }}">
<link rel="manifest" href="{{'/assets/favicon/site.webmanifest' | url }}">
<link rel="icon" sizes="32x32" href="/assets/favicon/favicon.ico">
<link rel="icon" type="image/svg+xml" href="/assets/favicon/leilukin-bee-favicon.svg">
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon.png">
<link rel="manifest" href="/assets/favicon/site.webmanifest">

View File

@ -14,7 +14,7 @@
{# Style #}
{% include "global/fontdefault.njk" %}
<link rel="stylesheet" href="{{'/assets/css/misc.css' | url | safe}}">
<link rel="stylesheet" href="/assets/css/misc.css">
{# Favicon #}
{% include "global/favicon.njk" %}

View File

@ -17,7 +17,7 @@ eleventyComputed:
<email>{{ sitemeta.siteAuthor.email }}</email>
</author>
{%- for item in collections["feed items"] | reverse | itemLimit(15) %}
{% set absolutePostUrl %}{{ item.url | url | absoluteUrl(sitemeta.siteUrl) }}{% endset %}
{% set absolutePostUrl %}{{ item.url | absoluteUrl(sitemeta.siteUrl) }}{% endset %}
<entry>
<title>{{ item.data.title }}</title>
<link href="{{ absolutePostUrl }}"/>

View File

@ -6,7 +6,7 @@ eleventyExcludeFromCollections: true
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
{%- for item in collections.all %}
<url>
<loc>{{ sitemeta.siteUrl + item.url | url }}</loc>
<loc>{{ sitemeta.siteUrl + item.url }}</loc>
<lastmod>{% if item.updated %}{{ item.updated.toISOString() }}{% else %}{{ item.date.toISOString() }}{% endif %}</lastmod>
<changefreq>{{ item.data.sitemap.changefreq | default("weekly") }}</changefreq>
<priority>{{ item.data.sitemap.priority | default(0.5) }}</priority>