aboutsummaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2020-02-06 03:58:52 -0300
committerEuAndreh <eu@euandre.org>2020-02-06 03:58:52 -0300
commitccadc0bdf0436cefe76318567d358f27a46bf3e5 (patch)
tree58d52309b1ea2b6b7c3a08feed04deb5d64b83d2 /_layouts
parentAdd code metadata annotation (diff)
parentSetup publish environment variables (diff)
downloadeuandre.org-ccadc0bdf0436cefe76318567d358f27a46bf3e5.tar.gz
euandre.org-ccadc0bdf0436cefe76318567d358f27a46bf3e5.tar.xz
Merge branch 'jekyll'
Diffstat (limited to '')
-rw-r--r--_layouts/default.html80
-rw-r--r--_layouts/index.html13
-rw-r--r--_layouts/page.html6
-rw-r--r--_layouts/pastebin.html11
-rw-r--r--_layouts/pastebins-listing.html11
-rw-r--r--_layouts/pastebins.html10
-rw-r--r--_layouts/post.html16
7 files changed, 147 insertions, 0 deletions
diff --git a/_layouts/default.html b/_layouts/default.html
new file mode 100644
index 0000000..109d408
--- /dev/null
+++ b/_layouts/default.html
@@ -0,0 +1,80 @@
+<!DOCTYPE html>
+<html lang="{{ page.lang }}">
+ <head>
+ <meta charset="UTF-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <link rel="stylesheet" href="/styles.css">
+ <link rel="alternate" type="application/atom+xml" href="{{ site.t.feed_url[page.lang] }}" title="{{ site.t.feed_title[page.lang] }}" />
+
+ <title>{{ page.title }}</title>
+ <meta property="og:site_name" content="{{ site.title }}" />
+ <meta name="author" content="{{ site.author.name }}" />
+ <meta property="og:locale" content="{{ page.lang }}" />
+ <meta property="og:title" content="{{ page.title }}" />
+
+ <link rel="canonical" href="{{ page.url | absolute_url }}" />
+ <meta property="og:url" content="{{ page.url | absolute_url }}" />
+
+ {% if page.date %}
+ <meta property="og:type" content="article" />
+ <meta property="article:published_time" content="{{ page.date | date_to_xmlschema }}" />
+ {% endif %}
+ </head>
+ <body>
+ <header>
+ <nav>
+ <div id="nav-left">
+ <a href="{{ site.t.home_url[page.lang] }}">{{ site.t.home[page.lang] }}</a>
+ </div>
+ <div id="nav-right">
+ <ul>
+ {% if page.ref != nil %}
+ {% assign lposts=site.posts | where:"ref", page.ref | sort: 'lang' %}
+ {% for lpost in lposts %}
+ <li>
+ <a href="{{ lpost.url }}" class="{{ lpost.lang }}">{{ lpost.lang }}</a>
+ </li>
+ {% endfor %}
+ {% endif %}
+
+ {% if page.ref != nil %}
+ {% assign lpages=site.pages | where:"ref", page.ref | sort: 'lang' %}
+ {% for lpage in lpages %}
+ <li>
+ <a href="{{ lpage.url }}" class="{{ lpage.lang }}">{{ lpage.lang }}</a>
+ </li>
+ {% endfor %}
+ {% endif %}
+ </ul>
+
+ <a href="{{ site.t.about_url[page.lang] }}">{{ site.t.about[page.lang] }}</a>
+ <a href="{{ site.t.feed_url[page.lang] }}">
+ <img class="simple-icon" src="/images/atom.svg" alt="{{ site.t.alt.blog_feed[page.lang] }}" />
+ </a>
+ </div>
+ </nav>
+ </header>
+
+ <main role="main">
+ <h1>{{ page.title }}</h1>
+ {{ content }}
+ </main>
+
+ <footer>
+ <ul>
+ <li>
+ <img class="simple-icon" src="/images/envelope.svg" alt="{{ site.t.alt.envelope_icon[page.lang] }}" />
+ <a href="mailto:eu@euandre.org">eu@euandre.org</a>
+ </li>
+ <li>
+ <img class="simple-icon" src="/images/lock.svg" alt="{{ site.t.alt.lock_icon[page.lang] }}" />
+ <a href="/public-key.txt">81F90EC3CD356060</a>
+ </li>
+ </ul>
+ <p>
+ {{ site.t.footer[page.lang] }}
+ </p>
+ </footer>
+ </body>
+</html>
diff --git a/_layouts/index.html b/_layouts/index.html
new file mode 100644
index 0000000..5b45898
--- /dev/null
+++ b/_layouts/index.html
@@ -0,0 +1,13 @@
+---
+layout: default
+---
+<h1>{{ site.t.recent_posts[page.lang] }}</h1>
+<ul>
+ {%- for post in site.posts -%}
+ {% if post.lang == page.lang %}
+ <li>
+ <a href="{{ post.url }}">{{ post.title | escape }}</a> - {{ post.date | date: "%b %-d, %Y" }}
+ </li>
+ {% endif %}
+ {%- endfor -%}
+</ul>
diff --git a/_layouts/page.html b/_layouts/page.html
new file mode 100644
index 0000000..57116c1
--- /dev/null
+++ b/_layouts/page.html
@@ -0,0 +1,6 @@
+---
+layout: default
+---
+<article class="post">
+ {{ content }}
+</article>
diff --git a/_layouts/pastebin.html b/_layouts/pastebin.html
new file mode 100644
index 0000000..51194d7
--- /dev/null
+++ b/_layouts/pastebin.html
@@ -0,0 +1,11 @@
+---
+layout: default
+---
+<article>
+ <section class="header">
+ Posted on {{ page.date | date: "%b %-d, %Y" }}
+ </section>
+ <section>
+ {{ content }}
+ </section>
+</article>
diff --git a/_layouts/pastebins-listing.html b/_layouts/pastebins-listing.html
new file mode 100644
index 0000000..2829411
--- /dev/null
+++ b/_layouts/pastebins-listing.html
@@ -0,0 +1,11 @@
+---
+layout: default
+---
+<h1>Pastebins listing</h1>
+<ul>
+ {%- for pastebin in site.pastebins -%}
+ <li>
+ <a href="{{ pastebin.url | relative_url }}">{{ pastebin.title | escape }}</a> - {{ pastebin.date | date: "%b %-d, %Y" }}
+ </li>
+ {%- endfor -%}
+</ul>
diff --git a/_layouts/pastebins.html b/_layouts/pastebins.html
new file mode 100644
index 0000000..6b7830c
--- /dev/null
+++ b/_layouts/pastebins.html
@@ -0,0 +1,10 @@
+---
+layout: default
+---
+<ul>
+ {%- for pastebin in site.pastebins -%}
+ <li>
+ <a href="{{ pastebin.url | relative_url }}">{{ pastebin.title | escape }}</a> - {{ pastebin.date | date: "%b %-d, %Y" }}
+ </li>
+ {%- endfor -%}
+</ul>
diff --git a/_layouts/post.html b/_layouts/post.html
new file mode 100644
index 0000000..629e02f
--- /dev/null
+++ b/_layouts/post.html
@@ -0,0 +1,16 @@
+---
+layout: default
+---
+<article>
+ <section class="header">
+ {{ site.t.posted_on[page.lang] }} {{ page.date | date: site.t.date_format[page.lang] }}
+ </section>
+ <section>
+ {{ content }}
+ </section>
+ <section>
+ <p>
+ {% include public-inbox.html %}
+ </p>
+ </section>
+</article>