aboutsummaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
Diffstat (limited to '_includes')
-rw-r--r--_includes/assets.html5
-rw-r--r--_includes/date.html41
-rw-r--r--_includes/favicon.html13
-rw-r--r--_includes/feed.html2
-rw-r--r--_includes/footer.html13
-rw-r--r--_includes/grid.html80
-rw-r--r--_includes/header.html45
-rw-r--r--_includes/listtags.html21
-rw-r--r--_includes/meta.html5
-rw-r--r--_includes/postmeta.html22
-rw-r--r--_includes/social.html22
-rw-r--r--_includes/tags.html18
-rw-r--r--_includes/title.html23
13 files changed, 0 insertions, 310 deletions
diff --git a/_includes/assets.html b/_includes/assets.html
deleted file mode 100644
index e0db38b..0000000
--- a/_includes/assets.html
+++ /dev/null
@@ -1,5 +0,0 @@
-{% comment %}<!-- We have the same CSS file for all languages -->{% endcomment %}
-<link href="{{ "/stylesheets/main.css" | prepend: site.baseurl_root }}" rel="stylesheet" type="text/css" />
-
-{% comment %}<!-- We have the same JS file for all languages -->{% endcomment %}
-<script src="{{ "/javascripts/dist/main.min.js" | prepend: site.baseurl_root }}"></script>
diff --git a/_includes/date.html b/_includes/date.html
deleted file mode 100644
index 47aa3cb..0000000
--- a/_includes/date.html
+++ /dev/null
@@ -1,41 +0,0 @@
-
-{% 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/favicon.html b/_includes/favicon.html
deleted file mode 100644
index a0284b9..0000000
--- a/_includes/favicon.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<link rel="apple-touch-icon" sizes="57x57" href="/images/favicon/apple-icon-57x57.png">
-<link rel="apple-touch-icon" sizes="60x60" href="/images/favicon/apple-icon-60x60.png">
-<link rel="apple-touch-icon" sizes="72x72" href="/images/favicon/apple-icon-72x72.png">
-<link rel="apple-touch-icon" sizes="76x76" href="/images/favicon/apple-icon-76x76.png">
-<link rel="apple-touch-icon" sizes="114x114" href="/images/favicon/apple-icon-114x114.png">
-<link rel="apple-touch-icon" sizes="120x120" href="/images/favicon/apple-icon-120x120.png">
-<link rel="apple-touch-icon" sizes="144x144" href="/images/favicon/apple-icon-144x144.png">
-<link rel="apple-touch-icon" sizes="152x152" href="/images/favicon/apple-icon-152x152.png">
-<link rel="apple-touch-icon" sizes="180x180" href="/images/favicon/apple-icon-180x180.png">
-<link rel="manifest" href="/images/favicon/manifest.json">
-<meta name="msapplication-TileColor" content="#ffffff">
-<meta name="msapplication-TileImage" content="/images/favicon/ms-icon-144x144.png">
-<meta name="theme-color" content="#ffffff">
diff --git a/_includes/feed.html b/_includes/feed.html
deleted file mode 100644
index a8fdaf2..0000000
--- a/_includes/feed.html
+++ /dev/null
@@ -1,2 +0,0 @@
-<link href="/feed.xml" type="application/rss+xml" rel="alternate" title="Entrades al blog en català" />
-<link href="/feed.en.xml" type="application/rss+xml" rel="alternate" title="Blog posts in english" />
diff --git a/_includes/footer.html b/_includes/footer.html
deleted file mode 100644
index 9423e87..0000000
--- a/_includes/footer.html
+++ /dev/null
@@ -1,13 +0,0 @@
-<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="https://github.com/mssola/jo.mssola.com">{% t footer.source_code %}</a>).
- </p>
- </div>
-</footer>
diff --git a/_includes/grid.html b/_includes/grid.html
deleted file mode 100644
index dcaa799..0000000
--- a/_includes/grid.html
+++ /dev/null
@@ -1,80 +0,0 @@
-<div class="container">
- <div id="blog-intro" class="row">
- {% if include.hasfeed %}
- <h2>
- {% t titles.blog %}
-
- <small>
- {% if site.lang == "ca" %}
- <a href="/feed.xml">RSS</a>
- {% else %}
- <a href="/feed.en.xml">RSS Feed</a>
- {% endif %}
- </small>
- </h2>
- {% endif %}
-
- <p>
- {% if include.index %}
- {% t index.intro %}
- <a href="{% tl writings %}" title="{% t titles.writings %}">{% t titles.writingsu %}</a>
- {% t index.after %}
- <a href="{% tl blog %}" title="{% t titles.blog %}">{% t titles.blogu %}</a>.
- {% t index.final %}
- {% elsif include.writings %}
- {% t writings.intro %}
- {% elsif include.misc %}
- {% t misc.intro %}
- {% else %}
- {% t blog.intro %}
- {% endif %}
- </p>
-
- <p id="tag-search-message">
- {% t tags.filtering_by %}:
- <code id="tag-searched"></code>.
- {% t tags.click %} <a href="{{ page.url | prepend: site.baseurl }}">{% t tags.here %}</a> {% t tags.to_cancel %}.
- </p>
- </div>
-
- <center id="oh-its-empty">
- {% t blog.empty_search %}
- </center>
-
- <div id="posts-list" class="row">
- {% if page.url == "/" %}
- {% assign posts = site.posts | where:"lang",site.lang| where:"blogpost",true %}
- {% elsif page.url == "/blog/" %}
- {% assign posts = site.posts | where:"lang",site.lang | where:"blogpost",true %}
- {% elsif page.url == "/misc/" %}
- {% assign posts = site.posts | where:"lang",site.lang | where:"misc",true %}
- {% else %}
- {% assign posts = site.posts | where:"lang",site.lang | where:"blogpost",false | where:"misc",false %}
- {% endif %}
-
- {% capture posts_count %}{{ posts | size }}{% endcapture %}
- {% if posts_count == "0" %}
- <center>{% t blog.empty %}</center>
- {% endif %}
-
- {% for post in posts %}
- {% if site.lang == post.lang %}
- <div class="post-preview col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
- <a href="{{ post.url | prepend: site.baseurl }}">
- <h2 class="post-title">
- {{ post.title }}
- </h2>
- </a>
- {% if post.subtitle %}<h3 class="post-subtitle-list"> {{ post.subtitle }}</h3>{% endif %}
-
- {% include postmeta.html date=post.date tags=post.tags %}
-
- <div class="post-entry">
- {{ post.content | truncatewords: 50 | strip_html }}
- <a href="{{ post.url | prepend: site.baseurl }}" class="post-read-more">[{% t blog.read %}&nbsp;{% t blog.more %}]</a>
- </div>
- </div>
- {% endif %}
- {% endfor %}
- </div>
-</div>
diff --git a/_includes/header.html b/_includes/header.html
deleted file mode 100644
index 61e5491..0000000
--- a/_includes/header.html
+++ /dev/null
@@ -1,45 +0,0 @@
-{% if site.tags != "" %}
- {% include tags.html %}
-{% endif %}
-
-<header class="site-header" role="banner">
- <div class="wrapper">
- <div class="left-header header-component">
- {% if site.lang == "ca" %}
- <a title="Home" class="site-title" rel="author" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
- {% elsif site.lang == "en" %}
- <a title="Home" class="site-title" rel="author" href="{{ "/en" }}">{{ site.title | escape }}</a>
- {% endif %}
- </div>
- <nav class="site-nav">
- <input type="checkbox" id="nav-trigger" class="nav-trigger" />
- <label for="nav-trigger">
- <span class="menu-icon">
- <svg viewBox="0 0 18 15" width="18px" height="15px">
- <path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
- </svg>
- </span>
- </label>
-
- <div class="trigger">
- {% if site.lang == "ca" %}
- {% if page.layout == "post" and page.english_available == false %}
- <span class="no-lang" title="{% t blog.no_english_post %}">{% t global.english %}</span>
- {% else %}
- <a href="/en{{ page.url }}" >{% t global.english %}</a>
- {% endif %}
- {% elsif site.lang == "en" %}
- {% if page.layout == "post" and page.catalan_available == false %}
- <span class="no-lang" title="{% t blog.no_catalan_post %}">{% t global.catalan %}</span>
- {% else %}
- <a href="{{ page.url }}" >{% t global.catalan %}</a>
- {% endif %}
- {% endif %}
-
- <!-- <a title="{% t titles.writings %}" href="{% tl writings %}">{% t titles.writings %}</a> -->
- <!-- <a title="{% t titles.blog %}" href="{% tl blog %}">{% t titles.blog %}</a> -->
- <!-- <a title="{% t titles.about %}" href="{% tl about %}">{% t titles.about %}</a> -->
- </div>
- </nav>
- </div>
-</header>
diff --git a/_includes/listtags.html b/_includes/listtags.html
deleted file mode 100644
index 068eb55..0000000
--- a/_includes/listtags.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<div id="taglist">
-{% for tag in include.tags %}
- {% capture tag_name %}{{ tag }}{% endcapture %}
-
- {% if include.urltobeused == "" %}
- {% assign url = page.url | append: "/blog" %}
- {% else %}
- {% assign url = "/blog" %}
- {% endif %}
-
- {% if site.lang == "ca" %}
- {% capture tag_url %}{{ url }}?tag={{ tag_name }}{% endcapture %}
- {% else %}
- {% capture tag_url %}en/{{ url }}?tag={{ tag_name }}{% endcapture %}
- {% endif %}
-
- <a href="{{ tag_url }}">
- <code><nobr class="tag">{{ tag_name }}</nobr></code>
- </a>
-{% endfor %}
-</div>
diff --git a/_includes/meta.html b/_includes/meta.html
deleted file mode 100644
index a7a0d2c..0000000
--- a/_includes/meta.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-<meta http-equiv="X-UA-Compatible" content="IE=edge" />
-
-{% capture description %}{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}{% endcapture %}
-<meta name="description" content="{{ description }}" />
diff --git a/_includes/postmeta.html b/_includes/postmeta.html
deleted file mode 100644
index d9cc684..0000000
--- a/_includes/postmeta.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<div class="post-meta">
- <div class="autor">
- {% t blog.posted_on %}
-
- {% if site.lang == "ca" %}
- {% include date.html date=include.date %}
- {{ pre }}{{ day }} de {{ month }} del {{ year }}
- {% else %}
- {{ include.date | date: "%B %-d, %Y" }}
- {% endif %}
-
- {% t footer.by %} {{ site.author }}.
-
- {% capture tags_count %}{{ include.tags | size }}{% endcapture %}
- {% if tags_count != "0" %}
- <span>{% t blog.tags %}: </span>
- {% endif %}
- </div>
- <div class="separator"></div>
-
- {% include listtags.html tags=include.tags urltobeused=include.urltobeused %}
-</div>
diff --git a/_includes/social.html b/_includes/social.html
deleted file mode 100644
index d3c06ab..0000000
--- a/_includes/social.html
+++ /dev/null
@@ -1,22 +0,0 @@
-{% comment %}<!-- OpenGraph protocol -->{% endcomment %}
-{% if site.lang == "ca" %}
-<meta property="og:locale" content="ca_ES" />
-<meta property="og:locale:alternate" content="en_US" />
-<meta property="og:url" content="http://jo.mssola.com{{ page.url }}" />
-{% else %}
-<meta property="og:locale" content="en_US" />
-<meta property="og:locale:alternate" content="ca_ES" />
-<meta property="og:url" content="http://jo.mssola.com/en{{ page.url }}" />
-{% endif %}
-<meta property="og:title" content="{{ title }}" />
-<meta property="og:description" content="{{ description }}" />
-
-{% render_type_tags %}
-
-{% comment %}<!-- Twitter stuff -->{% endcomment %}
-<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="{{ description }}" />
-<meta name="twitter:title" content="{{ title }}" />
-{% render_og_image %}
diff --git a/_includes/tags.html b/_includes/tags.html
deleted file mode 100644
index 0f187e5..0000000
--- a/_includes/tags.html
+++ /dev/null
@@ -1,18 +0,0 @@
-{% assign rawtags = "" %}
-{% for post in site.posts %}
- {% assign ttags = post.tags | join:'|' | append:'|' %}
- {% assign rawtags = rawtags | append:ttags %}
-{% endfor %}
-{% assign rawtags = rawtags | split:'|' | sort %}
-
-{% assign site.tags = "" %}
-{% for tag in rawtags %}
- {% if tag != "" %}
- {% if tags == "" %}
- {% assign tags = tag | split:'|' %}
- {% endif %}
- {% unless tags contains tag %}
- {% assign tags = tags | join:'|' | append:'|' | append:tag | split:'|' %}
- {% endunless %}
- {% endif %}
-{% endfor %}
diff --git a/_includes/title.html b/_includes/title.html
deleted file mode 100644
index d167a8b..0000000
--- a/_includes/title.html
+++ /dev/null
@@ -1,23 +0,0 @@
-{% comment %}
-<!--
- There are three situations:
-
- 1. We have a page title and it needs translation (it starts with "titles.blabla").
- 2. We have a page title and it has to be as it is.
- 3. We don't have a page title (e.g. the main page)
--->
-{% endcomment %}
-{% if page.title %}
- {% if page.title contains "titles." %}
- {% capture title %}{{ site.title }} - {% t page.title %}{% endcapture %}
- {% capture raw_title %}{% t page.title %}{% endcapture %}
- {% else %}
- {% capture title %}{{ site.title }} - {{ page.title }}{% endcapture %}
- {% capture raw_title %}{{ page.title }}{% endcapture %}
- {% endif %}
-{% else %}
- {% capture title %}{{ site.title }}{% endcapture %}
- {% capture raw_title %}{% endcapture %}
-{% endif %}
-
-<title>{{ title }}</title>