MarcelDigital.Umbraco.Amp NuGet Package

Umbraco extension create Google AMP pages for content.

Provides an AMP layout boilerplate (/Views/Shared/_LayoutAmp.cshtml) to base AMP pages off of.

Creates an Amp template in Umbraco so that you can start creating amp pages off of the alternate
template url in order to have Amp and traditional pages side by side.

(Ex: something.org/my-content/amp)

Use the custom controller RenderAmpMvcController to unlock multiple templates off of the alternate template route.
Put AMP views in /Views/Amp and name them off of the document type alias which you want to create an AMP view for.

To make it the default controller, add this to the OnApplicationStarting method on a class implementing IApplicationEventHandler:
DefaultRenderMvcControllerResolver.Current.SetDefaultControllerType(typeof(RenderAmpMvcController));.




Got any MarcelDigital.Umbraco.Amp Question?





Info

Version: 1.0.0
Author(s): Marcel Digital
Last Update: Friday, March 17, 2017
.NET Fiddle: Create the first Fiddle
NuGet Url: https://www.nuget.org/packages/MarcelDigital.Umbraco.Amp


Install
Install-Package MarcelDigital.Umbraco.Amp
dotnet add package MarcelDigital.Umbraco.Amp
paket add MarcelDigital.Umbraco.Amp
MarcelDigital.Umbraco.Amp Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

avg-downloads-per-day

1

days-since-last-release

2589