app/views/layouts/homesteading_publisher/application.html.erb in homesteading_publisher-0.1.2 vs app/views/layouts/homesteading_publisher/application.html.erb in homesteading_publisher-0.1.3
- old
+ new
@@ -1,14 +1,81 @@
<!DOCTYPE html>
-<html>
+<html dir="ltr"
+ lang="en-US"
+ id="<%= post_type.downcase.pluralize %>"
+ class="<%= action_name %>"
+ prefix="og: http://ogp.me/ns#">
+
+<!--
+<%= license_text %>
+-->
+
<head>
- <title>HomesteadingPublisher</title>
- <%= stylesheet_link_tag "homesteading_publisher/application", media: "all" %>
- <%= javascript_include_tag "homesteading_publisher/application" %>
+ <meta charset="utf-8">
+ <title><%= site_title %></title>
+
+ <!-- General meta tags -->
+ <meta name="application-name" content="<%= site_title %>" />
+ <meta name="generator" content="homesteading.io" />
+ <meta name="description" content="<%= page_description @post %>" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+
+ <!-- Micropub -->
+ <link rel="me" href="<%= setting(:rel_me) %>">
+ <link rel="authorization_endpoint" href="<%= setting(:rel_authorization_endpoint) %>">
+ <link rel="token_endpoint" href="<%= setting(:rel_token_endpoint) %>">
+ <link rel="micropub" href="<%= setting(:micropub_endpoint) %>">
+
+ <!-- Backward compatibility: Facebook (Open Graph) -->
+ <meta property="og:type" content="blog" />
+ <meta property="og:url" content="<%= canonical_url %>" />
+ <meta property="og:image" content="<%= %>" />
+ <meta property="og:title" content="<%= site_title %>" />
+ <meta property="og:description" content="<%= page_description @post %>" />
+ <meta property="fb:app_id" content="" />
+
+ <!-- Backward compatibility: Atom -->
+ <%= auto_discovery_link_tag(:atom, feed_path, title: setting(:site_title)) %>
+
+ <!-- Canonical URLs -->
+ <%= rel_canonical_link_tag @post %>
+ <%= shorturl_link_tag @post %>
+
+ <!-- fav and touch icons -->
+ <link rel="shortcut icon" href="/favicon.ico" />
+ <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/apple-touch-icon-144-precomposed.png" />
+ <link rel="apple-touch-icon-precomposed" sizes="114x114" href="/apple-touch-icon-114-precomposed.png" />
+ <link rel="apple-touch-icon-precomposed" sizes="72x72" href="/apple-touch-icon-72-precomposed.png" />
+ <link rel="apple-touch-icon-precomposed" href="/apple-touch-icon-57-precomposed.png" />
+
+ <!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
+ <%= stylesheet_link_tag "application", media: "all" %>
+ <%= javascript_include_tag(write_action? ? "write" : "read") %>
<%= csrf_meta_tags %>
</head>
+
<body>
+ <header>
+ <nav role="navigation">
+ <ul>
+ <li><%= link_to "Home", setting(:hub_url), rel: "home" %></li>
+ <li><%= link_to post_type.capitalize.pluralize, "/#{post_type.downcase.pluralize}" %></li>
+ </ul>
-<%= yield %>
+ <% if logged_in? %>
+ <ul class="admin">
+ <li> <%= link_to_unless_current "Settings", settings_path %> </li>
+ <li><b><%= link_to_unless_current "NEW POST".html_safe, new_post_path %></b></li>
+ </ul>
+ <% end %>
+ </nav>
+ </header>
+ <main role="main">
+ <%= yield %>
+ </main>
+
+ <footer role="contentinfo">
+ <p><%= license_html %>.</p>
+ </footer>
</body>
</html>