/// <summary>
 /// Prepare the meta tags for this view.
 /// </summary>
 private void ConfigureMetaTags()
 {
     var metaTags = new MetaTags();
     metaTags.Description = SettingsHelper.GetSeoHomeDescription();
     metaTags.Keywords = String.Join(",",SettingsHelper.GetSeoHomeKeywords());
     ViewData["MetaTags"] = metaTags;
 }
        /// <summary>
        /// Prepare the meta tags for this view.
        /// </summary>
        /// <param name="package">The package</param>
        private void ConfigureMetaTags(Package package)
        {
            var metaTags = new MetaTags();

            // Set the description from the package summary
            metaTags.Description = package.GetAbbreviatedNotes(SettingsHelper.GetSeoPackageDescriptionLength());

            // Get the common keywords from the settings
            var keywords = SettingsHelper.GetSeoCommonPackageKeywords();

            // Add the tags from the package
            keywords.AddRange(package.Tags);

            // Convert the list into a comma-delimited string
            var keywordsString = String.Join(",", keywords.ToArray());

            // Replace CKAN hyphens with spaces
            keywordsString = keywordsString.Replace("-", " ");

            // Set the page keywords
            metaTags.Keywords = keywordsString;
            
            ViewData["MetaTags"] = metaTags;
        }