Skip to content
This repository has been archived by the owner on Nov 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1249 from martinosorb/archive-blog
Browse files Browse the repository at this point in the history
Archive blog
  • Loading branch information
maneesha authored Jul 6, 2023
2 parents a6705d2 + eb97903 commit 860ddbb
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 61 deletions.
6 changes: 2 additions & 4 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,12 @@
- title: "Reading Material"
url: "/reading/"

- title: Blog
- title: "Blog Archive"
url: "/blog/"
side: left
dropdown:
- title: "Recent Posts"
- title: "All Posts"
url: "/blog/"
- title: "Blog Archive"
url: "/blog/archive/"
- title: "Blog Posts by Category"
url: "/blog/categories/"
- title: "Blog Posts by Date"
Expand Down
26 changes: 0 additions & 26 deletions blog/archive.html

This file was deleted.

49 changes: 35 additions & 14 deletions blog/index.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,39 @@
---
layout: page-fullwidth
title: "Blog"
layout: default
title: "Blog Archive"
permalink: "/blog/"
redirect_from:
- /blog/archives.html
- /blog/archive/index.html
---
<div class="row">
<div class="medium-8 columns">
<h2>Recent Blog Posts</h2>
{% include list-posts entries='30' %}
</div>
<div class="medium-4 columns">
<h2>Comments</h2>
<div id="recentcomments" class="dsq-widget">
<script type="text/javascript" src="http://software-carpentry.disqus.com/recent_comments_widget.js?num_items=5&hide_avatars=1&excerpt_length=200"></script>
</div>
<a class="twitter-timeline" href="https://twitter.com/swcarpentry" data-widget-id="410241789077909504">Tweets by @swcarpentry</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<div id="blog-index" class="row">
<div class="medium-12 columns t30">
<h1>{{ page.title }}</h1>
<p>
The Software Carpentry blog is no longer updated regularly.
You can find more information about what's happening in our community through
<a href="https://carpentries.org/blog">The Carpentries blog</a>,
a great resource that collates posts from Data Carpentry,
Library Carpentry, and Software Carpentry, and
publishes updates of general interest to the community.
</p>
<p>
This page contains a list of posts from the legacy Software Carpentry blog
for archival purposes.
</p>
{% if page.teaser %}<p class="teaser">{{ page.teaser }}</p>{% endif %}
<dl class="accordion" data-accordion>
{% for post in site.posts %}
<dd class="accordion-navigation">
<a href="#panel{{ forloop.index }}"><span class="iconfont"></span> {% if post.subheadline %}{{ post.subheadline }} › {% endif %}<strong>{{ post.title }}</strong></a>
<div id="panel{{ forloop.index }}" class="content">
{{ post.authors | join: ', ' }} / {{ post.date | date: '%Y-%m-%d' }}
<br/>
{% if post.meta_description %}{{ post.meta_description | strip_html | escape }}{% elsif post.teaser %}{{ post.teaser | strip_html | escape }}{% elsif post.excerpt %}{{ post.excerpt | strip_html | escape }}{% endif %}
<a href="{{ site.baseurl }}{{ post.url }}" title="Read {{ post.title | escape_once }}"><strong>{{ site.data.language.read_more }}</strong></a><br><br>
</div>
</dd>
{% endfor %}
</dl>
</div>
</div>
17 changes: 0 additions & 17 deletions pages/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,3 @@ <h3>Upcoming Workshops</h3>
</td>
</tr>
</div><!--end of row-->



<div class="row">
<div class="medium-12 columns">
<h3>Recent Blog Posts</h3>
<p>
The Software Carpentry blog is no longer updated regularly.
You can find more information about what's happening in our community through
<a href="https://carpentries.org/blog">The Carpentries blog</a>,
a great resource that collates posts from Data Carpentry,
Library Carpentry, and Software Carpentry, and
publishes updates of general interest to the community.
</p>
{% include list-posts entries='10' %}
</div>
</div>

0 comments on commit 860ddbb

Please sign in to comment.