{{ampLink}} helper

Notice: Update Regarding AMP Functionality

We regret to inform you that the AMP functionality has been removed from our application starting with version 0.42.0 and will no longer be developed or supported. This article pertained to earlier versions of the application where the AMP feature was available. If you are using version 0.42.0 or later, please be aware that the information in this article is no longer applicable. We apologize for any inconvenience and encourage you to explore our other features that may add value to your experience.

Generates link element with URL to the AMP version of the website:

Syntax:

{{ampLink}}

Example output:

<link rel="amphtml" href="https://example.com/amp/">

Should be used in the <head> section of the website.

Create your first website with Publii

Join thousands of creators who chose independence. Create content locally and publish lightning-fast, secure websites on your own terms.

Download Publii

Free and open source. Windows, macOS and Linux.

Read the getting started guide