Theme Changes

Mathjax

Mathjax

The relearn theme doesn’t natively support mathjax. One fix that works is to add the script to a file in /layouts/partials/. I added it to /layouts/partials/menu-footer.html.

<script src="//yihui.org/js/math-code.js"></script>
<script async
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>

Remove old menus

Moving original content

inside of /content/ a new folder is created called themeinfo. Inside of that, a copy of basics, cont, more, and shortcodes is made as well as a new _index.en.md.

The file /content/_index.en.md needs to be modified so it refers to all the shortcodes now in themeinfo. Do a search replace of

%relref "

to

%relref "themeinfo/

After that, in each of the folders first mentioned, edit the corresponding _index.en.md and add

hidden: true

into the preamble bit. for example

---
chapter: true
title: Basics
weight: 1
hidden: true
---

Remember to do this for all four folders.

require(blogdown)
stop_server();build_site();serve_site()
#if not already running
hugo server