Skip to content

Commit d6fed28

Browse files
author
Leah Wasser
authored
Merge pull request #859 from earthlab/deprecate
Deprecate all ea python content
2 parents c7ae7b7 + 492bfe3 commit d6fed28

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

_includes/sidebar_class_navigation_week.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ <h5><a href="{{ site.url }}/courses/{{ page.course | slugify }}/" ><i class="fa
7272
{% if post.url == page.url %}
7373
<li> <a href="{{ site.url }}{{ post.permalink }}" class='active'> SECTION {{ post.week }}<br><!--<i class="fa fa-folder-open" aria-hidden="true"></i> -->
7474
{% if post.nav-title %} {{ post.nav-title | upcase }} {% else %} {{ post.title | upcase }}{% endif %}</a></li>
75-
{% else %}
75+
{% else %}
7676
<li class='active-section'> <a href="{{ site.url }}{{ post.permalink }}"><i class="fa fa-folder-open" aria-hidden="true"></i>
7777
{% if post.nav-title %}{{ post.chapter }} {{ post.week }}. {{ post.nav-title | upcase }} {% else %} {{ post.week }}. {{ post.title | upcase }}{% endif %}</a></li>
7878

@@ -112,7 +112,7 @@ <h5><a href="{{ site.url }}/courses/{{ page.course | slugify }}/" ><i class="fa
112112
</ul>
113113
{% endfor %}
114114

115-
{% if lesson_count == 0 %} <li>There are no lessons for this week. </li> {% endif %}
115+
{% if lesson_count == 0 %} <li>We have moved our lessons to a shiny new textbook series to make content easier to find! </li> {% endif %}
116116
</ul>
117117

118118
<!-- BEGIN Learn how to lessons -->

_layouts/single.html

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,35 @@ <h1 class="page__title" itemprop="headline">
5757
<!-- BEGIN: insert a welcome to the module block on pages that are part of a module set -->
5858

5959
<!-- END: insert welcome block -->
60+
6061
{% if page.title %}
61-
<h1 class="page__title" itemprop="headline">
62+
63+
{% if page.course == "earth-analytics-python" %}
64+
<div class="notice--warning header" markdown="1">
65+
<h1 class="page__title" itemprop="headline"> <i class="fa fa-6 fa-exclamation-circle" aria-hidden="true"></i> THIS CONTENT IS MOVING! {{ page.module-title }} </h1>
66+
<p>We are moving our course lessons to an improved textbook series. All of the same
67+
content will be improved and available by the end of Spring 2020. While these pages will automagically redirect,
68+
you can also visit the links below to check out our new content!
69+
70+
Our course landing pages with associated readings and assignments will stay here so you can continue to follow along with our courses!
71+
</p>
72+
<ul>
73+
<li><a href="https://www.earthdatascience.org/courses/intro-to-earth-data-science/">Introduction to Earth Analytics Textbook</a></li>
74+
<li><a href="https://www.earthdatascience.org/courses/use-data-open-source-python/">Intermediate Earth Analytics Textbook</a></li>
75+
<li><a href="https://www.earthdatascience.org/courses/scientists-guide-to-plotting-data-in-python/">Earth Analytics Plotting Data Textbook</a></li>
76+
</ul>
77+
</div>
78+
{% endif %}
6279
{% if page.deprecated %}
63-
{% if page.order %}<i class="fa fa-6 fa-exclamation-circle" aria-hidden="true"></i> DEPRECATED / MOVED Lesson {% endif %}
80+
<h1 class="page__title" itemprop="headline">{% if page.order %}<i class="fa fa-6 fa-exclamation-circle" aria-hidden="true"></i> DEPRECATED / MOVED Lesson {% endif %}</h1>
6481
{% else %}
82+
<h1 class="page__title" itemprop="headline">
6583
{% if page.order %}Lesson {{ page.order }}. {% endif %}
6684
{% if page.header1 %}{{ page.header1 | markdownify | remove: "<p>" | remove: "</p>" }}{% else %} {{ page.title | markdownify | remove: "<p>" | remove: "</p>" }}{% endif %}
6785
{% if page.module %} {{ page.module | replace: '-', ' ' | capitalize }} {{ page.module-type | capitalize }} {% endif %}
86+
</h1>
6887
{% endif %}
69-
</h1>
88+
7089
{% endif %}
7190

7291
{% if page.authors %}

0 commit comments

Comments
 (0)