|
|
@ -17,18 +17,18 @@ block docContents
|
|
|
|
|
|
|
|
|
|
|
|
meta(name="viewport", content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no")
|
|
|
|
meta(name="viewport", content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no")
|
|
|
|
+metaProp("name", document.OriginalFilename)
|
|
|
|
+metaProp("name", document.OriginalFilename)
|
|
|
|
+metaProp("image", "https://pdf.yt/static/thumbs/#{document.SlugId}")
|
|
|
|
+metaProp("image", "https://pdf.yt/static/thumbs/" + document.SlugId)
|
|
|
|
|
|
|
|
|
|
|
|
+twitterProp("card", "summary")
|
|
|
|
+twitterProp("card", "summary")
|
|
|
|
+twitterProp("title", document.OriginalFilename)
|
|
|
|
+twitterProp("title", document.OriginalFilename)
|
|
|
|
+twitterProp("description", "Read and download #{document.OriginalFilename} for free!")
|
|
|
|
+twitterProp("description", "Read and download " + document.OriginalFilename + " for free!")
|
|
|
|
+twitterProp("image:src", "https://pdf.yt/static/thumbs/#{document.SlugId}")
|
|
|
|
+twitterProp("image:src", "https://pdf.yt/static/thumbs/" + document.SlugId)
|
|
|
|
|
|
|
|
|
|
|
|
+facebookProp("type", "website")
|
|
|
|
+facebookProp("type", "website")
|
|
|
|
+facebookProp("title", document.OriginalFilename)
|
|
|
|
+facebookProp("title", document.OriginalFilename)
|
|
|
|
+facebookProp("url", "https://pdf.yt/d/#{document.SlugId}")
|
|
|
|
+facebookProp("url", "https://pdf.yt/d/" + document.SlugId)
|
|
|
|
+facebookProp("site_name", "PDFy")
|
|
|
|
+facebookProp("site_name", "PDFy")
|
|
|
|
+facebookProp("image", "https://pdf.yt/static/thumbs/#{document.SlugId}")
|
|
|
|
+facebookProp("image", "https://pdf.yt/static/thumbs/" + document.SlugId)
|
|
|
|
|
|
|
|
|
|
|
|
if !document.Public
|
|
|
|
if !document.Public
|
|
|
|
// Keep Google and friends from indexing this document (hopefully), if they've somehow run across it...
|
|
|
|
// Keep Google and friends from indexing this document (hopefully), if they've somehow run across it...
|
|
|
|