Skip to content

A library packed with lots of SEO goodness for ASP.Net MVC projects.

License

Notifications You must be signed in to change notification settings

oopanuga/Seo-Pack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SeoPack

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.

Supported Html Tags

  1. Title
  2. Meta Description
  3. Anchor
  4. Image
  5. ImageLink
  6. Canonical Links
  7. Pagination Links (rel=prev, rel=next pagination attributes)
  8. HrefLang Links
  9. Open Graph

Planned features

  1. Friendly urls
  2. Canonicalization
  3. Robots.txt
  4. Sitemap.xml
  5. Rich Snippets and Structured Data
  6. Script Tag management
  7. etc.

Installing SeoPack - nuget

PM> Install-Package SeoPack

Using 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....

About

A library packed with lots of SEO goodness for ASP.Net MVC projects.

Resources

License

Stars

Watchers

Forks

Packages

No packages published