auto_discovery_link_tag

Description

Return a link tag that browsers and news readers can use to auto-detect an RSS or ATOM feed.

Syntax

{{ <url> | auto_discovey_link_tag: <options> }} 

Example

{{ '/projects/atom' | auto_discovery_link_tag: 'rel:alternate', 'type:application/atom+xml', 'title:A title' }}

displays the following:

<link rel="alternate" type="application/atom+xml" title="A title" href="/projects/atom" />

Options

Name Type Description
title String By default, its value is 'RSS'
rel String By default, its value is 'alternate'
type String By default, its value is 'application/rss+xml'
© 2024 LocomotiveCMS Terms of use Privacy Policy
Back to top