| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <!doctype html>
- <html dir="<: $dir :>" lang="<: $lang :>">
- <head>
- <title><: $title :></title>
- <meta charset="utf-8" />
- <link rel="icon" type="image/vnd.microsoft.icon" href="<: $theme_dir :>/img/icon/favicon.ico" />
- <meta name="description" content="<: $meta_desc :>"/>
- : if ($default_tags) {
- <meta name="tags" content="<: $default_tags :>" />
- : }
- <!-- Open Graph / Facebook -->
- <meta property="og:type" content="<: $og_type :>" />
- <meta property="og:url" content="https://<: $domain :>/<: $route :>" />
- <meta property="og:title" content="<: $title :>" />
- : if ($primary_post.tags) {
- <meta property="og:article:tags" content="<: $primary_post.tags :>" />
- : }
- : if ($primary_post.is_image) {
- <meta property="og:image" content="https://<: $domain :>/<: $primary_post.href :>" />
- <meta property="og:image:type" content="<: $primary_post.type :>" />
- <meta property="og:image:width" content="1280" />
- <meta property="og:image:height" content=720 />
- : }
- : elsif ($primary_post.is_video) {
- <meta property="og:video" content="https://<: $domain :>/<: $primary_post.href :>" />
- <meta property="og:video:type" content="<: $primary_post.type :>" />
- <meta property="og:video:width" content="1280" />
- <meta property="og:video:height" content="720" />
- <meta property="og:video:image" content="https://<: $domain :>/<: $primary_post.preview :>" />
- : }
- : if ($primary_post.user) {
- <meta property="og:article:author" content="<: $primary_post.user :>" />
- : }
- : if ($primary_post.created) {
- <meta property="og:article:published_time" content="<: $primary_post.created :>" />
- <meta property="og:article:modified_time" content="<: $primary_post.created :>" />
- : }
- : if ($fb_app_id) {
- <meta property="fb:app_id" content="<: $fb_app_id :>" />
- : }
- <!-- Twitter -->
- <meta property="twitter:card" content="<: $twitter_type :>" />
- <meta property="twitter:url" content="https://<: $domain :>/<: $route :>" />
- : if ($primary_post.is_image) {
- <meta property="twitter:image" content="https://<: $domain :>/<: $primary_post.href :>" />
- <meta property="twitter:image:type" content="<: $primary_post.type :>" />
- <meta property="twitter:image:width" content="1280" />
- <meta property="twitter:image:height" content=720 />
- : }
- : elsif ($primary_post.is_video) {
- <meta property="twitter:player:stream" content="https://<: $domain :>/<: $primary_post.href :>" />
- <meta property="twitter:player:stream:content_type" content="<: $primary_post.type :>" />
- <meta property="twitter:player:width" content="1280" />
- <meta property="twitter:player:height" content="720" />
- <meta property="twitter:player" content="https://<: $domain :>/<: $route :>?embed=1" />
- : }
- <meta property="twitter:title" content="<: $title :>" />
- <meta property="twitter:description" content="<: $meta_desc :>" />
- <meta name="viewport" content="width=device-width">
- <link rel="stylesheet" type="text/css" href="/styles/structure.css" />
- <link rel="stylesheet" type="text/css" href="/styles/screen.css" media="screen" />
- <link rel="stylesheet" type="text/css" href="/styles/print.css" media="print" />
- : if ($embed) {
- <base target="_blank" />
- <link rel="stylesheet" type="text/css" href="/styles/embed.css" media="screen" />
- : }
- <!-- Stylesheets !-->
- : for $stylesheets -> $stylesheet {
- <link rel="stylesheet" type="text/css" href="<: $stylesheet :>" media="screen" />
- : }
- : for $scripts -> $script {
- <script type="text/javascript" src="<: $script :>"></script>
- : }
- </head>
- <body>
|