m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
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
parenta6b11a3bf098c673b7f1142be60f04a00885f5a7 (diff)
Adjust whitespace
-rw-r--r--src/index.html.erb19
-rw-r--r--src/post-template.html.erb2
-rw-r--r--src/template.html.erb59
3 files changed, 40 insertions, 40 deletions
diff --git a/src/index.html.erb b/src/index.html.erb
index 414b201..75fca0f 100644
--- a/src/index.html.erb
+++ b/src/index.html.erb
@@ -1,8 +1,8 @@
<p>
- I am a software engineer, writing smart contracts and other fun things
- for <a href='https://celo.org'>Celo</a>. I'm currently pursuing a master's
- degree in CS at the University of Warsaw, where I previously got my
- bachelor's.
+ I am a software engineer, writing smart contracts and other fun things
+ for <a href='https://celo.org'>Celo</a>. I'm currently pursuing a master's
+ degree in CS at the University of Warsaw, where I previously got my
+ bachelor's.
</p>
<h2>Recent posts <a style='font-size: 18px;' href='<%= path_to 'rss' %>'>(RSS)</a>:</h2>
@@ -16,11 +16,10 @@
</ul>
<hr />
+
<ul class='links'>
- <li><a href='mailto:<%= Email %>'>Email</a></li>
- <li><a href='<%= path_to 'key' %>'>PGP</a></li>
- <li>
- <a href='https://git.m-chrzan.xyz'>Code</a>
- </li>
- <li><a href='<%= path_to 'crypto' %>'>Crypto</a></li>
+ <li><a href='mailto:<%= Email %>'>Email</a></li>
+ <li><a href='<%= path_to 'key' %>'>PGP</a></li>
+ <li><a href='https://git.m-chrzan.xyz'>Code</a></li>
+ <li><a href='<%= path_to 'crypto' %>'>Crypto</a></li>
</ul>
diff --git a/src/post-template.html.erb b/src/post-template.html.erb
index 20b95be..70a0cff 100644
--- a/src/post-template.html.erb
+++ b/src/post-template.html.erb
@@ -1,5 +1,7 @@
<h2 style='display: inline'><%= post['title'] %></h2> (<%= format_date post['date'] %>)
+
<%= post['content'] %>
+
<p class='post-footer'>
If you have any questions or comments about this post or site in general, feel
free to <a href="mailto:<%= Email %>">email me</a>.
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>