Added support for rel="canonical" meta.
This commit is contained in:
parent
9d52f36079
commit
78d4d07a73
5 changed files with 37 additions and 9 deletions
|
@ -39,9 +39,13 @@ namespace ScrewTurn.Wiki {
|
|||
|
||||
content = Content.GetPageContent(page, true);
|
||||
|
||||
Literal canonical = new Literal();
|
||||
canonical.Text = Tools.GetCanonicalUrlTag(Request.Url.ToString(), page, Pages.FindNamespace(NameTools.GetNamespace(page.FullName)));
|
||||
Page.Header.Controls.Add(canonical);
|
||||
|
||||
Page.Title = FormattingPipeline.PrepareTitle(content.Title, false, FormattingContext.PageContent, page) + " - " + Settings.WikiTitle;
|
||||
|
||||
PrintContent();
|
||||
PrintContent();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue