What is the best way to create breadcrumbs based on a structure? How do you create breadcrumbs based on a structure?

My structure:


Parent

Child (active)
Other Child



Child

My url:

site.com/parent/child

So my breadcrumb need to be:

home (url) / parent (url) / child
Got it!

{% if craft.request.segments %}
&lt;nav class="breadcrubs"&gt;
    &lt;div class="container"&gt;
        &lt;div class="row"&gt;
            &lt;ol class="breadcrumb"&gt;
                &lt;li&gt;&lt;a href="{{ siteUrl }}"&gt;Home&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;
        &lt;/div&gt;
    &lt;/div&gt;
&lt;/nav&gt;
{% endif %}