Skip to content

Commit

Permalink
Adding licenses to footer and updating templates
Browse files Browse the repository at this point in the history
  • Loading branch information
gvwilson committed Jan 30, 2022
1 parent fcab986 commit 239ac0b
Show file tree
Hide file tree
Showing 42 changed files with 346 additions and 149 deletions.
8 changes: 4 additions & 4 deletions _template/bibliography.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
{site.head()}
<link href="{page.to_root()}/static/mccole.css" rel="stylesheet" type="text/css">
{site.head("..")}
<link href="../static/mccole.css" rel="stylesheet" type="text/css">
<title>{site.title()}: {page.title()}</title>
</head>
<body>
<main>
<p class="home"><a href="{page.to_root()}/">{site.title()}</a></p>
<p class="home"><a href="../">{site.title()}</a></p>
{page.title()}
{site.bibliography()}
{site.foot()}
{site.foot("..")}
</main>
</body>
</html>
12 changes: 8 additions & 4 deletions _template/foot.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<footer>
<hr/>
Copyright © {site.copyrightyear()}
{site.author()}
&middot;
Powered by <a href="{site.repo()}">{site.tool()}</a>
<p>
Copyright © {site.copyrightyear()} {site.author()}
&nbsp;
<a href="{page.root}/license/"><img class="icon" src="{page.root}/static/cc-by-nc.svg" alt="CC-BY-NC icon"/></a>
<a href="{page.root}/license/"><img class="icon" src="{page.root}/static/hippocratic.svg" alt="Hippocratic License icon"/></a>
<a href="{site.repo()}"><img class="icon" src="{page.root}/static/github.svg" alt="GitHub icon"/></a>
<a href="mailto:{site.email()}"><img class="icon" src="{page.root}/static/email.svg" alt="email icon"/></a>
</p>
</footer>
8 changes: 4 additions & 4 deletions _template/glossary.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
{site.head()}
<link href="{page.to_root()}/static/mccole.css" rel="stylesheet" type="text/css">
{site.head("..")}
<link href="../static/mccole.css" rel="stylesheet" type="text/css">
<title>{site.title()}: {page.title()}</title>
</head>
<body>
<main>
<p class="home"><a href="{page.to_root()}/">{site.title()}</a></p>
<p class="home"><a href="../">{site.title()}</a></p>
{page.title()}
{site.glossary()}
{site.foot()}
{site.foot("..")}
</main>
</body>
</html>
2 changes: 2 additions & 0 deletions _template/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<script defer data-domain="stjs.tech" src="https://plausible.io/js/plausible.js"></script>
<script>MathJax = {{tex: {{inlineMath: [["\\\\(", "\\\\)"]]}}, svg: {{fontCache: "global"}}}};</script>
<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>
6 changes: 3 additions & 3 deletions _template/index.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html lang="en">
<head>
{site.head()}
<link href="{page.to_root()}/static/mccole.css" rel="stylesheet" type="text/css">
{site.head(".")}
<link href="./static/mccole.css" rel="stylesheet" type="text/css">
<title>{site.title()}</title>
</head>
<body>
Expand All @@ -13,7 +13,7 @@ <h1>{site.title()}</h1>
<nav>
{site.toc()}
</nav>
{site.foot()}
{site.foot(".")}
</main>
</body>
</html>
8 changes: 4 additions & 4 deletions _template/links.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
{site.head()}
<link href="{page.to_root()}/static/mccole.css" rel="stylesheet" type="text/css">
{site.head("..")}
<link href="../static/mccole.css" rel="stylesheet" type="text/css">
<title>{site.title()}: {page.title()}</title>
</head>
<body>
<main>
<p class="home"><a href="{page.to_root()}/">{site.title()}</a></p>
<p class="home"><a href="../">{site.title()}</a></p>
{page.title()}
{site.links()}
{site.foot()}
{site.foot("..")}
</main>
</body>
</html>
8 changes: 4 additions & 4 deletions _template/page.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
{site.head()}
<link href="{page.to_root()}/static/mccole.css" rel="stylesheet" type="text/css">
{site.head("..")}
<link href="../static/mccole.css" rel="stylesheet" type="text/css">
<title>{site.title()}: {page.title()}</title>
</head>
<body>
<main>
<p class="home"><a href="{page.to_root()}/">{site.title()}</a></p>
<p class="home"><a href="../">{site.title()}</a></p>
{page.title()}
{page.lede()}
<nav>
{page.toc()}
</nav>
{page.keyterms()}
{page.content()}
{site.foot()}
{site.foot("..")}
</main>
</body>
</html>
8 changes: 4 additions & 4 deletions _template/titled.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
{site.head()}
<link href="{page.to_root()}/static/mccole.css" rel="stylesheet" type="text/css">
{site.head("..")}
<link href="../static/mccole.css" rel="stylesheet" type="text/css">
<title>{site.title()}: {page.title()}</title>
</head>
<body>
<main>
<p class="home"><a href="{page.to_root()}/">{site.title()}</a></p>
<p class="home"><a href="../">{site.title()}</a></p>
{page.content()}
{site.foot()}
{site.foot("..")}
</main>
</body>
</html>
14 changes: 10 additions & 4 deletions docs/async-programming/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<script defer data-domain="stjs.tech" src="https://plausible.io/js/plausible.js"></script>
<script>MathJax = {tex: {inlineMath: [["\\(", "\\)"]]}, svg: {fontCache: "global"}};</script>
<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>

<link href="../static/mccole.css" rel="stylesheet" type="text/css">
<title>Software Design by Example: <h1 id="async-programming">Asynchronous Programming</h1></title>
Expand Down Expand Up @@ -1087,10 +1089,14 @@ <h3 class="exercise">Any and all</h3>

<footer>
<hr/>
Copyright © 2022
Greg Wilson
&middot;
Powered by <a href="https://github.com/gvwilson/mccole">McCole</a>
<p>
Copyright © 2022 Greg Wilson
&nbsp;
<a href="../license/"><img class="icon" src="../static/cc-by-nc.svg" alt="CC-BY-NC icon"/></a>
<a href="../license/"><img class="icon" src="../static/hippocratic.svg" alt="Hippocratic License icon"/></a>
<a href="https://github.com/software-tools-books/stjs/"><img class="icon" src="../static/github.svg" alt="GitHub icon"/></a>
<a href="mailto:gvwilson@third-bit.com"><img class="icon" src="../static/email.svg" alt="email icon"/></a>
</p>
</footer>

</main>
Expand Down
14 changes: 10 additions & 4 deletions docs/authors/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<script defer data-domain="stjs.tech" src="https://plausible.io/js/plausible.js"></script>
<script>MathJax = {tex: {inlineMath: [["\\(", "\\)"]]}, svg: {fontCache: "global"}};</script>
<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>

<link href="../static/mccole.css" rel="stylesheet" type="text/css">
<title>Software Design by Example: <h1 id="authors">Authors</h1></title>
Expand All @@ -30,10 +32,14 @@ <h1 id="authors">Authors</h1>

<footer>
<hr/>
Copyright © 2022
Greg Wilson
&middot;
Powered by <a href="https://github.com/gvwilson/mccole">McCole</a>
<p>
Copyright © 2022 Greg Wilson
&nbsp;
<a href="../license/"><img class="icon" src="../static/cc-by-nc.svg" alt="CC-BY-NC icon"/></a>
<a href="../license/"><img class="icon" src="../static/hippocratic.svg" alt="Hippocratic License icon"/></a>
<a href="https://github.com/software-tools-books/stjs/"><img class="icon" src="../static/github.svg" alt="GitHub icon"/></a>
<a href="mailto:gvwilson@third-bit.com"><img class="icon" src="../static/email.svg" alt="email icon"/></a>
</p>
</footer>

</main>
Expand Down
14 changes: 10 additions & 4 deletions docs/bibliography/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<script defer data-domain="stjs.tech" src="https://plausible.io/js/plausible.js"></script>
<script>MathJax = {tex: {inlineMath: [["\\(", "\\)"]]}, svg: {fontCache: "global"}};</script>
<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>

<link href="../static/mccole.css" rel="stylesheet" type="text/css">
<title>Software Design by Example: <h1 id="bibliography">Bibliography</h1></title>
Expand Down Expand Up @@ -49,10 +51,14 @@ <h1 id="bibliography">Bibliography</h1>
</div>
<footer>
<hr/>
Copyright © 2022
Greg Wilson
&middot;
Powered by <a href="https://github.com/gvwilson/mccole">McCole</a>
<p>
Copyright © 2022 Greg Wilson
&nbsp;
<a href="../license/"><img class="icon" src="../static/cc-by-nc.svg" alt="CC-BY-NC icon"/></a>
<a href="../license/"><img class="icon" src="../static/hippocratic.svg" alt="Hippocratic License icon"/></a>
<a href="https://github.com/software-tools-books/stjs/"><img class="icon" src="../static/github.svg" alt="GitHub icon"/></a>
<a href="mailto:gvwilson@third-bit.com"><img class="icon" src="../static/email.svg" alt="email icon"/></a>
</p>
</footer>

</main>
Expand Down
14 changes: 10 additions & 4 deletions docs/build-manager/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<script defer data-domain="stjs.tech" src="https://plausible.io/js/plausible.js"></script>
<script>MathJax = {tex: {inlineMath: [["\\(", "\\)"]]}, svg: {fontCache: "global"}};</script>
<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>

<link href="../static/mccole.css" rel="stylesheet" type="text/css">
<title>Software Design by Example: <h1 id="build-manager">Build Manager</h1></title>
Expand Down Expand Up @@ -1001,10 +1003,14 @@ <h3 class="exercise">Auxiliary functions</h3>

<footer>
<hr/>
Copyright © 2022
Greg Wilson
&middot;
Powered by <a href="https://github.com/gvwilson/mccole">McCole</a>
<p>
Copyright © 2022 Greg Wilson
&nbsp;
<a href="../license/"><img class="icon" src="../static/cc-by-nc.svg" alt="CC-BY-NC icon"/></a>
<a href="../license/"><img class="icon" src="../static/hippocratic.svg" alt="Hippocratic License icon"/></a>
<a href="https://github.com/software-tools-books/stjs/"><img class="icon" src="../static/github.svg" alt="GitHub icon"/></a>
<a href="mailto:gvwilson@third-bit.com"><img class="icon" src="../static/email.svg" alt="email icon"/></a>
</p>
</footer>

</main>
Expand Down
14 changes: 10 additions & 4 deletions docs/code-generator/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<script defer data-domain="stjs.tech" src="https://plausible.io/js/plausible.js"></script>
<script>MathJax = {tex: {inlineMath: [["\\(", "\\)"]]}, svg: {fontCache: "global"}};</script>
<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>

<link href="../static/mccole.css" rel="stylesheet" type="text/css">
<title>Software Design by Example: <h1 id="code-generator">Code Generator</h1></title>
Expand Down Expand Up @@ -618,10 +620,14 @@ <h3 class="exercise">Removing empty constructors</h3>

<footer>
<hr/>
Copyright © 2022
Greg Wilson
&middot;
Powered by <a href="https://github.com/gvwilson/mccole">McCole</a>
<p>
Copyright © 2022 Greg Wilson
&nbsp;
<a href="../license/"><img class="icon" src="../static/cc-by-nc.svg" alt="CC-BY-NC icon"/></a>
<a href="../license/"><img class="icon" src="../static/hippocratic.svg" alt="Hippocratic License icon"/></a>
<a href="https://github.com/software-tools-books/stjs/"><img class="icon" src="../static/github.svg" alt="GitHub icon"/></a>
<a href="mailto:gvwilson@third-bit.com"><img class="icon" src="../static/email.svg" alt="email icon"/></a>
</p>
</footer>

</main>
Expand Down
14 changes: 10 additions & 4 deletions docs/conclusion/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<script defer data-domain="stjs.tech" src="https://plausible.io/js/plausible.js"></script>
<script>MathJax = {tex: {inlineMath: [["\\(", "\\)"]]}, svg: {fontCache: "global"}};</script>
<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>

<link href="../static/mccole.css" rel="stylesheet" type="text/css">
<title>Software Design by Example: <h1 id="conclusion">Conclusion</h1></title>
Expand Down Expand Up @@ -39,10 +41,14 @@ <h1 id="conclusion">Conclusion</h1>

<footer>
<hr/>
Copyright © 2022
Greg Wilson
&middot;
Powered by <a href="https://github.com/gvwilson/mccole">McCole</a>
<p>
Copyright © 2022 Greg Wilson
&nbsp;
<a href="../license/"><img class="icon" src="../static/cc-by-nc.svg" alt="CC-BY-NC icon"/></a>
<a href="../license/"><img class="icon" src="../static/hippocratic.svg" alt="Hippocratic License icon"/></a>
<a href="https://github.com/software-tools-books/stjs/"><img class="icon" src="../static/github.svg" alt="GitHub icon"/></a>
<a href="mailto:gvwilson@third-bit.com"><img class="icon" src="../static/email.svg" alt="email icon"/></a>
</p>
</footer>

</main>
Expand Down
14 changes: 10 additions & 4 deletions docs/conduct/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<script defer data-domain="stjs.tech" src="https://plausible.io/js/plausible.js"></script>
<script>MathJax = {tex: {inlineMath: [["\\(", "\\)"]]}, svg: {fontCache: "global"}};</script>
<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>

<link href="../static/mccole.css" rel="stylesheet" type="text/css">
<title>Software Design by Example: <h1 id="conduct">Code of Conduct</h1></title>
Expand Down Expand Up @@ -74,10 +76,14 @@ <h2>Attribution</h2>

<footer>
<hr/>
Copyright © 2022
Greg Wilson
&middot;
Powered by <a href="https://github.com/gvwilson/mccole">McCole</a>
<p>
Copyright © 2022 Greg Wilson
&nbsp;
<a href="../license/"><img class="icon" src="../static/cc-by-nc.svg" alt="CC-BY-NC icon"/></a>
<a href="../license/"><img class="icon" src="../static/hippocratic.svg" alt="Hippocratic License icon"/></a>
<a href="https://github.com/software-tools-books/stjs/"><img class="icon" src="../static/github.svg" alt="GitHub icon"/></a>
<a href="mailto:gvwilson@third-bit.com"><img class="icon" src="../static/email.svg" alt="email icon"/></a>
</p>
</footer>

</main>
Expand Down
14 changes: 10 additions & 4 deletions docs/contributing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
<script defer data-domain="stjs.tech" src="https://plausible.io/js/plausible.js"></script>
<script>MathJax = {tex: {inlineMath: [["\\(", "\\)"]]}, svg: {fontCache: "global"}};</script>
<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>

<link href="../static/mccole.css" rel="stylesheet" type="text/css">
<title>Software Design by Example: <h1 id="contributing">Contributing</h1></title>
Expand Down Expand Up @@ -192,10 +194,14 @@ <h2>Formatting</h2>

<footer>
<hr/>
Copyright © 2022
Greg Wilson
&middot;
Powered by <a href="https://github.com/gvwilson/mccole">McCole</a>
<p>
Copyright © 2022 Greg Wilson
&nbsp;
<a href="../license/"><img class="icon" src="../static/cc-by-nc.svg" alt="CC-BY-NC icon"/></a>
<a href="../license/"><img class="icon" src="../static/hippocratic.svg" alt="Hippocratic License icon"/></a>
<a href="https://github.com/software-tools-books/stjs/"><img class="icon" src="../static/github.svg" alt="GitHub icon"/></a>
<a href="mailto:gvwilson@third-bit.com"><img class="icon" src="../static/email.svg" alt="email icon"/></a>
</p>
</footer>

</main>
Expand Down
Loading

0 comments on commit 239ac0b

Please sign in to comment.