Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Simon Dingley 1470 posts 3427 karma points c-trib
    Oct 31, 2017 @ 15:10
    Simon Dingley
    0

    NoIndex for Archive, Category & Tags Pages

    I've just migrated a blog for an upgraded site from uBlogsy to Articulate. The migration was successful however I am working closely with an external SEO company how have insisted that the Archive, Category and Tags pages have the meta robots tag with a NOINDEX value. Since as far as I can tell the "List" view is used for all three I'm not sure I can see an obvious means of achieving this and so I'm looking for any suggestions?

    Thanks for a much-needed stable blogging platform for Umbraco!

  • Simon Dingley 1470 posts 3427 karma points c-trib
    Oct 31, 2017 @ 15:43
    Simon Dingley
    100

    I have just discovered that whilst they are Virtual Documents they still have a document type so I can add the following in my master view.

    @if (Model.DocumentTypeAlias.Equals("ArticulateTags") || Model.DocumentTypeAlias.Equals("ArticulateCategories"))
    {
        <meta name="robots" contents="noindex"/>
    }
    

    Not necessarily the most elegant solution but will do the job for now!

  • Shannon Deminick 1524 posts 5270 karma points MVP 2x
    Oct 31, 2017 @ 23:43
    Shannon Deminick
    1

    Yup that is just fine!

Please Sign in or register to post replies

Write your reply to:

Draft