m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/template.html.erb
diff options
context:
space:
mode:
authorMarcin Chrzanowski <m@m-chrzan.xyz>2021-03-27 22:22:03 +0100
committerMarcin Chrzanowski <m@m-chrzan.xyz>2021-03-27 22:24:56 +0100
commit9a52c981e225a28cfce35ef51677ffd4ecca0ca0 (patch)
treed693bca6c7255a335d45e2842fc00ee03d0d9aa5 /src/template.html.erb
parenta6b11a3bf098c673b7f1142be60f04a00885f5a7 (diff)
Adjust whitespace
Diffstat (limited to 'src/template.html.erb')
-rw-r--r--src/template.html.erb59
1 files changed, 29 insertions, 30 deletions
diff --git a/src/template.html.erb b/src/template.html.erb
index 8ed34f3..0568cce 100644
--- a/src/template.html.erb
+++ b/src/template.html.erb
@@ -1,42 +1,41 @@
<!DOCTYPE html>
<html lang=en>
<head>
- <title><%= head_title %></title>
- <link rel='stylesheet' type='text/css' href='<%= path_to 'style' %>'>
- <meta charset='utf-8'>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title><%= head_title %></title>
+ <link rel='stylesheet' type='text/css' href='<%= path_to 'style' %>'>
+ <meta charset='utf-8'>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
- <h1><%= h1_title %></h1>
+<h1><%= h1_title %></h1>
- <hr />
+<hr />
- <ul class='links'>
- <li><a href='<%= path_to 'index' %>'>Home</a></li>
- <li><a id='blog' href='<%= path_to 'blog' %>'>Blog</a></li>
- <li><a href='<%= path_to 'projects' %>'>Projects</a></li>
- </ul>
+<ul class='links'>
+ <li><a href='<%= path_to 'index' %>'>Home</a></li>
+ <li><a id='blog' href='<%= path_to 'blog' %>'>Blog</a></li>
+ <li><a href='<%= path_to 'projects' %>'>Projects</a></li>
+</ul>
- <hr />
+<hr />
- <%= content %>
+<%= content -%>
- <script>
- var synonyms = [
- 'Writings',
- 'Blog',
- 'Articles',
- 'Posts',
- 'Notes',
- 'Memos',
- 'Thoughths',
- 'Words'
- ]
- var blog = document.getElementById('blog')
- blog.addEventListener('mouseenter', function (event) {
- blog.innerHTML =
- synonyms[Math.floor(Math.random() * synonyms.length)]
- })
- </script>
+<script>
+ var synonyms = [
+ 'Writings',
+ 'Blog',
+ 'Articles',
+ 'Posts',
+ 'Notes',
+ 'Memos',
+ 'Thoughths',
+ 'Words'
+ ]
+ var blog = document.getElementById('blog')
+ blog.addEventListener('mouseenter', function (event) {
+ blog.innerHTML = synonyms[Math.floor(Math.random() * synonyms.length)]
+ })
+</script>
</body>
</html>