A library packed with lots of SEO goodness for ASP.Net MVC projects. Get access to a bunch of Html Seo Helper methods for rendering SEO compliant Html tags including Open Graph tags. Please see "Planned features" below for other SEO features to come.
The Html SEO Helper methods are extension methods of the ASP.Net MVC HtmlHelper class. These helper methods render SEO compliant html tags according to the recommendations defined in the MOZ SEO Cheat Sheet for Web developers.
- Title
- Meta Description
- Anchor
- Image
- ImageLink
- Canonical Links
- Pagination Links (rel=prev, rel=next pagination attributes)
- HrefLang Links
- Open Graph
- Friendly urls
- Canonicalization
- Robots.txt
- Sitemap.xml
- Rich Snippets and Structured Data
- Script Tag management
- etc.
Installing SeoPack - nuget
PM> Install-Package SeoPack
Rendering a SEO compliant Title tag - checks length is 70 chars or less
@Html.UnpackSeo().Title("Welcome to the SeoPack Github page")
Rendering a SEO compliant Meta Description tag - checks length is 155 chars or less
@Html.UnpackSeo().MetaDescription("The SeoPack lib is packed with lots of SEO goodness")
Rendering a SEO compliant Anchor tag
@Html.UnpackSeo().Anchor(new Anchor(
href: "https://github.com/oopanuga/seo-pack",
text: "The SeoPack Github Page",
noFollow: true,
attributes: new {
target = "_blank",
@class = "seo-pack-github-anchor",
some_other_attr = "other-attr"
}))
And lots more....