Jekyll2020-08-08T09:57:53+00:00/feed.xmlMatthew HolfordMatthew Holford | medievalist
Teaching the Codex: reading a manuscript description2017-04-09T12:20:45+00:002017-04-09T12:20:45+00:00/2017/04/09/teaching-codex<p>I wrote a post for the excellent <a href="https://teachingthecodex.wordpress.com/">Teaching the Codex</a> project, which among other things promotes resources for teaching codicology and palaeography - basically, the study of manuscripts and handwriting. My post is a short introduction to the catalogues in which manuscripts are described, and the conventions of manuscript description. It aims to make these sometimes dense and forbidding descriptions a bit more approachable. You can read it <a href="https://teachingthecodex.wordpress.com/2017/04/08/reading-a-manuscript-description/">here</a>.</p>I wrote a post for the excellent Teaching the Codex project, which among other things promotes resources for teaching codicology and palaeography - basically, the study of manuscripts and handwriting. My post is a short introduction to the catalogues in which manuscripts are described, and the conventions of manuscript description. It aims to make these sometimes dense and forbidding descriptions a bit more approachable. You can read it here.Removing pages from the header of your Jekyll site2017-04-08T12:20:45+00:002017-04-08T12:20:45+00:00/2017/04/08/removing-pages-from-header<p>If you have more than a couple of pages on your Jekyll site, you may not want them all appearing in your page headers (which is the default). Fortunately
<a href="http://stackoverflow.com/questions/25452429/excluding-page-from-jekyll-navigation-bar">Stack Overflow</a> has some answers. The simplest to my mind is the last. It allows you to use a simple yaml tag in the front matter of your page to show if you want the page excluded from the header:</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>---
exclude: true
---
</code></pre></div></div>
<p>Set it up by creating the file _includes/header.html. (You may need to create the directory _includes first.)
(Since I am still using the default minima theme, I wanted to use the header from that theme which is at <a href="https://github.com/jekyll/minima/blob/master/_includes/header.html">GitHub</a>.) Then insert the relevant templating logic.</p>
<figure class="highlight"><pre><code class="language-html" data-lang="html"> <span class="nt"><div</span> <span class="na">class=</span><span class="s">"trigger"</span><span class="nt">></span>
{% for my_page in site.pages %}
{% unless my_page.exclude %}
{% if my_page.title %}
<span class="nt"><a</span> <span class="na">class=</span><span class="s">"page-link"</span> <span class="na">href=</span><span class="s">"{{ my_page.url | relative_url }}"</span><span class="nt">></span>{{ my_page.title | escape }}<span class="nt"></a></span>
{% endif %}
{% endunless %}
{% endfor %}
<span class="nt"></div></span></code></pre></figure>If you have more than a couple of pages on your Jekyll site, you may not want them all appearing in your page headers (which is the default). Fortunately Stack Overflow has some answers. The simplest to my mind is the last. It allows you to use a simple yaml tag in the front matter of your page to show if you want the page excluded from the header: --- exclude: true ---Hello world!2017-03-09T13:59:45+00:002017-03-09T13:59:45+00:00/jekyll/update/2017/03/09/welcome-to-jekyll<p>This site is built with <a href="https://jekyllrb.com/">Jekyll</a> and hosted on <a href="https://pages.github.com/">GitHub Pages</a>. Jekyll isn’t officially supported on Windows, but it wasn’t too tricky to do. There are some good instructions by Anna Debenham <a href="https://24ways.org/2013/get-started-with-github-pages/">here</a> and by Amanda Visconti at the <a href="http://programminghistorian.org/lessons/building-static-sites-with-jekyll-github-pages">Programming Historian</a> site.</p>This site is built with Jekyll and hosted on GitHub Pages. Jekyll isn’t officially supported on Windows, but it wasn’t too tricky to do. There are some good instructions by Anna Debenham here and by Amanda Visconti at the Programming Historian site.