diff --git a/_assets/css/styles.css b/_assets/css/styles.css index 08c8178..91cd24c 100644 --- a/_assets/css/styles.css +++ b/_assets/css/styles.css @@ -238,6 +238,14 @@ table { td { padding-right: 1em; } +.fixed-table { + table-layout: fixed; + width: 100%; + + border-collapse: separate; + border-spacing: 1em 0; + margin-bottom: 1.25em; +} /* a: for links to other pages, websites, etc. */ a { diff --git a/_layouts/book.html b/_layouts/book.html new file mode 100644 index 0000000..bbedf3d --- /dev/null +++ b/_layouts/book.html @@ -0,0 +1,49 @@ +--- +layout: default +katex: true +--- + +

{{ page.book_name }}

+

+ {{ page.author }} +

+
+ +{{content}} + + + + + + + + + + + + {% assign this_path = page.path | replace: 'index.md', 'solutions' %} + {% assign index = 1 %} + {% for solution in site.pages %} + + {% assign that_path_parts = solution.path | split: '/' %} + {% assign new_size = that_path_parts.size | minus: 1 %} + {% assign that_path = that_path_parts | slice: 0, new_size | join: '/' %} + {% if that_path == this_path %} + + + + + {% assign index = index | plus: 1 %} + {% endif %} + + {% endfor %} + +
ChapterChapter titleSolutionsLast updated
+ {{ index }} + + {{ solution.chapter_name }} + + [link] + + {{ solution.date | date: '%-d %b %Y' }} +
diff --git a/_layouts/default.html b/_layouts/default.html index 151f90d..5e37b6f 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -46,7 +46,7 @@ {% unless page.hide_nav %}