Skip to content

Commit 4cad154

Browse files
committed
More SEO tweaks
1 parent f56ce64 commit 4cad154

22 files changed

Lines changed: 1957 additions & 905 deletions

BlogEngine/BlogEngine.Core/Post.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,8 @@ public Uri PermaLink
478478
{
479479
get
480480
{
481-
return new Uri(string.Format("{0}post.aspx?id={1}", this.Blog.AbsoluteWebRoot, this.Id));
481+
//return new Uri(string.Format("{0}post.aspx?id={1}", this.Blog.AbsoluteWebRoot, this.Id));
482+
return new Uri(string.Format("{0}post/{1}", this.Blog.AbsoluteWebRoot, this.Slug));
482483
}
483484
}
484485

BlogEngine/BlogEngine.Core/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
[assembly: CLSCompliant(false)]
2020
[assembly: ComVisible(false)]
2121
[assembly: AllowPartiallyTrustedCallers]
22-
[assembly: AssemblyVersion("3.1.2.7")]
22+
[assembly: AssemblyVersion("3.1.2.8")]
2323
[assembly: SecurityRules(SecurityRuleSet.Level1)]

BlogEngine/BlogEngine.Core/Web/Controls/PostViewBase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,13 +348,13 @@ public virtual string TagLinks(string separator)
348348
}
349349

350350
var tagStrings = new string[tags.Count];
351-
const string Link = "<a href=\"{0}/{1}\" rel=\"tag\">{2}</a>";
352-
var path = Post.Blog.AbsoluteWebRoot + "tag";
351+
const string Link = "<a href=\"{0}?tag={1}\" rel=\"tag\">{2}</a>";
353352
for (var i = 0; i < tags.Count; i++)
354353
{
355354
var tag = tags[i];
356355
tagStrings[i] = string.Format(
357-
CultureInfo.InvariantCulture, Link, path, HttpUtility.UrlEncode(tag), HttpUtility.HtmlEncode(tag));
356+
CultureInfo.InvariantCulture, Link, Post.Blog.AbsoluteWebRoot,
357+
HttpUtility.UrlEncode(tag), HttpUtility.HtmlEncode(tag));
358358
}
359359

360360
return string.Join(separator, tagStrings);

BlogEngine/BlogEngine.NET/Account/login.aspx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
<asp:Login ID="LoginUser" runat="server" EnableViewState="false" RenderOuterTable="false" OnAuthenticate="LoginUser_OnAuthenticate">
88
<LayoutTemplate>
99
<div class="page-header clearfix">
10-
<h3>
11-
<asp:Label runat="server" ID="lblTitle" Text="<%$Resources:labels,login %>" /></h3>
10+
<h1 style="font-size: 24px; margin: 0"><asp:Label runat="server" ID="lblTitle" Text="<%$Resources:labels,login %>" /></h1>
1211
</div>
1312
<div class="account-content">
1413
<div class="form-group">

BlogEngine/BlogEngine.NET/Account/password-retrieval.aspx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
</asp:Content>
88
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
99
<div class="page-header clearfix">
10-
<h3>
11-
<%=Resources.labels.passwordRetrieval %></h3>
10+
<h1 style="font-size: 24px; margin: 0"><%=Resources.labels.passwordRetrieval %></h1>
1211
</div>
1312
<p>
1413
<%=Resources.labels.passwordRetrievalInstructionMessage %>

BlogEngine/BlogEngine.NET/BlogEngine.NET.csproj

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -638,19 +638,15 @@
638638
<Content Include="Scripts\angular-touch.min.js" />
639639
<Content Include="Scripts\angular.js" />
640640
<Content Include="Scripts\angular.min.js" />
641-
<Content Include="Scripts\bootstrap.js" />
642-
<Content Include="Scripts\bootstrap.min.js" />
643-
<Content Include="fonts\glyphicons-halflings-regular.woff" />
644-
<Content Include="fonts\glyphicons-halflings-regular.ttf" />
645-
<Content Include="fonts\glyphicons-halflings-regular.eot" />
646-
<Content Include="Content\bootstrap-theme.css.map" />
647-
<Content Include="Content\bootstrap.css.map" />
648641
<Content Include="Content\toastr.scss" />
649642
<Content Include="Content\toastr.less" />
650643
<Content Include="fonts\fontawesome-webfont.woff" />
651644
<Content Include="fonts\fontawesome-webfont.ttf" />
652645
<Content Include="fonts\fontawesome-webfont.eot" />
653646
<Content Include="fonts\FontAwesome.otf" />
647+
<Content Include="Scripts\bootstrap.js" />
648+
<Content Include="Scripts\bootstrap.min.js" />
649+
<Content Include="Scripts\contact.js" />
654650
<Content Include="Scripts\errors.json" />
655651
<Content Include="Scripts\angular-touch.min.js.map" />
656652
<Content Include="Scripts\angular-sanitize.min.js.map" />
@@ -668,7 +664,15 @@
668664
<Content Include="Custom\Themes\Standard\fonts\fontello.ttf" />
669665
<Content Include="Custom\Themes\Standard\fonts\fontello.woff" />
670666
<Content Include="Custom\Themes\Standard\fonts\Yekan.woff" />
667+
<Content Include="fonts\glyphicons-halflings-regular.woff2" />
668+
<Content Include="fonts\glyphicons-halflings-regular.woff" />
669+
<Content Include="fonts\glyphicons-halflings-regular.ttf" />
670+
<Content Include="fonts\glyphicons-halflings-regular.eot" />
671+
<Content Include="Content\bootstrap.css.map" />
672+
<Content Include="Content\bootstrap-theme.css.map" />
671673
<None Include="Properties\PublishProfiles\Local IIS.pubxml" />
674+
<None Include="Properties\PublishProfiles\zoo - FTP.pubxml" />
675+
<None Include="Properties\PublishProfiles\zoo - Web Deploy.pubxml" />
672676
<None Include="Scripts\jquery-2.1.1.intellisense.js" />
673677
<Content Include="Scripts\i18n\angular-locale_aa-dj.js" />
674678
<Content Include="Scripts\i18n\angular-locale_aa-er.js" />

0 commit comments

Comments
 (0)