Clarification on canonical URL behavior

Thanks David, sorry, didn’t see you’d replied to this until now. I shelved this project last year but picked it up again recently since I’ve got a little more time on my hands…

I think using code injection the way you’re suggesting would only work on the page for that post, but I’m looking to do this within the main/alt loops. In the meanwhile I’m using this hack of the “Excerpt” field to accomplish this, but it would be awesome if each post had a “Linked URL” or “External URL” field that could be accessed via {{linked_url}} or {{external_url}}

{{#if custom_excerpt}}
    <h2 class="entry-title"><a href="{{excerpt}}">{{{title}}}</a></h2>
{{else}}
    <h2 class="entry-title">{{{title}}}</h2>
{{/if}}
1 Like