PageRenderTime 51ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 1ms

/templates/default.erb

https://github.com/waferbaby/usesthis
Ruby HTML | 70 lines | 69 code | 1 blank | 0 comment | 8 complexity | 19deccc2413b1c1249a98c019802a013 MD5 | raw file
  1. <!DOCTYPE html>
  2. <html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Uses This / <%= page.title || template.title %><% if pagination && pagination.current_page > 1 %> (Page <%= pagination.current_page %>)<% end %></title>
  5. <link href="/stylesheets/screen.css" media="screen" rel="stylesheet" type="text/css">
  6. <link href="/feed.atom" rel="alternate" title="Main Atom feed" type="application/atom+xml">
  7. <link href="/feed.json" rel="alternate" title="Main JSON feed" type="application/json">
  8. <% if page.category %>
  9. <link href="/categories/<%= page.category.slug %>/feed.atom" rel="alternate" title="<%= page.category.name %> Atom feed" type="application/atom+xml">
  10. <link href="/categories/<%= page.category.slug %>/feed.json" rel="alternate" title="<%= page.category.name %> JSON feed" type="application/json">
  11. <% end %>
  12. <% if pagination %>
  13. <% if pagination.urls.previous_page %><link rel="prev" href="<%= pagination.urls.previous_page %>"><% end %>
  14. <% if pagination.urls.next_page %><link rel="next" href="<%= pagination.urls.next_page %>"><% end %>
  15. <% end %>
  16. <meta charset="utf-8">
  17. <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
  18. <meta name="description" content="<%= site.data.description %>">
  19. <meta name="author" content="Daniel Bogan">
  20. <meta name="keywords" content="interview, setup<% if page.categories %>, <%= page.categories.join(', ') %><% end %>">
  21. <% if page.date %>
  22. <meta property="og:title" content="Uses This: <%= page.title %>">
  23. <meta property="og:description" content="<%= page.summary %>">
  24. <meta property="og:type" content="article">
  25. <meta property="article:published_time" content="<%= page.date.iso8601 %>">
  26. <% page.categories.each do |category| %>
  27. <meta property="article:tag" content="<%= category %>">
  28. <% end %>
  29. <meta property="og:image:url" content="https://usesthis.com/images/interviews/<%= page.slug %>/portrait.jpg">
  30. <meta property="og:image:type" content="image/jpeg">
  31. <meta property="og:image:width" content="500">
  32. <meta property="og:image:height" content="335">
  33. <meta name="twitter:card" content="summary_large_image">
  34. <meta name="twitter:title" content="Uses This: <%= page.title %>">
  35. <meta name="twitter:description" content="<%= page.summary %>">
  36. <meta name="twitter:image" content="https://usesthis.com/images/interviews/<%= page.slug %>/portrait.jpg">
  37. <meta name="twitter:label1" content="Published">
  38. <meta name="twitter:data1" content="<%= page.date.strftime('%B %-d, %Y') %>">
  39. <% end %>
  40. </head>
  41. <body>
  42. <header id="masthead">
  43. <h1><a href="/" title="The latest interviews.">Uses <span>This</span></a></h1>
  44. <p id="description"><%= @site.posts.count %> interviews since 2009</p>
  45. </header>
  46. <nav id="control">
  47. <ul>
  48. <li><a href="/" title="The latest interviews.">Home</a></li>
  49. <li><a href="/archives/" title="All of the interviews, organised by date.">Archives</a></li>
  50. <li><a href="/categories/" title="All of the interview categories.">Categories</a></li>
  51. <li><a href="/about/" title="General site information and FAQ.">About</a></li>
  52. </ul>
  53. </nav>
  54. <main>
  55. <%= yield %>
  56. </main>
  57. <footer>
  58. <form id="search" method="get" action="https://duckduckgo.com/">
  59. <label><strong>Search:</strong>
  60. <input type="search" name="q" placeholder="MacBook Pro">
  61. </label>
  62. <input type="hidden" name="sites" value="usesthis.com">
  63. <input type="submit" value="Go">
  64. </form>
  65. <p>Unless otherwise noted, everything is available via the <a href="http://creativecommons.org/licenses/by-sa/4.0/" title="The BY-SA Creative Commons licence.">Attribution-Share Alike</a> licence. Subscribe to the site via the <a href="/feed.atom" title="The Atom feed.">feed</a>, or build something cool with the <a href="/api/" title="The API documentation.">API</a>!</p>
  66. <p>Last updated <a href="https://buildkite.com/waferbaby/publish-uses-this" title="The Buildkite pipleline that builds the site."><%= Time.now.strftime('%B %-d, %Y') %></a>.</p>
  67. </footer>
  68. </body>
  69. </html>