{% if page.crosspost %}
    {% assign prefix = page.date | date: '%Y-%m-%d' %}
    <p>This article is cross posted with my <a href="https://brightinventions.pl/blog/{{ page.path | replace: '_posts/', '' | replace: prefix, '' | replace: '.md', '' | replace_first: '-', '' }}">company's blog </a></p>
{% endif %}
{% if page.crosspost %}
    {% assign prefix = page.date | date: '%Y-%m-%d' %}
    <p>This article is cross posted with my <a href="https://brightinventions.pl/blog/{{ page.path | replace: '_posts/', '' | replace: prefix, '' | replace: '.md', '' | replace_first: '-', '' }}">company's blog</a>.</p>
{% endif %}
Add . at the end
Add . at the end
