aboutsummaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2018-02-18 22:51:57 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2018-02-18 22:51:57 +0100
commit3c62a936378e490e99c2ac8955797464216b1691 (patch)
tree23145a905ae399414399ebe5862d804226c8e849 /_includes
downloadjo.mssola.com-3c62a936378e490e99c2ac8955797464216b1691.tar.gz
jo.mssola.com-3c62a936378e490e99c2ac8955797464216b1691.zip
Initial commit
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '_includes')
-rw-r--r--_includes/date.html41
-rw-r--r--_includes/footer.html13
-rw-r--r--_includes/header.html16
3 files changed, 70 insertions, 0 deletions
diff --git a/_includes/date.html b/_includes/date.html
new file mode 100644
index 0000000..f12692a
--- /dev/null
+++ b/_includes/date.html
@@ -0,0 +1,41 @@
+
+{% assign day = include.date | date: "%-d" %}
+{% capture day %}{{ day }}{% endcapture %}
+
+{% case day %}
+{% when "1" or "11" %}
+ {% capture pre %} l'{% endcapture %}
+{% else %}
+ {% capture pre %} el {% endcapture %}
+{% endcase %}
+
+{% assign month = include.date | date: "%-m" %}
+{% case month %}
+{% when "1" %}
+ {% capture month %}Gener{% endcapture %}
+{% when "2" %}
+ {% capture month %}Febrer{% endcapture %}
+{% when "3" %}
+ {% capture month %}Març{% endcapture %}
+{% when "4" %}
+ {% capture month %}Abril{% endcapture %}
+{% when "5" %}
+ {% capture month %}Maig{% endcapture %}
+{% when "6" %}
+ {% capture month %}Juny{% endcapture %}
+{% when "7" %}
+ {% capture month %}Juliol{% endcapture %}
+{% when "8" %}
+ {% capture month %}Agost{% endcapture %}
+{% when "9" %}
+ {% capture month %}Setembre{% endcapture %}
+{% when "10" %}
+ {% capture month %}Octubre{% endcapture %}
+{% when "11" %}
+ {% capture month %}Novembre{% endcapture %}
+{% when "12" %}
+ {% capture month %}Desembre{% endcapture %}
+{% endcase %}
+
+{% assign year = include.date | date: "%Y" %}
+{% capture year %}{{ year }}{% endcapture %}
diff --git a/_includes/footer.html b/_includes/footer.html
new file mode 100644
index 0000000..ad3182e
--- /dev/null
+++ b/_includes/footer.html
@@ -0,0 +1,13 @@
+<footer class="site-footer h-card">
+ <data class="u-url" href="{{ "/" | relative_url }}"></data>
+ <div class="wrapper">
+ <p>
+ {% t footer.created_with %} <i class='fa fa-heart secondary-colour'></i> {% t footer.by %} Miquel Sabaté Solà
+ (<a href="https://twitter.com/{{site.twitter_username }}">@{{ site.twitter_username }}</a>)
+ <br />
+ {% t footer.this_website %}
+ <a title="GNU Affero General Public License" href="{% tl license %}">AGPLv3</a>
+ (<a href="http://git.mssola.com/jo.git/">{% t footer.source_code %}</a>).
+ </p>
+ </div>
+</footer>
diff --git a/_includes/header.html b/_includes/header.html
new file mode 100644
index 0000000..980d8cc
--- /dev/null
+++ b/_includes/header.html
@@ -0,0 +1,16 @@
+<header class="site-header" role="banner">
+ <div class="wrapper">
+ <div class="left-header header-component">
+ <a title="Home" class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
+ </div>
+ <nav class="site-nav">
+ {% if site.lang == "ca" %}
+ <a href="/en{{ page.url }}" >{% t global.english %}</a>
+ {% elsif site.lang == "en" %}
+ <a href="{{ page.url }}" >{% t global.catalan %}</a>
+ {% endif %}
+
+ <a title="{% t titles.blog %}" href="{% tl blog %}">{% t titles.blog %}</a>
+ </nav>
+ </div>
+</header>