Skip to content

Instantly share code, notes, and snippets.

@pacarvalho
Created July 18, 2022 02:21
Show Gist options
  • Save pacarvalho/f64175a94ed06ab2a1cb23b6e8da3c5c to your computer and use it in GitHub Desktop.
Save pacarvalho/f64175a94ed06ab2a1cb23b6e8da3c5c to your computer and use it in GitHub Desktop.
Medium - Static Website with Middleman - layout.erb
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Use the title from a page's frontmatter if it has one -->
<title><%= current_page.data.title || "Middleman" %></title>
<%= stylesheet_link_tag "site" %>
<%= javascript_include_tag "site" %>
</head>
<body>
<%= yield %>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment