Skip to content

Commit

Permalink
Moved html head to _head partial
Browse files Browse the repository at this point in the history
In case of multiple layouts it’s easier to copy and re-use
  • Loading branch information
renatodeleao committed Oct 6, 2016
1 parent d518695 commit e9ce2e0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 23 deletions.
25 changes: 2 additions & 23 deletions app/views/layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,28 +1,7 @@
<!DOCTYPE html>
<html class="">
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>Title</title>

<!-- Favicon -->
<link rel="icon" href="./assets/images/favicon.png">

{{> _crossplatform_favicons}}

<!--SEO DEFAULTS-->
<meta name="application-name" content="Slackmarq"/>
<meta name="author" content="Whitesmith"/>
<meta name="keywords" content="slack, links, big-data, data, facebook,"/>
<meta name="description" content="Most popular slack links, curated by and for your slack team, with a little help from Marq."/>
<meta name="robots" content="INDEX, FOLLOW">

<!--dynamic meta tags about the post for sharing -->
{{> _sharing_meta_tags }}

<link rel="stylesheet" href="./stylesheets/app.css" />
{{> _head}}
</head>
<body>

Expand Down
22 changes: 22 additions & 0 deletions app/views/partials/application/_head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<title>Title</title>

<!-- Favicon -->
<link rel="icon" href="./assets/images/favicon.png">

{{> _crossplatform_favicons}}

<!--SEO DEFAULTS-->
<meta name="application-name" content="Slackmarq"/>
<meta name="author" content="Whitesmith"/>
<meta name="keywords" content="slack, links, big-data, data, facebook,"/>
<meta name="description" content="Most popular slack links, curated by and for your slack team, with a little help from Marq."/>
<meta name="robots" content="INDEX, FOLLOW">

<!--dynamic meta tags about the post for sharing -->
{{> _sharing_meta_tags }}

<link rel="stylesheet" href="./stylesheets/app.css" />

0 comments on commit e9ce2e0

Please sign in to comment.