Merge branch 'gh-pages' of github.com:carpentries/styles into gh-pages
authorFrançois Michonneau <francois.michonneau@gmail.com>
Tue, 20 Oct 2020 05:06:26 +0000 (07:06 +0200)
committerFrançois Michonneau <francois.michonneau@gmail.com>
Tue, 20 Oct 2020 05:06:26 +0000 (07:06 +0200)
12 files changed:
1  2 
LICENSE.md
_includes/all_keypoints.html
_includes/carpentries.html
_includes/episode_keypoints.html
_includes/episode_navbar.html
_includes/episode_overview.html
_includes/javascript.html
_includes/lesson_footer.html
_includes/main_title.html
_includes/navbar.html
_includes/syllabus.html
_includes/workshop_footer.html

diff --cc LICENSE.md
index e53782773bc9e3ab26a2565fd4554a1e7206aa50,e6a3398df46e1cff6b63735d597fa9e66f2fec6c..1e9e590ee5499c45d72ee1e33f90062465bc024c
@@@ -1,46 -1,49 +1,46 @@@
  ---
  layout: page
 -title: "Licenses"
 +title: "Licencias"
  root: .
  ---
 -## Instructional Material
 +### Material didáctico
  
- Todo el material de instrucción de Software Carpentry and Data Carpentry está
 -All Software Carpentry, Data Carpentry, and Library Carpentry instructional material is
 -made available under the [Creative Commons Attribution
 -license][cc-by-human]. The following is a human-readable summary of
 -(and not a substitute for) the [full legal text of the CC BY 4.0
 -license][cc-by-legal].
++Todo el material de instrucción de Software Carpentry, Data Carpentry y Library Carpentry está
 +disponible bajo la licencia [Creative Commons Attribution][cc-por-humano]. El siguiente es un resumen de licencia
 +(y no un sustituto) del [texto legal completo de CC BY 4.0
 +licencia][cc-by-legal].
  
 -You are free:
 +Puedes libremente:
  
 -* to **Share**---copy and redistribute the material in any medium or format
 -* to **Adapt**---remix, transform, and build upon the material
 +* **Compartir** --- copiar y redistribuir el material en cualquier medio o formato
 +* **Adaptar** --- remezclar, transformar y construir a partir del material
  
 -for any purpose, even commercially.
 +para cualquier propósito, incluso comercialmente.
  
 -The licensor cannot revoke these freedoms as long as you follow the
 -license terms.
 +El licenciante no puede revocar estas libertades mientras se siga las
 +condiciones de la licencia.
  
 -Under the following terms:
 +Bajo los siguientes términos:
  
 -* **Attribution**---You must give appropriate credit (mentioning that
 -  your work is derived from work that is Copyright © Software
 -  Carpentry and, where practical, linking to
 -  http://software-carpentry.org/), provide a [link to the
 -  license][cc-by-human], and indicate if changes were made. You may do
 -  so in any reasonable manner, but not in any way that suggests the
 -  licensor endorses you or your use.
 +* **Atribución** --- Debes otorgar crédito a éste material de manera adecuada (mencionando que
 +  su trabajo se deriva del trabajo que es Copyright de © Software
 +  Carpentry y, donde sea práctico, agrega un enlace a
 +  http://software-carpentry.org/), proporciona un [enlace a la
-   licencia][cc-por-humano], e indica si se realizaron cambios. Puedes hacerlo en cualquier forma razonable, 
-   pero no de forma tal que sugiera que tú o el uso del material derivado tienen el respaldo del licenciante. 
++  licencia][cc-por-humano], e indica si se realizaron cambios. Puedes hacerlo en cualquier forma razonable,
++  pero no de forma tal que sugiera que tú o el uso del material derivado tienen el respaldo del licenciante.
  
 -**No additional restrictions**---You may not apply legal terms or
 -technological measures that legally restrict others from doing
 -anything the license permits.  With the understanding that:
 +**Sin restricciones adicionales** --- No puedes aplicar términos legales o
 +medidas tecnológicas que restrinjan a otros hacer
- todo lo que la licencia permite. 
++todo lo que la licencia permite.
  
 -Notices:
 +Avisos:
  
- * No tiene que cumplir con la licencia con los materiales que estén en el dominio público 
-   o cuando su uso esté permitido por una excepción o limitación aplicable. 
 -* You do not have to comply with the license for elements of the
 -  material in the public domain or where your use is permitted by an
 -  applicable exception or limitation.
 -* No warranties are given. The license may not give you all of the
 -  permissions necessary for your intended use. For example, other
 -  rights such as publicity, privacy, or moral rights may limit how you
 -  use the material.
++* No tiene que cumplir con la licencia con los materiales que estén en el dominio público
++  o cuando su uso esté permitido por una excepción o limitación aplicable.
 +* No se dan garantías. La licencia puede no darle todos los
 +  permisos necesarios para su uso previsto. Por ejemplo, otros
 +  derechos como la publicidad, la privacidad, o los derechos morales pueden limitar la forma en que
 +  uses el material.
  
  ## Software
  
index 44a7d9563ba1ad17ff4df6df617440c27946c18d,f0abd251c0f09826ef1f1fb57b69e8966f0f08f1..dcc25e8d9622405d4406d177dc263b05c148f120
@@@ -1,9 -1,18 +1,18 @@@
  {% comment %}
 -  Display key points of all episodes for reference.
 +  Muestra los puntos clave de todos los episodios para referencia.
  {% endcomment %}
 -<h2>Key Points</h2>
+ {% include base_path.html %}
+ {% include manual_episode_order.html %}
 +<h2>Puntos Clave</h2>
  <table class="table table-striped">
- {% for episode in site.episodes %}
+ {% for lesson_episode in lesson_episodes %}
+   {% if site.episode_order %}
+     {% assign episode = site.episodes | where: "slug", lesson_episode | first %}
+   {% else %}
+     {% assign episode = lesson_episode %}
+   {% endif %}
    {% unless episode.break %}
      <tr>
        <td class="col-md-3">
index 7b38087edaae6a71e418c04685827a7d4850a9bb,c032bd54ea3a6d0f9a32dd8ab47d2e15c144e3a2..087faaf1ef722f00012ee68f135beba3e5c09709
@@@ -1,33 -1,70 +1,60 @@@
  {% comment %}
-   Descripción general de Software y Data Carpentry.
 -  General description of Software, Data, and Library Carpentry.
++  Descripción general de Software, Data, y Library Carpentry.
  {% endcomment %}
+ {% include base_path.html %}
  <div class="row">
    <div class="col-md-2" align="center">
-     <a href="{{ site.swc_site }}"><img src="{{ page.root }}/assets/img/swc-icon-blue.svg" alt="Software Carpentry logo" /></a>
+     <a href="{{ site.carpentries_site }}"><img src="{{ relative_root_path }}/assets/img/cp-logo-blue.svg" alt="The Carpentries logo" /></a>
    </div>
    <div class="col-md-8">
-     Desde 1998,
-     <a href="{{ site.swc_site }}">Software Carpentry</a>
-     ha estado enseñando investigadores en ciencia, ingeniería, medicina y disciplinas relacionadas las habilidades informáticas que necesitan para hacer más en menos tiempo y con menos dolor. Sus instructores voluntarios han ejecutado cientos de eventos para miles de estudiantes en los últimos dos años y medio.
+     <p><a href="{{ site.carpentries_site }}">The Carpentries</a> comprises
+     Software Carpentry, Data Carpentry, and Library Carpentry communities of Instructors, Trainers,
+     Maintainers, helpers, and supporters who share a mission to teach
 -    foundational coding and data science skills to researchers and people 
++    foundational coding and data science skills to researchers and people
+     working in library- and information-related roles. In January,
+     2018, The Carpentries was formed by the merger of Software Carpentry and
+     Data Carpentry. Library Carpentry became an official Carpentries Lesson Program in November 2018.</p>
 -
+     <p>While individual lessons and workshops continue to be run under each
+     lesson project, The Carpentries provide overall staffing and governance, as
+     well as support for assessment, instructor training and mentoring.
+     Memberships are joint, and the Carpentries project maintains a shared Code
+     of Conduct. The Carpentries is a fiscally sponsored project of Community
+     Initiatives, a registered 501(c)3 non-profit based in California, USA.</p>
+   </div>
+ </div>
+ <div class="row">
+   <div class="col-md-2" align="center">
+     <a href="{{ site.swc_site }}"><img src="{{ relative_root_path }}/assets/img/swc-icon-blue.svg" alt="Software Carpentry logo" /></a>
+   </div>
+   <div class="col-md-8">
+      <p>Since 1998, <a href="{{ site.swc_site }}">Software Carpentry</a> has
+     been teaching researchers across all disciplines the foundational coding
+     skills they need to get more done in less time and with less pain. Its
+     volunteer instructors have run hundreds of events for thousands of learners
+     around the world. Now that all research involves some degree of
+     computational work, whether with big data, cloud computing, or simple task
+     automation, these skills are needed more than ever.</p>
    </div>
  </div>
  <br/>
  <div class="row">
    <div class="col-md-2" align="center">
-     <a href="{{ site.dc_site }}"><img src="{{ page.root }}/assets/img/dc-icon-black.svg" alt="Data Carpentry logo" /></a>
+     <a href="{{ site.dc_site }}"><img src="{{ relative_root_path }}/assets/img/dc-icon-black.svg" alt="Data Carpentry logo" /></a>
    </div>
    <div class="col-md-8">
 -    <p><a href="{{ site.dc_site }}">Data Carpentry</a> develops and teaches
 -    workshops on the fundamental data skills needed to conduct research. Its
 -    target audience is researchers who have little to no prior computational
 -    experience, and its lessons are domain specific, building on learners'
 -    existing knowledge to enable them to quickly apply skills learned to their
 -    own research. Data Carpentry workshops take researchers through the entire
 -    data life cycle.</p>
 +      <a href="{{ site.dc_site }}">Data Carpentry</a> desarrolla y enseña talleres sobre las habilidades de datos fundamentales necesarias para realizar investigaciones. Su público objetivo son los investigadores que tienen poca o ninguna experiencia computacional previa, y sus lecciones son específicas del dominio, aprovechando el conocimiento existente de los alumnos para permitirles aplicar rápidamente las habilidades aprendidas a su propia investigación.
    </div>
  </div>
  <br/>
  <div class="row">
    <div class="col-md-2" align="center">
-     <a href="{{ site.lc_site }}"><img src="{{ page.root }}/assets/img/lc-icon-black.png" alt="Library Carpentry logo" /></a>
+     <a href="{{ site.lc_site }}"><img src="{{ relative_root_path }}/assets/img/lc-icon-black.png" alt="Library Carpentry logo" /></a>
    </div>
    <div class="col-md-8">
 -    <p><a href="{{ site.lc_site }}">Library Carpentry</a> develops lessons and
 -    teaches workshops for and with people working in library- and
 -    information-related roles. Its goal is to create an on-ramp to empower this
 -    community to use software and data in their own work, as well as be
 -    advocates for and train others in efficient, effective and reproducible data
 -    and software practices.</p>
 +      <a href="{{ site.lc_site }}">Library Carpentry</a> es hecho por bibliotecarios para ayudar a los bibliotecarios automatizar tareas repetitivas, aburridas y propensas a errores; crear, mantener y analizar datos sostenibles y reutilizables; trabaje eficazmente con los colegas de TI y sistemas; comprender mejor el uso del software en la investigación; y mucho más.
 +    Library Carpentry fue el ganador del 2016
 +    <a href="http://labs.bl.uk/British+Library+Labs+Awards">Premio de enseñanza y aprendizaje de British Library Labs</a>.
    </div>
  </div>
index 02c212e8ee6a01067fc3031d7e6c672bb4a5349f,5c283ea829343c5524a36fd4702bac36a813fe94..870064c7ba06faa60f9d09dfc5aac50c2b923a6a
@@@ -1,10 -1,17 +1,17 @@@
  {% comment %}
 -  Display key points for an episode.
 +Muestra los puntos clave de un episodio.
  {% endcomment %}
+ {% if page.keypoints == nil %}
+ {% assign episode_keypoints = include.episode_keypoints %}
+ {% else %}
+ {% assign episode_keypoints = page.keypoints %}
+ {% endif %}
  <blockquote class="keypoints">
 -  <h2>Key Points</h2>
 +  <h2>Puntos Clave</h2>
    <ul>
-     {% for keypoint in page.keypoints %}
+     {% for keypoint in episode_keypoints %}
      <li>{{ keypoint|markdownify }}</li>
      {% endfor %}
    </ul>
index 130a4f9dbe1123560bcc835625923c8fc7e90a56,5abf86f2c0e07bb0a16cbba7a1cce654205b5d0c..625407e172bfe66ffe6f444214b191b6d09dcf63
@@@ -1,6 -1,20 +1,18 @@@
  {% comment %}
 +Barra de navegación para un episodio.
++=======
+ For some reason, the relative_root_path seems out of scope in this file, so we
+ need to re-assign it here
  {% endcomment %}
 -{% comment %}
 -  Navigation bar for an episode.
 -{% endcomment %}
 -
+ {% include base_path.html %}
+ {% include manual_episode_order.html %}
+ {% comment %}
+     'previous_episode' and 'next_episodes' are defined in 'manual_episode_order.html'.
+     These replace 'page.previous' and 'page.next' objects, correspondingly.
+ {% endcomment %}
  <div class="row">
    <div class="col-xs-1">
      <h3 class="text-left">
    </div>
    <div class="col-xs-1">
      <h3 class="text-right">
-       {% if page.next.url %}
-       <a href="{{ page.root }}{{ page.next.url }}"><span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span><span class="sr-only">siguiente episodio</span></a>
+       {% if next_episode %}
 -      <a href="{{ relative_root_path }}{{ next_episode.url }}"><span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span><span class="sr-only">next episode</span></a>
++      <a href="{{ relative_root_path }}{{ next_episode.url }}"><span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span><span class="sr-only">siguiente episodio</span></a>
        {% else %}
-       <a href="{{ page.root }}/"><span class="glyphicon glyphicon-menu-up" aria-hidden="true"></span><span class="sr-only">casa de lección</span></a>
 -      <a href="{{ relative_root_path }}/"><span class="glyphicon glyphicon-menu-up" aria-hidden="true"></span><span class="sr-only">lesson home</span></a>
++      <a href="{{ relative_root_path }}/"><span class="glyphicon glyphicon-menu-up" aria-hidden="true"></span><span class="sr-only">case de lección</span></a>
        {% endif %}
      </h3>
    </div>
index 85261e0f0d898a9ee753bc8548c8cbd9c19ad600,169ab26b6382fd83aacb3f841804dc13eb9e0154..8c273ac68712e5728f98a9f58d5206d1f21c4a7a
@@@ -1,19 -1,59 +1,59 @@@
  {% comment %}
 -    Display episode's timings and learning objectives.
 +Muestre los tiempos y los objetivos de aprendizaje de un episodio.
+     Regarding the `if page.*** == nil` below:
+     all-in-one page combines all episodes into one.
+     It, therefore, does not define its own objectives, exercises,
+     and questions, which 'normal' episodes define in the front matter.
+     To display episodes' teaching and exercise times, as well as episode
+     questions and objectives, we pass them as parameters to the Liquid's
+     `include` statement when we generate the page:
+        include episode_overview.html teaching_time=e.teaching ...
+     Here we obtain the information we need either from the episode itself or
+     from the parameters passed in.
  {% endcomment %}
+ {% if page.teaching == nil %}
+ {% assign teaching_time = include.teaching_time %}
+ {% else %}
+ {% assign teaching_time = page.teaching %}
+ {% endif %}
+ {% if page.exercises == nil %}
+ {% assign exercise_time = include.exercise_time %}
+ {% else %}
+ {% assign exercise_time = page.exercises %}
+ {% endif %}
+ {% if page.questions == nil %}
+ {% assign episode_questions = include.episode_questions %}
+ {% else %}
+ {% assign episode_questions = page.questions %}
+ {% endif %}
+ {% if page.objectives == nil %}
+ {% assign episode_objectives = include.episode_objectives %}
+ {% else %}
+ {% assign episode_objectives = page.objectives %}
+ {% endif %}
  <blockquote class="objectives">
 -  <h2>Overview</h2>
 +  <h2>Hoja de ruta</h2>
  
    <div class="row">
      <div class="col-md-3">
-         <strong>Leccion:</strong> {{ page.teaching }} min
 -      <strong>Teaching:</strong> {{ teaching_time }} min
++        <strong>Leccion:</strong> {{ teaching_time }} min
        <br/>
-       <strong>Prácticas:</strong> {{ page.exercises }} min
 -      <strong>Exercises:</strong> {{ exercise_time }} min
++      <strong>Prácticas:</strong> {{ exercise_time }} min
      </div>
      <div class="col-md-9">
 -      <strong>Questions</strong>
 +      <strong>Preguntas</strong>
        <ul>
-       {% for question in page.questions %}
+       {% for question in episode_questions %}
        <li>{{ question|markdownify }}</li>
        {% endfor %}
        </ul>
@@@ -24,9 -64,9 +64,9 @@@
      <div class="col-md-3">
      </div>
      <div class="col-md-9">
 -      <strong>Objectives</strong>
 +      <strong>Objetivos</strong>
        <ul>
-       {% for objective in page.objectives %}
+       {% for objective in episode_objectives %}
        <li>{{ objective|markdownify }}</li>
        {% endfor %}
        </ul>
index 35e6f2a6680a2f0b8f85a2c23b9866afb52edfb9,fcc74e6ecc1644f6e70d275fdc1db01c461ebbb0..2fb9659ac44a5524a1f57caf7e534ef7b5425952
@@@ -1,9 -1,9 +1,9 @@@
  {% comment %}
 -  JavaScript used in lesson and workshop pages.
 +Javascript utilizado en las páginas de lecciones y talleres.
  {% endcomment %}
- <script src="{{ page.root }}/assets/js/jquery.min.js"></script>
- <script src="{{ page.root }}/assets/js/bootstrap.min.js"></script>
- <script src="{{ page.root }}/assets/js/lesson.js"></script>
+ <script src="{{ relative_root_path }}/assets/js/jquery.min.js"></script>
+ <script src="{{ relative_root_path }}/assets/js/bootstrap.min.js"></script>
+ <script src="{{ relative_root_path }}/assets/js/lesson.js"></script>
  <script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
index 1d82a80904e92e0ac0d9d16023eddbffb6d07b21,b0eb29912ed1f9bf3df02ab2d7e7c97d700a4a3c..13d08ef62c8cb1ffeb6d6dbabe4e462166355913
@@@ -1,45 -1,48 +1,48 @@@
  {% comment %}
 -  Footer for lesson pages.
 +  Pie de página para las páginas de lecciones.
  {% endcomment %}
+ {% include gh_variables.html %}
  <footer>
    <div class="row">
-     <div class="col-md-6 copyright" align="left">
+     <div class="col-md-6 license" id="license-info" align="left">
        {% if site.carpentry == "swc" %}
-       Copyright &copy; 2018–{{ 'now' | date: "%Y" }}
-       <a href="{{ site.carpentries_site }}">The Carpentries</a>
+       Licensed under <a href="{{ site.cc_by_human }}">CC-BY 4.0</a> 2018–{{ 'now' | date: "%Y" }}
+       by <a href="{{ site.carpentries_site }}">The Carpentries</a>
          <br>
-         Copyright &copy; 2016–2018
-       <a href="{{ site.swc_site }}">Software Carpentry Foundation</a>
+         Licensed under <a href="{{ site.cc_by_human }}">CC-BY 4.0</a> 2016–2018
+       by <a href="{{ site.swc_site }}">Software Carpentry Foundation</a>
        {% elsif site.carpentry == "dc" %}
-       Copyright &copy; 2018–{{ 'now' | date: "%Y" }}
-       <a href="{{ site.carpentries_site }}">The Carpentries</a>
+       Licensed under <a href="{{ site.cc_by_human }}">CC-BY 4.0</a> 2018–{{ 'now' | date: "%Y" }}
+       by <a href="{{ site.carpentries_site }}">The Carpentries</a>
          <br>
-         Copyright &copy; 2016–2018
-       <a href="{{ site.dc_site }}">Data Carpentry</a>
+         Licensed under <a href="{{ site.cc_by_human }}">CC-BY 4.0</a> 2016–2018
+       by <a href="{{ site.dc_site }}">Data Carpentry</a>
        {% elsif site.carpentry == "lc" %}
-       Copyright &copy; 2016–{{ 'now' | date: "%Y" }}
-       <a href="{{ site.lc_site }}">Library Carpentry</a>
+       Licensed under <a href="{{ site.cc_by_human }}">CC-BY 4.0</a> 2016–{{ 'now' | date: "%Y" }}
+       by <a href="{{ site.lc_site }}">Library Carpentry</a>
        {% elsif site.carpentry == "cp" %}
-       Copyright &copy; 2018–{{ 'now' | date: "%Y" }}
-       <a href="{{ site.carpentries_site }}">The Carpentries</a>
+       Licensed under <a href="{{ site.cc_by_human }}">CC-BY 4.0</a> 2018–{{ 'now' | date: "%Y" }}
+       by <a href="{{ site.carpentries_site }}">The Carpentries</a>
        {% endif %}
      </div>
      <div class="col-md-6 help-links" align="right">
        {% if page.source %}
        {% if page.source == "Rmd" %}
-       <a href="{{site.github.repository_url}}/edit/gh-pages/{{page.path|replace: "_episodes", "_episodes_rmd" | replace: ".md", ".Rmd"}}">Editar en GitHub</a>
 -      <a href="{{repo_url}}/edit/{{ default_branch }}/{{page.path|replace: "_episodes", "_episodes_rmd" | replace: ".md", ".Rmd"}}" data-checker-ignore>Edit on GitHub</a>
++      <a href="{{repo_url}}/edit/{{ default_branch }}/{{page.path|replace: "_episodes", "_episodes_rmd" | replace: ".md", ".Rmd"}}" data-checker-ignore>Editar en GitHub</a>
        {% endif %}
        {% else %}
-       <a href="{{site.github.repository_url}}/edit/gh-pages/{{page.path}}">Editar en GitHub</a>
 -      <a href="{{repo_url}}/edit/{{ default_branch }}/{{page.path}}" data-checker-ignore>Edit on GitHub</a>
++      <a href="{{repo_url}}/edit/{{ default_branch }}/{{page.path}}" data-checker-ignore>Editar en GitHub</a>
        {% endif %}
        /
-       <a href="{{ site.github.repository_url }}/blob/gh-pages/CONTRIBUTING.md">Contribuir</a>
 -      <a href="{{ repo_url }}/blob/{{ source_branch }}/CONTRIBUTING.md" data-checker-ignore>Contributing</a>
++      <a href="{{ repo_url }}/blob/{{ source_branch }}/CONTRIBUTING.md" data-checker-ignore>Contribuir</a>
        /
-       <a href="{{ site.github.repository_url }}/">Fuente</a>
 -      <a href="{{ repo_url }}/">Source</a>
++      <a href="{{ repo_url }}/">Fuente</a>
        /
-       <a href="{{ site.github.repository_url }}/blob/gh-pages/CITATION">Cita</a>
 -      <a href="{{ repo_url }}/blob/{{ source_branch }}/CITATION" data-checker-ignore>Cite</a>
++      <a href="{{ repo_url }}/blob/{{ source_branch }}/CITATION" data-checker-ignore>Cita</a>
        /
 -      <a href="mailto:{{ site.email }}">Contact</a>
 +      <a href="mailto:{{ site.email }}">Contacto</a>
      </div>
    </div>
    <div class="row">
index 283a2f77962eba3c5e02e9e3b1f9b5ac3e550f06,7d17317f1cd9c7b0b43812a48756fae211439dc3..1ad1d4b4585c63ed538d6111a072fbc63cb94e08
@@@ -1,4 -1,14 +1,14 @@@
  {% comment %}
 -  Main title for lesson pages.
 +Título principal para las páginas de la lección.
  {% endcomment %}
- <h1 class="maintitle"><a href="{{ page.root }}{% link index.md %}">{{ site.title }}</a>{% if page.title %}: {{ page.title }}{% endif %}</h1>
+ {% include base_path.html %}
+ {% if site.kind == "lesson" %}
+ <h1 class="maintitle"><a href="{{ relative_root_path }}{% link index.md %}">{{ site.title }}</a>{% if page.title %}: {{ page.title }}{% endif %}</h1>
+ {% else %}
+ <h1 class="maintitle">{{ page.title }}</h1>
+ {% endif %}
index 952c3718dadfd16bc782974098021eaa610e28ec,9db636a29cabb885d6338dcb3883e18279847287..471d065f675f154585791b07855e555fc76a5e8e
@@@ -1,6 -1,10 +1,10 @@@
  {% comment %}
 -  Lesson navigation bar.
 + Barra de navegación de la lección.
  {% endcomment %}
+ {% include gh_variables.html %}
+ {% include manual_episode_order.html %}
  <nav class="navbar navbar-default">
    <div class="container-fluid">
      <div class="navbar-header">
          <span class="icon-bar"></span>
        </button>
  
 -      {% comment %} Select what logo to display. {% endcomment %}
 -      {% if site.carpentry == "swc" %}
 +
 +      {% comment %} Seleccione qué logotipo mostrar. {% endcomment %}
 +      {% if page.carpentry == "swc" %}
        <a href="{{ site.swc_site }}" class="pull-left">
-         <img class="navbar-logo" src="{{ page.root }}/assets/img/swc-icon-blue.svg" alt="Software Carpentry logo" />
+         <img class="navbar-logo" src="{{ relative_root_path }}{% link /assets/img/swc-icon-blue.svg %}" alt="Software Carpentry logo" />
        </a>
        {% elsif site.carpentry == "dc" %}
        <a href="{{ site.dc_site }}" class="pull-left">
        </a>
        {% endif %}
  
-       {% comment %} Mostrar siempre el enlace a la página de inicio. {% endcomment %}
-       <a class="navbar-brand" href="{{ page.root }}{% link index.md %}">Inicio</a>
 -      {% comment %} Always show link to home page. {% endcomment %}
 -      <a class="navbar-brand" href="{{ relative_root_path }}{% link index.md %}">Home</a>
++
++      {% comment %}  Mostrar siempre el enlace a la página de inicio. {% endcomment %}
++      <a class="navbar-brand" href="{{ relative_root_path }}{% link index.md %}">Inicio</a>
  
      </div>
      <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <ul class="nav navbar-nav">
  
-       {% comment %} Mostrar siempre el código de conducta. {% endcomment %}
-         <li><a href="{{ page.root }}{% link CODE_OF_CONDUCT.md %}">Code of Conduct</a></li>
+       {% comment %} Always show code of conduct. {% endcomment %}
+         <li><a href="{{ relative_root_path }}{% link CODE_OF_CONDUCT.md %}">Code of Conduct</a></li>
  
          {% if site.kind == "lesson" %}
-       {% comment %} Muestra las instrucciones de configuración. {% endcomment %}
-         <li><a href="{{ page.root }}{% link setup.md %}">Configuración</a></li>
 -      {% comment %} Show setup instructions. {% endcomment %}
++        {% comment %} Muestra las instrucciones de configuración. {% endcomment %}
+         <li><a href="{{ relative_root_path }}{% link setup.md %}">Setup</a></li>
  
 -        {% comment %} Show lesson episodes for lessons. {% endcomment %}
 +        {% comment %} Muestra episodios de lecciones para lecciones. {% endcomment %}
++
+         {% if lesson_episodes.size > 0 %}
          <li class="dropdown">
-           <a href="{{ page.root }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Episodios<span class="caret"></span></a>
+           <a href="{{ relative_root_path }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Episodes <span class="caret"></span></a>
++
            <ul class="dropdown-menu">
-             {% for episode in site.episodes %}
-             <li><a href="{{ page.root }}{{ episode.url }}">{{ episode.title }}</a></li>
+             {% for lesson_episode in lesson_episodes %}
+             {% if site.episode_order %}
+               {% assign episode = site.episodes | where: "slug", lesson_episode | first %}
+             {% else %}
+               {% assign episode = lesson_episode %}
+             {% endif %}
+             <li><a href="{{ relative_root_path }}{{ episode.url }}">{{ episode.title }}</a></li>
              {% endfor %}
            <li role="separator" class="divider"></li>
-             <li><a href="{{ page.root }}{% link aio.md %}">Todo en una sola página (Beta)</a></li>
 -            <li><a href="{{ relative_root_path }}{% link aio.md %}">All in one page (Beta)</a></li>
++            <li><a href="{{ relative_root_path }}{% link aio.md %}">Todo en una sola página (Beta)</a></li>
            </ul>
          </li>
+         {% endif %}
        {% endif %}
  
 -      {% comment %} Show extras for lessons or if this is the main workshop-template repo (where they contain documentation). {% endcomment %}
 +      {% comment %} Muestra extras para las lecciones o si este es el repositorio principal de la plantilla del taller (donde contienen documentación). {% endcomment %}
        {% if site.kind == "lesson" %}
          <li class="dropdown">
-           <a href="{{ page.root }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Extras<span class="caret"></span></a>
 -          <a href="{{ relative_root_path }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Extras <span class="caret"></span></a>
++          <a href="{{ relative_root_path }}/" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Extras<span class="caret"></span></a>
            <ul class="dropdown-menu">
-             <li><a href="{{ page.root }}{% link reference.md %}">Referencia</a></li>
-             {% for extra in site.extras %}
-             <li><a href="{{ page.root }}{{ extra.url }}">{{ extra.title }}</a></li>
 -            <li><a href="{{ relative_root_path }}{% link reference.md %}">Reference</a></li>
++            <li><a href="{{ relative_root_path }}{% link reference.md %}">Referencia</a></li>
+             {% for lesson_extra in lesson_extras %}
+             {% if site.extras_order %}
+               {% assign extra = site.extras | where: "slug", lesson_extra | first %}
+             {% else %}
+               {% assign extra = lesson_extra %}
+             {% endif %}
+             <li><a href="{{ relative_root_path }}{{ extra.url }}">{{ extra.title }}</a></li>
              {% endfor %}
            </ul>
          </li>
        {% endif %}
--
-       {% comment %} Mostrar siempre licencia. {% endcomment %}
-         <li><a href="{{ page.root }}{% link LICENSE.md %}">Licencia</a></li>
+       {% comment %} Always show license. {% endcomment %}
 -        <li><a href="{{ relative_root_path }}{% link LICENSE.md %}">License</a></li>
++        <li><a href="{{ relative_root_path }}{% link LICENSE.md %}">Licencia</a></li>
        {% if page.source %}
        {% if page.source == "Rmd" %}
-       <li><a href="{{site.github.repository_url}}/edit/gh-pages/{{page.path|replace: "_episodes", "_episodes_rmd" | replace: ".md", ".Rmd"}}">Mejore esta página<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a></li>
 -      <li><a href="{{repo_url}}/edit/{{ default_branch }}/{{page.path|replace: "_episodes", "_episodes_rmd" | replace: ".md", ".Rmd"}}" data-checker-ignore>Improve this page <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a></li>
++      <li><a href="{{repo_url}}/edit/{{ default_branch }}/{{page.path|replace: "_episodes", "_episodes_rmd" | replace: ".md", ".Rmd"}}" data-checker-ignore>Mejore esta página<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a></li>
        {% endif %}
        {% else %}
-       <li><a href="{{site.github.repository_url}}/edit/gh-pages/{{page.path}}">Mejora esta página<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a></li>
 -      <li><a href="{{repo_url}}/edit/{{ default_branch}}/{{page.path}}" data-checker-ignore>Improve this page <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a></li>
++      <li><a href="{{repo_url}}/edit/{{ default_branch}}/{{page.path}}" data-checker-ignore>Mejore esta página<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a></li>
        {% endif %}
        </ul>
        <form class="navbar-form navbar-right" role="search" id="search" onsubmit="google_search(); return false;">
index f00a1ac51132c72c730ec3391c25d47fc683ee2d,6f1134604a0eef0d2b1428b3f5099cb7a6ef4862..582863bb4ee95b6ffb15bfc9708c6c8605622186
@@@ -1,9 -1,14 +1,14 @@@
+ {% include base_path.html %}
  {% comment %}
 -  Display syllabus in tabular form.
 -  Days are displayed if at least one episode has 'start = true'.
 +  Mostrar plan de estudios en forma de tabla.
 +  Los días se muestran si al menos un episodio tiene 'start = true'.
  {% endcomment %}
+ {% include manual_episode_order.html %}
  <div class="syllabus">
 -  <h2 id="schedule">Schedule</h2>
 +  <h2 id="schedule">Horario</h2>
  
    {% assign lesson_number = 0 %}
    {% assign day = 0 %}
    <tr>
      {% if multiday %}<td class="col-md-1"></td>{% endif %}
      <td class="{% if multiday %}col-md-1{% else %}col-md-2{% endif %}"></td>
-     <td class="col-md-3"><a href="{{ page.root }}{% link setup.md %}">Configuración</a></td>
 -    <td class="col-md-3"><a href="{{ relative_root_path }}{% link setup.md %}">Setup</a></td>
 -    <td class="col-md-7">Download files required for the lesson</td>
++    <td class="col-md-3"><a href="{{ relative_root_path }}{% link setup.md %}">Configuración</a></td>
 +    <td class="col-md-7">Descargar los archivos necesarios para la lección</td>
    </tr>
-   {% for episode in site.episodes %}
-     {% if episode.start %} {% comment %} ¿Comenzando un nuevo día? {% endcomment %}
+   {% for lesson_episode in lesson_episodes %}
+     {% if site.episode_order %}
+       {% assign episode = site.episodes | where: "slug", lesson_episode | first %}
+     {% else %}
+       {% assign episode = lesson_episode %}
+     {% endif %}
 -    {% if episode.start %} {% comment %} Starting a new day? {% endcomment %}
++    {% if episode.start %} {% comment %}  ¿Comenzando un nuevo día?  {% endcomment %}
        {% assign day = day | plus: 1 %}
 -      {% if day > 1 %} {% comment %} If about to start day 2 or later, show finishing time for previous day {% endcomment %}
 +      {% if day > 1 %} {% comment %} Si está por comenzar el día 2 o más tarde, muestre el tiempo de finalización del día anterior {% endcomment %}
          {% assign hours = current | divided_by: 60 %}
          {% assign minutes = current | modulo: 60 %}
          <tr>
index 8ba35975c4ef680b9e7bf27d82b66a125b8f0707,5390ac1de215bb0060752bc3ebda25692de8517d..ad27f0d0f021cbc015e528263246a12af98fdb65
@@@ -19,7 -19,7 +19,7 @@@
      </div>
      <div class="col-md-6" align="right">
        <h4>
-       <a href="mailto:{{ site.email }}">Contacto</a>
 -      <a href="mailto:{{ site.email }}">Contact The Carpentries</a>
++      <a href="mailto:{{ site.email }}">Contacta con The Carpentries</a>
        </h4>
      </div>
    </div>