BlogEngine.Core.API.BlogML.BlogImporter.PostUrl C# (CSharp) 메소드

PostUrl() 정적인 개인적인 메소드

post url
static private PostUrl ( string slug, System.DateTime dateCreated ) : string
slug string post slug
dateCreated System.DateTime date created
리턴 string
        static string PostUrl(string slug, DateTime dateCreated)
        {
            var theslug = Utils.RemoveIllegalCharacters(slug) + BlogConfig.FileExtension;

            return BlogSettings.Instance.TimeStampPostLinks
                       ? string.Format(
                           "{0}post/{1}{2}",
                           Utils.RelativeWebRoot,
                           dateCreated.ToString("yyyy/MM/dd/", CultureInfo.InvariantCulture),
                           theslug)
                       : string.Format("{0}post/{1}", Utils.RelativeWebRoot, theslug);
        }