Question about breadcrumb links I am using Craft only for the blog section of my HTML site. I have integrated my existing breadcrumbs to the blog, but there is a problem.

When I am on the home page of the blog, the word "Blog" in the breadcrumb is linked, and I would rather it not be linked.

I would like the word "Blog" in the breadcrumb to be a link only after going to an article on the blog. Please see attached.



The code I am using right now is

    &lt;ol class="breadcrumb"&gt;
        &lt;li&gt;&lt;a href="/index.html"&gt;Home&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="{{ siteUrl }}"&gt;Blog&lt;/a&gt;&lt;/li&gt;
            {% for crumb in entry.getAncestors() %}
                &lt;li&gt;{{ crumb.getLink() }}&lt;/li&gt;
            {% endfor %}
            &lt;li&gt;{{ entry.title() }}&lt;/li&gt;
    &lt;/ol&gt;


I am new to Craft - thanks for your help!
A conditional that keys off the presence of the second segment to determine what to show for the "Blog" link/copy will work.

{% set seg2 = "" %}
{% set seg2 = craft.request.getSegment(2) %}

&lt;ol class="breadcrumb"&gt;
    &lt;li&gt;&lt;a href="/"&gt;Home&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;
        {% if seg2 == "" %}
            Blog
        {% else %}
            &lt;a href="{{ siteUrl }}"&gt;Blog&lt;/a&gt;
        {% endif %}
    &lt;/li&gt;
    {% for crumb in entry.getAncestors() %}
        &lt;li&gt;{{ crumb.getLink() }}&lt;/li&gt;
    {% endfor %}
    &lt;li&gt;{{ entry.title() }}&lt;/li&gt;
&lt;/ol&gt;