summaryrefslogtreecommitdiffstats
path: root/_layouts
diff options
context:
space:
mode:
authorSantiago Soler <santiago.r.soler@gmail.com>2021-03-22 21:14:44 -0300
committerSantiago Soler <santiago.r.soler@gmail.com>2021-03-22 21:14:44 -0300
commitef0577ab9df4285fb016398e7545fe68c2df5b3a (patch)
treec2a4696330dcfadc2102e5863b0bec20160f514c /_layouts
parent1e3abc4d7b60f36d75a79589f949a485d8e2ccc7 (diff)
downloadwebsite-ef0577ab9df4285fb016398e7545fe68c2df5b3a.tar.gz
Refactor website to use Jekyll
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/base.html40
-rw-r--r--_layouts/default.html5
-rw-r--r--_layouts/home.html29
-rw-r--r--_layouts/post.html9
4 files changed, 83 insertions, 0 deletions
diff --git a/_layouts/base.html b/_layouts/base.html
new file mode 100644
index 0000000..dec11b7
--- /dev/null
+++ b/_layouts/base.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html lang="es">
+ <head>
+ <meta charset="UTF-8" />
+ <title>{{ site.title }}</title>
+ <link rel="shortcut icon" href={{ "/images/favicon.png" | absolute_url }} />
+ <link rel="stylesheet" href={{ "/assets/fira_code_v5.2/fira_code.css" |
+ absolute_url }} /> <link rel="stylesheet" href={{ "/css/style.css" |
+ absolute_url }} />
+ </head>
+
+ <body>
+ <nav>
+ <ul>
+ <li>
+ <div class="nav-item">
+ <a href="{{ site.baseurl }}/">
+ {% if page.layout == "home" %}
+ ~
+ {% else %}
+ ..
+ {% endif %}
+ </a>
+ </div>
+ </li>
+ <li>
+ <div class="nav-item">
+ <a href={{ "/feed.xml" | absolute_url }}>
+ RSS
+ </a>
+ </div>
+ </li>
+ </ul>
+ </nav>
+
+ {{ content }}
+ </body>
+
+ {% include footer.html %}
+</html>
diff --git a/_layouts/default.html b/_layouts/default.html
new file mode 100644
index 0000000..cfd9590
--- /dev/null
+++ b/_layouts/default.html
@@ -0,0 +1,5 @@
+---
+layout: base
+---
+
+<main>{{ content }}</main>
diff --git a/_layouts/home.html b/_layouts/home.html
new file mode 100644
index 0000000..654be00
--- /dev/null
+++ b/_layouts/home.html
@@ -0,0 +1,29 @@
+---
+layout: base
+---
+
+<header>
+ <h1>{{ site.title }}</h1>
+
+ <h2>
+ Sitio de {{ site.author }} en
+ <a href="https://texto-plano.xyz">texto-plano.xyz</a>
+ </h2>
+</header>
+
+<main>
+
+ <h1>Blog</h1>
+
+ <ul class="posts-list">
+ {% for post in site.posts %}
+ <li>
+ <h2><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h2>
+ <p><em>{{ post.date | date: "%Y-%m-%d"}}</em></p>
+ {% if site.show-excerpt %}<p>{{ post.excerpt }}</p>{% endif %}
+ </li>
+ {% endfor %}
+ </ul>
+
+ {{ content }}
+</main>
diff --git a/_layouts/post.html b/_layouts/post.html
new file mode 100644
index 0000000..ac73226
--- /dev/null
+++ b/_layouts/post.html
@@ -0,0 +1,9 @@
+---
+layout: default
+---
+
+<h1>{{ page.title }}</h1>
+
+<p class="date"><em>{{ page.date | date: "%Y-%m-%d" }}</em></p>
+
+{{ content }}
Un proyecto texto-plano.xyz