aboutsummaryrefslogtreecommitdiff
path: root/src/templates/layout.html.erb
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-09-17 07:16:43 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-09-17 07:16:43 +0200
commit40013704cf16f53468940a7d0160b40e8241a87c (patch)
treef8ddc584fd90a450733332a3b9e6bbb898b4ab4e /src/templates/layout.html.erb
parent71a1444ec305d537cbfadb1a599df7dcacde13a1 (diff)
downloadjo.mssola.com-40013704cf16f53468940a7d0160b40e8241a87c.tar.gz
jo.mssola.com-40013704cf16f53468940a7d0160b40e8241a87c.zip
Remove jekyll
This is a complete rewrite of my blog to a vastly simpler form. That is, we only need HTML and a couple of build scripts to have something equivalent, without all the dependencies that jekyll brings. I have also taken the chance to remove a lot of stuff that was actually not needed. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'src/templates/layout.html.erb')
-rw-r--r--src/templates/layout.html.erb67
1 files changed, 67 insertions, 0 deletions
diff --git a/src/templates/layout.html.erb b/src/templates/layout.html.erb
new file mode 100644
index 0000000..8070fa9
--- /dev/null
+++ b/src/templates/layout.html.erb
@@ -0,0 +1,67 @@
+<!doctype html>
+<html lang="ca">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="x-ua-compatible" content="ie=edge">
+ <title><%= META.fetch(:title, "Miquel Sabaté Solà - Pàgina d'inici") %></title>
+ <meta name="description" content="<%= META.fetch(:description, "La pàgina d'inici del meu espai web") %>">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+
+ <meta property="og:locale" content="<%= META.fetch(:locale, 'ca_ES') %>" />
+ <meta property="og:locale:alternate" content="<%= META.fetch(:localte_alternate, 'en_US') %>" />
+ <meta property="og:url" content="http://jo.mssola.com/" />
+
+ <meta property="og:title" content="<%= META.fetch(:title, "Miquel Sabaté Solà - Pàgina d'inici") %>" />
+ <meta property="og:description" content="<%= META.fetch(:description, "La pàgina d'inici del meu espai web") %>" />
+ <meta property="og:type" content="website" />
+
+ <meta name="twitter:card" content="summary_large_image" />
+ <meta name="twitter:site" content="@miquelssola" />
+ <meta name="twitter:creator" content="@miquelssola" />
+ <meta name="twitter:description" content="<%= META.fetch(:description, "La pàgina d'inici del meu espai web") %>" />
+ <meta name="twitter:title" content="<%= META.fetch(:title, "Miquel Sabaté Solà - Pàgina d'inici") %>" />
+ <meta property="og:image" content="http://jo.mssola.com/images/default.png" /><meta property="og:image:width" content="630" /><meta property="og:image:height" content="315" /><meta name="twitter:image" content="http://jo.mssola.com/images/default.png" />
+
+ <link rel="stylesheet" type="text/css" href="<%= url_for('stylesheets/vendor/simple.min.css') %>">
+ <link rel="stylesheet" type="text/css" href="<%= url_for('stylesheets/site.css') %>">
+ </head>
+ <body>
+ <header>
+ <nav>
+ <% if current_lang == 'ca' %>
+ <div id="site-title">
+ <a href="<%= url_for('index.html') %>" title="<%= META.fetch(:home, 'Inici') %>">Miquel Sabaté Solà</a>
+ </div>
+ <div id="change-lang">
+ <% if english_available? %>
+ <a href="<%= url_set('en') %>" title="Change site's language to english">English</a>
+ <% end %>
+ </div>
+ <% else %>
+ <div id="site-title">
+ <a href="<%= url_for('en/index.html') %>" title="<%= META.fetch(:home, 'Inici') %>">Miquel Sabaté Solà</a>
+ </div>
+ <div id="change-lang">
+ <a href="<%= url_set('ca') %>" title="Change site's language to catalan">Català</a>
+ </div>
+ <% end %>
+ </nav>
+ </header>
+
+ <% if main_class.nil? %>
+ <main>
+ <% else %>
+ <main class="<%= main_class %>">
+ <% end %>
+ <%= inner_html %>
+ </main>
+
+ <footer>
+ <% if current_lang == 'ca' %>
+ Aquesta pàgina és Programari Lliure i està sota la llicència <a href="<%= url_for('license.html') %>">AGPLv3</a> (<a href="https://github.com/mssola/jo.mssola.com">codi font</a>).
+ <% else %>
+ This site is free software and it's under the <a href="<%= url_for('en/license.html') %>">AGPLv3</a> license (<a href="https://github.com/mssola/jo.mssola.com">source code</a>).
+ <% end %>
+ </footer>
+ </body>
+</html>