diff --git a/LICENSE.md b/LICENSE.md index 1587431cdce00d55a4cabf76fa6ae9c2759ccf13..e45096b2723a66e4ed5f1dc7271d46e01562a108 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,5 +1,5 @@ --- -layout: lesson +layout: page title: Licenses --- ### Instructional Material diff --git a/_includes/footer.html b/_includes/footer.html index db00b1b05681ae5b0817c82fb4f2b037a8fe7485..0c661f6fe3fcf8577445e7cecca62563e85490a2 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,6 +1,6 @@ <div class="footer"> - <a class="label swc-blue-bg" href="mailto:admin@software-carpentry.org">Email</a> - <a class="label swc-blue-bg" href="http://github.com/swcarpentry">GitHub</a> + <a class="label swc-blue-bg" href="http://software-carpentry.org">Software Carpentry</a> + <a class="label swc-blue-bg" href="https://github.com/swcarpentry/lesson-template">Source</a> + <a class="label swc-blue-bg" href="mailto:admin@software-carpentry.org">Contact</a> <a class="label swc-blue-bg" href="LICENSE.html">License</a> - <a class="bugreport label swc-blue-bg" href="mailto:admin@software-carpentry.org?subject=bug%20in%20{{page.path}}">Bug Report</a> </div> diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..8551c266dad9c585188ffaeff5ac0d0d9e4b6b4c --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +CommonMark +pandocfilters \ No newline at end of file diff --git a/tools/filters/id4glossary.py b/tools/filters/id4glossary.py index 686cfa1d99f87b93c8a1d2a2ac03c488846dd7c8..0c8e2caf058bcc678d3a398410c9f7716d20414b 100755 --- a/tools/filters/id4glossary.py +++ b/tools/filters/id4glossary.py @@ -24,12 +24,11 @@ def keyword2html(keyword_node): def id4glossary(key, value, format, meta): """Add id to keywords at glossary.""" - if "subtitle" in meta and pf.stringify(meta['subtitle']) == 'Reference': - if key == "DefinitionList": - for definition in value: - definition[0] = keyword2html(definition[0]) - return {"t": key, - "c": value} + if key == "DefinitionList": + for definition in value: + definition[0] = keyword2html(definition[0]) + return {"t": key, + "c": value} if __name__ == '__main__': pf.toJSONFilter(id4glossary)