head.ejs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <%
  7. var title = page.title;
  8. if (is_archive()) {
  9. title = 'Archives';
  10. if (is_month())
  11. title += ': ' + page.year + '/' + page.month;
  12. else if (is_year())
  13. title += ': ' + page.year;
  14. }
  15. else if (is_category())
  16. title = 'Category: ' + page.category;
  17. else if (is_tag())
  18. title = 'Tag: ' + page.tag;
  19. %>
  20. <title><% if (title) { %><%= title %> | <% } %><%= config.title %></title>
  21. <meta name="description" content="<%= config.description %>" />
  22. <meta name="keywords" content="<%=(config.keywords||[]).join(',') %>" />
  23. <meta name="HandheldFriendly" content="True" />
  24. <meta name="apple-mobile-web-app-capable" content="yes">
  25. <%- favicon_tag(config.favicon) %>
  26. <%- feed_tag(config.feed.path, {title: config.title}) %>
  27. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  28. <%- open_graph({
  29. twitter_id: theme.twitter,
  30. google_plus: theme.google_plus,
  31. fb_admins: theme.fb_admins,
  32. fb_app_id: theme.fb_app_id}) %>
  33. <link href="https://fonts.googleapis.com/css?family=Inconsolata|Titillium+Web" rel="stylesheet">
  34. <link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
  35. <link href='//cdn.bootcss.com/node-waves/0.7.5/waves.min.css' rel='stylesheet'>
  36. <%- css('style.css') %>
  37. <script>
  38. function setLoadingBarProgress(num) {
  39. document.getElementById('loading-bar').style.width=num+"%";
  40. }
  41. </script>
  42. </head>