~mrls/www

311c7d5b22ef19c777585a4911e47e2f27368b6a — Mauro Morales 2 months ago 0a4a193
Add spanish index page
6 files changed, 96 insertions(+), 8 deletions(-)

M _config.yml
A _data/i18n.yml
A _data/menus.yml
M _includes/footer.html
A _includes/header.html
A es/index.md
M _config.yml => _config.yml +4 -4
@@ 21,10 21,13 @@
title: Mauro Morales
email: contact@mauromorales.com
description: >- # this means to ignore newlines until "baseurl:"
  Software Engineer
  Mauro Morales' personal web site
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://www.mauromorales.com" # the base hostname & protocol for your site, e.g. http://example.com
permalink: none
root:
  en: /
  es: /es/

plugins:
  - jekyll-feed


@@ 32,9 35,6 @@ plugins:
# theme
theme: minima
show_excerpts: true
header_pages:
  - about.md
  - notes/index.html
twitter_username: mauromrls
github_username: mauromorales
linkedin_username: mauromorales

A _data/i18n.yml => _data/i18n.yml +13 -0
@@ 0,0 1,13 @@
---
description:
  en: Software Engineer
  es: Ingeniero de Software
is_licensed_under:
  en: is licensed under
  es: está licenciado bajo
the_source_code:
  en: the source code
  es: el código fuente
the_sites_content:
  en: the site's content
  es: el contenido del sitio

A _data/menus.yml => _data/menus.yml +11 -0
@@ 0,0 1,11 @@
---
en:
  - path: about.md
  - path: notes/index.html
  - path: es/index.md
    title: Español

es:
  - path: index.md
    title: English


M _includes/footer.html => _includes/footer.html +5 -4
@@ 1,5 1,6 @@
<footer class="site-footer h-card">
  <data class="u-url" href="{{ "/" | relative_url }}"></data>
  {%- assign lang = page.lang | default: 'en' -%}
  <data class="u-url" href="{{ site.root[lang]  | relative_url }}"></data>

  <div class="wrapper">



@@ 8,7 9,7 @@
    <div class="footer-col-wrapper">
      <div class="footer-col footer-col-1">
        <ul class="contact-list">
          <li class="p-name">{{- site.description | escape -}}</li>
          <li class="p-name">{{- site.data.i18n.description[lang] | escape -}}</li>
          {%- if site.email -%}
          <li><a class="u-email" href="mailto:{{ site.email }}">{{ site.email }}</a></li>
          {%- endif -%}


@@ 22,8 23,8 @@
      <div class="footer-col footer-col-3">
        <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">
          <img alt="Creative Commons License" style="border-width:0" src="/assets/img/cc-license.png" />
        </a>
	The content for this site is licensed under <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">CC-BY-SA.</a>. The <a href="https://git.sr.ht/~mrls/www">source code</a> is licensed under <a href="https://opensource.org/licenses/MIT">MIT</a>.
        </a>{{- site.data.i18n.the_sites_content[lang] | capitalize | escape -}}&nbsp;{{- site.data.i18n.is_licensed_under[lang] | escape -}}&nbsp;<a rel="license" href="http://creativecommons.org/licenses/by/4.0/">CC-BY-SA</a>.
          <a href="https://git.sr.ht/~mrls/www">{{- site.data.i18n.the_source_code[lang] | capitalize | escape -}}</a>&nbsp;{{- site.data.i18n.is_licensed_under[lang] | escape -}}&nbsp;<a href="https://opensource.org/licenses/MIT">MIT</a>.
      </div>
    </div>


A _includes/header.html => _includes/header.html +27 -0
@@ 0,0 1,27 @@
<header class="site-header" role="banner">

  <div class="wrapper">
    {%- assign default_paths = site.pages | map: "path" -%}
    {%- assign lang = page.lang | default: 'en' -%}
    {%- assign page_paths = site.header_pages | default: default_paths -%}
    <a class="site-title" rel="author" href="{{ site.root[lang] | relative_url }}">{{ site.title | escape }}</a>

    <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">
        {%- for menu in site.data.menus[lang] -%}
          {%- assign my_page = site.pages | where: "path", menu.path | first -%}
          <a class="page-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | default: menu.title | escape }}</a>
        {%- endfor -%}
      </div>
    </nav>
  </div>
</header>

A es/index.md => es/index.md +36 -0
@@ 0,0 1,36 @@
---
layout: page
lang: es
---

Desarrollador de software con 15 años de experiencia profesional ubicado en
Bélgica.

## Carrera profesional

Año | Empresa        | Páis    | Tipo de desarrollo
----|----------------|---------|-------------------
2019|[CloudBees]     |Alemania |Web y Sistemas
2018|[Babbel]        |Alemania |Web
2015|[SUSE]          |Alemania |Web y Sistemas
2012|[LAS]           |Suiza    |Web y Sistemas
2009|[Creative Works]|Guatemala|Web
2005|[Telefónica]    |Guatemala|Data Warehouse

[CloudBees]: https://www.cloudbees.com/
[CodeShip]: https://codeship.com/
[Babbel]: https://www.babbel.com/
[SUSE]: https://www.suse.com/
[Cloud Foundry]: https://www.cloudfoundry.org/
[LAS]: https://www.las.ch/
[Creative Works]: https://www.creativeworks.us/
[Telefónica]: https://www.telefonica.com/

## Consultoría y desarrollo

Actualmente ofrezco servicios de consultoría y desarrollo. Únicamente trabajo
de forma remota (reuniones en persona son posibles) y en la zona horaria de
Europa Central. Para mas información, por favor envíe un correo a
[contact@mauromorales.com] y con mucho gusto me pondré en contacto con usted.

[contact@mauromorales.com]: mailto:contact@mauromorales.com