L
+
@model IndexModel
@{
ViewBag.FluidLayout = true;
Layout = ThemeManager.CurrentTheme.GetEmptyLayout();
PageLayout.Content.Title = Model.DocumentName?.Replace("-", " ");
ViewBag.Description = Model.GetDescription();
+ ViewBag.CanonicalUrl = Model.IsLatestVersion ? null : Model.GetFullUrlOfTheLatestDocument(); //issue #12355
}
+
@section styles {
-
-
-
-
-
-
-
+
+
+
+
+
+
+
}
@section scripts {
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
}
@if (Model.LoadSuccess)
{
@@ -93,8 +97,8 @@
@@ -112,11 +116,11 @@
-
+
@@ -131,11 +135,11 @@
@*
-
- *@
+
+ *@
@@ -149,11 +153,11 @@
+ id="filter"
+ type="search"
+ data-search-url="@Model."
+ placeholder="@L["FilterTopics"].Value"
+ aria-label="Filter">
@@ -168,13 +172,13 @@
else
{
+ version="@(Model.LatestVersionInfo == null || Model.LatestVersionInfo.IsSelected ? DocsAppConsts.Latest : Model.Version)"
+ project-name="@Model.ProjectName"
+ project-format="@Model.Project.Format"
+ selected-document-name="@Model.DocumentNameWithExtension"
+ language="@Model.LanguageCode"
+ id="sidebar-scroll"
+ class="nav nav-list">
}
@@ -194,11 +198,11 @@
+ id="fullsearch"
+ type="search"
+ data-fullsearch-url="/search/@Model.LanguageCode/@Model.ProjectName/@Model.Version/"
+ placeholder="@L["FullSearch"].Value"
+ aria-label="Filter">
}
@@ -210,15 +214,15 @@
@(L["Contributors"].Value)
- @foreach (var contributor in Model.Document.Contributors.OrderByDescending(c=> c.CommitCount).ToList())
+ @foreach (var contributor in Model.Document.Contributors.OrderByDescending(c => c.CommitCount).ToList())
{
+ class="rounded-circle"
+ alt="Avatar"
+ height="21"
+ width="21"
+ title="@contributor.Username" />
}
}
@@ -261,8 +265,8 @@
@(parameter.DisplayName)