Commit 1dcf9fc2 authored by Greg Wilson's avatar Greg Wilson
Browse files

Switching to site.root and site.repo

parent 86676036
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@
  {% unless episode.break %}
    <tr>
      <td class="col-md-3">
        <a href="{{ site.github.url }}{{ episode.url }}">{{ episode.title }}</a>
        <a href="{{ site.root }}{{ episode.url }}">{{ episode.title }}</a>
      </td>
      <td class="col-md-9">
        <ul>
+2 −2
Original line number Diff line number Diff line
<div class="row">
  <div class="col-md-2" align="center">
    <a href="{{ site.swc_site }}"><img src="{{ site.github.url }}/assets/img/swc-icon-blue.svg" alt="Software Carpentry logo" /></a>
    <a href="{{ site.swc_site }}"><img src="{{ site.root }}/assets/img/swc-icon-blue.svg" alt="Software Carpentry logo" /></a>
  </div>
  <div class="col-md-8">
    Since 1998,
@@ -14,7 +14,7 @@
<br/>
<div class="row">
  <div class="col-md-2" align="center">
    <a href="{{ site.dc_site }}"><img src="{{ site.github.url }}/assets/img/dc-icon-black.svg" alt="Data Carpentry logo" /></a>
    <a href="{{ site.dc_site }}"><img src="{{ site.root }}/assets/img/dc-icon-black.svg" alt="Data Carpentry logo" /></a>
  </div>
  <div class="col-md-8">
    <a href="{{ site.dc_site }}">Data Carpentry</a> develops and teaches workshops on the fundamental data skills needed to conduct research.
+5 −5
Original line number Diff line number Diff line
@@ -3,22 +3,22 @@
  <div class="col-md-1">
    <h3>
      {% if prev_episode %}
      <a href="{{ site.github.url }}{{ prev_episode.url }}"><span class="glyphicon glyphicon-menu-left"></span></a>
      <a href="{{ site.root }}{{ prev_episode.url }}"><span class="glyphicon glyphicon-menu-left"></span></a>
      {% else %}
      <a href="{{ site.github.url }}"><span class="glyphicon glyphicon-menu-up"></span></a>
      <a href="{{ site.root }}"><span class="glyphicon glyphicon-menu-up"></span></a>
      {% endif %}
    </h3>
  </div>
  <div class="col-md-10">
    <h3 class="maintitle"><a href="{{ site.github.url }}/">{{ site.title }}</a></h3>
    <h3 class="maintitle"><a href="{{ site.root }}/">{{ site.title }}</a></h3>
    <h1 class="maintitle">{{ page.title }}</h1>
  </div>
  <div class="col-md-1">
    <h3>
      {% if next_episode %}
      <a href="{{ site.github.url }}{{ next_episode.url }}"><span class="glyphicon glyphicon-menu-right"></span></a>
      <a href="{{ site.root }}{{ next_episode.url }}"><span class="glyphicon glyphicon-menu-right"></span></a>
      {% else %}
      <a href="{{ site.github.url }}"><span class="glyphicon glyphicon-menu-up"></span></a>
      <a href="{{ site.root }}"><span class="glyphicon glyphicon-menu-up"></span></a>
      {% endif %}
    </h3>
  </div>
+3 −3
Original line number Diff line number Diff line
<script src="{{ site.github.url }}/assets/js/jquery.min.js"></script>
<script src="{{ site.github.url }}/assets/js/bootstrap.min.js"></script>
<script src="{{ site.github.url }}/assets/js/lesson.js"></script>
<script src="{{ site.root }}/assets/js/jquery.min.js"></script>
<script src="{{ site.root }}/assets/js/bootstrap.min.js"></script>
<script src="{{ site.root }}/assets/js/lesson.js"></script>
+2 −11
Original line number Diff line number Diff line
{% comment %}
  Generic footer.  Links to repository, not to generated website, so
  we do a bit of a dance to get the right URL.
{% endcomment %}
{% if site.is_production %}
  {% capture repo_url %}{{ site.github.repository_url }}{% endcapture %}
{% else %}
  {% capture repo_url %}https://github.com/{{ site.account }}/{{ site.project }}{% endcapture %}
{% endif %}
<hr/>
<footer>
  <div class="row">
@@ -19,9 +10,9 @@
    </div>
    <div class="col-md-6" align="right">
      <h4>
	<a href="{{ repo_url }}">Source</a>
	<a href="{{ site.repo }}/">Source</a>
	/
	<a href="{{ repo_url }}/blob/gh-pages/CONTRIBUTING.md">Contributing</a>
	<a href="{{ site.repo }}/blob/gh-pages/CONTRIBUTING.md">Contributing</a>
	/
	<a href="mailto:{{ site.email }}">Contact</a>
      </h4>
Loading