Skip to content

Commit

Permalink
render og:description only if the page description is available
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Müller committed Oct 16, 2016
1 parent 9b4d0e5 commit 261382c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.0.1")]
[assembly: AssemblyFileVersion("1.0.1")]
5 changes: 4 additions & 1 deletion Skins/MetaTags.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ private void AddFacebookMetaTags()
return;

AddSingleFacebookMetaTag("og:title", PortalSettings.ActiveTab.Title);
AddSingleFacebookMetaTag("og:description", PortalSettings.ActiveTab.Description);

if (!string.IsNullOrWhiteSpace(PortalSettings.ActiveTab.Description))
AddSingleFacebookMetaTag("og:description", PortalSettings.ActiveTab.Description);

AddSingleFacebookMetaTag("og:url", PortalSettings.ActiveTab.FullUrl);

if (!string.IsNullOrWhiteSpace(PortalSettings.ActiveTab.IconFileLargeRaw))
Expand Down

0 comments on commit 261382c

Please sign in to comment.