Skip to content

Commit

Permalink
Merge pull request #147 from bausshf/master
Browse files Browse the repository at this point in the history
Fixed meta tags
  • Loading branch information
bausshf authored Mar 31, 2020
2 parents e877d32 + db9d6ec commit d9f7249
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions views/view.d
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ static if (isWebServer || !isWeb)
*/
void meta(string nameField = "name")(string name, string content)
{
append("<meta %s=\"%s\" content\"%s\">".format(nameField, name, content));
append("<meta %s=\"%s\" content=\"%s\">".format(nameField, name, content));
}

/**
Expand Down Expand Up @@ -601,12 +601,12 @@ static if (isWebServer || !isWeb)
*/
void openGraphGeneralMeta(string title, string description, string image, string url, string siteName, string type)
{
meta("og:title", title);
meta("og:description", description);
meta("og:image", image);
meta("og:url", url);
meta("og:site_name", siteName);
meta("og:type", type);
meta!"property"("og:title", title);
meta!"property"("og:description", description);
meta!"property"("og:image", image);
meta!"property"("og:url", url);
meta!"property"("og:site_name", siteName);
meta!"property"("og:type", type);
}

import CSRF = diamond.security.csrf;
Expand Down

0 comments on commit d9f7249

Please sign in to comment.