-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use erb instead of liquid for templating
- Loading branch information
1 parent
68f3eb4
commit 2298965
Showing
13 changed files
with
60 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!doctype html> | ||
<html lang="<%= site.locale %>"> | ||
<head> | ||
<%= render "head", locals: { metadata: site.metadata, title: data.title } %> | ||
</head> | ||
<body class="<%= data.layout %> <%= data.page_class %>"> | ||
<%= render "navbar", locals: { metadata: site.metadata, resource: resource } %> | ||
|
||
<main> | ||
<%= content %> | ||
</main> | ||
|
||
<%= render "footer", locals: { metadata: site.metadata } %> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<h1><%= data.title %></h1> | ||
|
||
<%= content %> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
layout: default | ||
--- | ||
|
||
<h1><%= data.title %></h1> | ||
|
||
<%= content %> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<footer> | ||
Contact me at <a href="mailto:<%= metadata.email -%>"><%= metadata.email %></a> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<% resource_title = title.strip.gsub("\n", "") %> | ||
<title> | ||
<% if resource_title != "Index" %> | ||
<%= h(resource_title) %> | <%= h(metadata.title) %> | ||
<% else %> | ||
<%= h(metadata.title) %>: <%= h(metadata.tagline) %> | ||
<% end %> | ||
</title> | ||
|
||
<meta name="description" content="<%= metadata.description %>" /> | ||
|
||
<link rel="stylesheet" href="<%= asset_path 'css' %>" /> | ||
<script src="<%= asset_path 'js' %>" defer></script> | ||
<%# Implement live_reload_dev_js if needed %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<header> | ||
<img src="<%= relative_url('/images/logo.svg') %>" alt="Logo" /> | ||
</header> | ||
|
||
<nav> | ||
<ul> | ||
<li><a href="<%= relative_url('/') %>">Home</a></li> | ||
<li><a href="<%= relative_url('/about') %>">About</a></li> | ||
<li><a href="<%= relative_url('/posts') %>">Posts</a></li> | ||
</ul> | ||
</nav> |