summaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-08-30 20:47:29 -0600
committerHombreLaser <sebastian-440@live.com>2023-08-30 20:47:29 -0600
commit02b32ad3eae374e8ba47103fa9b9bc24f84b8094 (patch)
tree80678eda3199ecdb10ddceede9f8ff5cdb0743cd /_includes
parent6178efc220a92b040e2793af02af9cd322efc063 (diff)
Add internationalization
Diffstat (limited to '_includes')
-rw-r--r--_includes/header.html23
-rw-r--r--_includes/links-list.html4
-rw-r--r--_includes/sidebar.html2
3 files changed, 20 insertions, 9 deletions
diff --git a/_includes/header.html b/_includes/header.html
index fbfc787..625c8d4 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -28,13 +28,24 @@
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
- <li class="active"><a href="{{ site.baseurl }}/">Inicio</a></li>
+ <li class="active"><a href="{{ site.baseurl }}/">{% t global.home %}</a></li>
<li class="active visible-xs-block"><a href="{{ site.baseurl }}/links">Links</a></li>
- <li class="active"><a href="{{ site.baseurl }}/archive">Archivo</a></li>
- <li class="active"><a href="{{ site.baseurl }}/about-me">Acerca de mí</a></li>
- <li class="active"><a href="{{ site.baseurl }}/about">Acerca de</a></li>
- </ul>
- </div>
+ <li class="active"><a href="{{ site.baseurl }}/archive">{% t global.archive %}</a></li>
+ <li class="active"><a href="{{ site.baseurl }}/about-me">{% t global.about_me %}</a></li>
+ <li class="active"><a href="{{ site.baseurl }}/about">{% t global.about %}</a></li>
+ <li class="dropdown">
+ <a class="dropdown-toggle" data-toggle="dropdown" href="#">
+ {% t global.language %}<span class="caret"></span>
+ </a>
+ <ul class="dropdown-menu" role="menu">
+ {% capture spanish_site %}{{ site.baseurl_root }}{{ page.url}}{% endcapture %}
+ <li><a href="{{ spanish_site }}">Español</a></li>
+ {% capture english_site %}{{ site.baseurl_root }}/en{{ page.url}}{% endcapture %}
+ <li><a href="{{ english_site }}">English</a></li>
+ </ul>
+ </li>
+ </ul>
+ </div>
</div>
</div>
</div>
diff --git a/_includes/links-list.html b/_includes/links-list.html
index 1f6eedc..fef5a32 100644
--- a/_includes/links-list.html
+++ b/_includes/links-list.html
@@ -1,6 +1,6 @@
<h1>Links</h1>
<ul>
- <li><a href="https://git.silosneeded.com/cgit/blog.git">Código fuente</a></li>
- <li><a href="https://git.silosneeded.com/cgit">Repositorio personal de git</a></li>
+ <li><a href="https://git.silosneeded.com/cgit/blog.git">{% t global.source_code %}</a></li>
+ <li><a href="https://git.silosneeded.com/cgit">{% t global.personal_git_repository %}</a></li>
<li><a href="https://github.com/HombreLaser">Github</a></li>
</ul>
diff --git a/_includes/sidebar.html b/_includes/sidebar.html
index 9df403a..81bd391 100644
--- a/_includes/sidebar.html
+++ b/_includes/sidebar.html
@@ -3,7 +3,7 @@
</div>
<div class="sidebar well">
- <h1>Posts recientes</h1>
+ <h1>{% t global.recent_posts %}
<ul>
{% for post in site.posts limit:5 %}
<li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>