Skip to content

Commit

Permalink
Remove url filter
Browse files Browse the repository at this point in the history
  • Loading branch information
helenclx committed Sep 16, 2024
1 parent 6ffe716 commit 8eda553
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/_includes/global/base.njk
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
<link rel="alternate" type="application/rss+xml" title="{{ sitemeta.siteBlog.title | safe }}" href="{{ sitemeta.feedPath }}">

{# Favicon #}
<link rel="icon" sizes="32x32" href="{{'/assets/icons/favicon/favicon.ico' | url }}">
<link rel="icon" type="image/svg+xml" href="{{'/assets/icons/favicon/HC-favicon.svg' | url }}">
<link rel="apple-touch-icon" sizes="180x180" href="{{'/assets/icons/favicon/apple-touch-icon.png' | url }}">
<link rel="manifest" href="{{'/assets/icons/favicon/site.webmanifest' | url }}">
<link rel="icon" sizes="32x32" href="/assets/icons/favicon/favicon.ico">
<link rel="icon" type="image/svg+xml" href="/assets/icons/favicon/HC-favicon.svg">
<link rel="apple-touch-icon" sizes="180x180" href="/assets/icons/favicon/apple-touch-icon.png">
<link rel="manifest" href="/assets/icons/favicon/site.webmanifest">

{# CSS #}
{% include "global/css.njk" %}
Expand All @@ -32,7 +32,7 @@
{# JavaScript #}
<script src="{% getBundleFileUrl 'js' %}" defer></script>
{% if toc %}
<script src="{{'/assets/js/details-utils.js'}}" defer></script>
<script src="/assets/js/details-utils.js" defer></script>
{% endif %}

<title>{% if title %} {{ title }} | {% endif %} {{ sitemeta.siteName }}</title>
Expand Down
2 changes: 1 addition & 1 deletion src/_includes/global/css.njk
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
] %}

{%- for file in cssFiles -%}
<link rel="stylesheet" href="{{'/assets/css/' + file + '.css' | url | safe}}">
<link rel="stylesheet" href="{{'/assets/css/' + file + '.css'}}">
{%- endfor -%}
2 changes: 1 addition & 1 deletion src/blog/feed.njk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ eleventyExcludeFromCollections: true
<email>{{ sitemeta.siteAuthor.email }}</email>
</author>
{%- for post in collections.posts | reverse | limit(10) %}
{% set absolutePostUrl %}{{ post.url | url | absoluteUrl(sitemeta.siteBlog.url) }}{% endset %}
{% set absolutePostUrl %}{{ post.url | absoluteUrl(sitemeta.siteBlog.url) }}{% endset %}
<entry>
<title>{{ post.data.title }}</title>
<link href="{{ absolutePostUrl }}"/>
Expand Down
2 changes: 1 addition & 1 deletion src/sitemap.xml.njk
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 8eda553

Please sign in to comment.