I’m not sure why Jekyll is rendering the links with the page URL. For example, if I have this on the text on the markdown file: 2023-09-19-new-test.md and I open it on this address: http://localhost:4000/analysis/2023-09-19-new-test/
---
layout: post
breadcrumbs: analysis
is_analysis: true
content_type: analysis
title: a new test
date: 2023-09-19T21:27:35.438Z
excerpt: Bacon ipsum dolor amet ham ground round pig pork loin, meatball t-bone
short ribs boudin tail sirloin pancetta ball tip chicken beef. Pork belly
landjaeger buffalo salami, filet mignon venison turducken alcatra
shoulder. Doner short loin ham bacon pancetta rump frankfurter jowl t-bone
kevin salami andouille bresaola. Doner buffalo kevin cow sausage pancetta
kielbasa picanha frankfurter.
is_featured: false
author:
- Juan
---
Bacon ipsum **dolor** amet ham ground round pig pork loin, meatball t-bone short ribs bo [jekyll](www.jekyllrb.cm)
the link it’s being rendered like this: http://localhost:4000/analysis/2023-09-19-new-test/www.jekyllrb.com
here is my _config.yml
---
title: Test
timezone: UTC
collections:
analysis:
title: Analysis
output: true
path: '/:path/:title/'
path: '/:path/:title/'
authors:
title: Authors
output: false
defaults:
- scope:
path: ''
type: analysis
values:
layout: post
excerpt:
states: []
sectors: []
subsectors: []
is_featured: false
feature_image:
feature_image_credit:
sources:
- name:
url:
details:
- name:
url:
author: []
pdf:
breadcrumbs: analysis
content_type: Analysis
is_analysis: true
- scope:
path: ''
type: authors
values:
job_title:
image:
permalink: pretty
baseurl:
url: https://mysite.com
markdown: kramdown
and here is the file that is rendering that page
---
layout: default
---
{% assign postClass = 'post-article' %} {% if page.is_analysis %} {% assign
postClass = 'post-analysis' %} {% endif %}
<article
class="post-individualContainer {{ postClass }}"
itemscope
itemtype="http://schema.org/BlogPosting"
>
<div class="content-wrapper fullWidthContent">
{% include share-icons.html shareTitle=page.title shareLink=page.url
individual="false" pdf=page.pdf %}
<header class="post-header">
{% if page.is_analysis %}
<h2 class="sectionSubtitle">Analysis</h2>
{% endif %}
<h1 class="main-title analysis-title" itemprop="name headline">
{{ page.title | escape }}
</h1>
</header>
<section class="post-content" itemprop="articleBody">
<!-- Feature Image -->
{% if page.is_analysis and page.feature_image.size > 0 %}
<div class="post-featureImage">
{% if jekyll.environment == 'production' and site.cloudinary_url
%}
<img
src="{{ page.feature_image | prepend: site.url | prepend: site.cloudinary_url }}"
title="{{ page.feature_image_credit }}"
alt="{{ page.feature_image_credit }}"
/>
{% else %}
<img
src="{{ page.feature_image }}"
title="{{ page.feature_image_credit }}"
alt="{{ page.feature_image_credit }}"
/>
{% endif %} {% if page.feature_image_credit %}
<span class="post-featureImageCredit"
><em>Photo credit:</em> {{ page.feature_image_credit
}}</span
>
{% endif %}
</div>
{% endif %}
<div class="articleMeta">
{% if page.is_analysis and page.author.size > 0 %} By {% assign
authors = page.author | sort:'position' %} {% for author in
authors %}
<span
itemprop="author"
itemscope
itemtype="http://schema.org/Person"
><span itemprop="name" class="articleAuthor"
>{{ author }}</span
></span
>{% if forloop.last == false %},{% endif %} {% endfor %}
<br />
{% endif %} Posted on
<time
datetime="{{ page.date | date_to_xmlschema }}"
itemprop="datePublished"
class="articleDate"
>{{ page.date | date: site.date_format }}</time
>
</div>
<!-- Content -->
{{ content }} {% if page.sources[0].name != null or
page.details[0].name != null or page.pdf %}
<hr class="post-articleSourceBreak" />
{% endif %}
<!-- Article Sources & Details -->
<div class="post-articleSourcesDetails">
{% if page.sources[0].name != null %}
<ul>
<li>
{% if page.sources.size > 1 %}
<span>Sources:</span>
{% else %}
<span>Source:</span>
{% endif %}
{% for source in page.sources %}
<a href="{{ source.url }}" target="_blank">{{ source.name }}
<img src="{{ "/assets/img/external-link-icon.svg" | relative_url }}" title="{{ source.name }}" alt="Go to" /></a>
</li>
{% if forloop.last == false %},{% endif %}
{% endfor %}
{% endif %}
{% if page.details[0].name != null %}
<li>
<span>In Detail: </span>
{% for detail in page.details %}
<a href="{{ detail.url }}" target="_blank">{{ detail.name }}
<img src="{{"/assets/img/external-link-icon.svg" | relative_url }}" title="{{ source.name }}" alt="Go to" /></a>
</li>
{% if forloop.last == false %},{% endif %} {% endfor %} {%
endif %} {% if page.pdf %}
<li><a href="{{ page.pdf }}" target="_blank">Download the PDF</a></li>
</ul>
{% endif %}
</div>
</section>
<footer class="post-footer">
{% if page.is_analysis and page.author.size > 0 %} {% assign authors
= page.author | sort:'position' %} {% for author in authors %} {%
assign authorInfo = site.authors | where:"name",author | first %}
<section
class="post-authorInfoContainer row"
itemprop="author"
itemscope
itemtype="http://schema.org/Person"
>
<div class="post-authorImage col-xs-12 col-md-3">
<img
src="{{ authorInfo.image | default:'/assets/img/anon-author.svg' }} "
alt="{{ author }} Image"
/>
</div>
<div class="post-authorInfo col-xs-12 col-md-9">
<h3 class="post-authorName sectionSubtitle" itemprop="name">
{{ author }}
</h3>
<span class="post-authorTitle articleMeta"
>{{ authorInfo.job_title }}</span
>
<p class="post-authorBio">{{ authorInfo.content | markdownify}}</p>
</div>
</section>
{% endfor %} {% endif %}
<section class="post-articleMetaContainer row">
<div class="listContent col-xs-12 col-md-3">
<h4 class="sectionSubtitle">Article Info</h4>
{% include post-listing-metainfo.html post=page %}
</div>
<div class="post-relatedPosts col-xs-12 col-md-9">
{% include related-posts.html is_analysis=page.is_analysis
%}
</div>
</section>
</footer>
</div>
</article>