Skip to content

Commit 9b6dc49

Browse files
committed
Adding licenses to footer and updating templates
1 parent fcab986 commit 9b6dc49

File tree

42 files changed

+346
-179
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+346
-179
lines changed

_template/bibliography.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
{site.head()}
5-
<link href="{page.to_root()}/static/mccole.css" rel="stylesheet" type="text/css">
4+
{site.head("..")}
5+
<link href="../static/mccole.css" rel="stylesheet" type="text/css">
66
<title>{site.title()}: {page.title()}</title>
77
</head>
88
<body>
99
<main>
10-
<p class="home"><a href="{page.to_root()}/">{site.title()}</a></p>
10+
<p class="home"><a href="../">{site.title()}</a></p>
1111
{page.title()}
1212
{site.bibliography()}
13-
{site.foot()}
13+
{site.foot("..")}
1414
</main>
1515
</body>
1616
</html>

_template/foot.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
<footer>
22
<hr/>
3-
Copyright © {site.copyrightyear()}
4-
{site.author()}
5-
&middot;
6-
Powered by <a href="{site.repo()}">{site.tool()}</a>
3+
<p>
4+
Copyright © {site.copyrightyear()} {site.author()}
5+
&nbsp;
6+
<a href="{page.root}/license/"><img class="icon" src="{page.root}/static/cc-by-nc.svg" alt="CC-BY-NC icon"/></a>
7+
<a href="{page.root}/license/"><img class="icon" src="{page.root}/static/hippocratic.svg" alt="Hippocratic License icon"/></a>
8+
<a href="{site.repo()}"><img class="icon" src="{page.root}/static/github.svg" alt="GitHub icon"/></a>
9+
<a href="mailto:{site.email()}"><img class="icon" src="{page.root}/static/email.svg" alt="email icon"/></a>
10+
</p>
711
</footer>

_template/glossary.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
{site.head()}
5-
<link href="{page.to_root()}/static/mccole.css" rel="stylesheet" type="text/css">
4+
{site.head("..")}
5+
<link href="../static/mccole.css" rel="stylesheet" type="text/css">
66
<title>{site.title()}: {page.title()}</title>
77
</head>
88
<body>
99
<main>
10-
<p class="home"><a href="{page.to_root()}/">{site.title()}</a></p>
10+
<p class="home"><a href="../">{site.title()}</a></p>
1111
{page.title()}
1212
{site.glossary()}
13-
{site.foot()}
13+
{site.foot("..")}
1414
</main>
1515
</body>
1616
</html>

_template/head.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<meta charset="UTF-8">
22
<meta name="viewport" content="width=device-width, initial-scale=1">
33
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
4-
<script defer data-domain="stjs.tech" src="https://plausible.io/js/plausible.js"></script>
4+
<script>MathJax = {{tex: {{inlineMath: [["\\\\(", "\\\\)"]]}}, svg: {{fontCache: "global"}}}};</script>
5+
<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>

_template/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
{site.head()}
5-
<link href="{page.to_root()}/static/mccole.css" rel="stylesheet" type="text/css">
4+
{site.head(".")}
5+
<link href="./static/mccole.css" rel="stylesheet" type="text/css">
66
<title>{site.title()}</title>
77
</head>
88
<body>
@@ -13,7 +13,7 @@ <h1>{site.title()}</h1>
1313
<nav>
1414
{site.toc()}
1515
</nav>
16-
{site.foot()}
16+
{site.foot(".")}
1717
</main>
1818
</body>
1919
</html>

_template/links.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
{site.head()}
5-
<link href="{page.to_root()}/static/mccole.css" rel="stylesheet" type="text/css">
4+
{site.head("..")}
5+
<link href="../static/mccole.css" rel="stylesheet" type="text/css">
66
<title>{site.title()}: {page.title()}</title>
77
</head>
88
<body>
99
<main>
10-
<p class="home"><a href="{page.to_root()}/">{site.title()}</a></p>
10+
<p class="home"><a href="../">{site.title()}</a></p>
1111
{page.title()}
1212
{site.links()}
13-
{site.foot()}
13+
{site.foot("..")}
1414
</main>
1515
</body>
1616
</html>

_template/page.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
{site.head()}
5-
<link href="{page.to_root()}/static/mccole.css" rel="stylesheet" type="text/css">
4+
{site.head("..")}
5+
<link href="../static/mccole.css" rel="stylesheet" type="text/css">
66
<title>{site.title()}: {page.title()}</title>
77
</head>
88
<body>
99
<main>
10-
<p class="home"><a href="{page.to_root()}/">{site.title()}</a></p>
10+
<p class="home"><a href="../">{site.title()}</a></p>
1111
{page.title()}
1212
{page.lede()}
1313
<nav>
1414
{page.toc()}
1515
</nav>
1616
{page.keyterms()}
1717
{page.content()}
18-
{site.foot()}
18+
{site.foot("..")}
1919
</main>
2020
</body>
2121
</html>

_template/titled.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
{site.head()}
5-
<link href="{page.to_root()}/static/mccole.css" rel="stylesheet" type="text/css">
4+
{site.head("..")}
5+
<link href="../static/mccole.css" rel="stylesheet" type="text/css">
66
<title>{site.title()}: {page.title()}</title>
77
</head>
88
<body>
99
<main>
10-
<p class="home"><a href="{page.to_root()}/">{site.title()}</a></p>
10+
<p class="home"><a href="../">{site.title()}</a></p>
1111
{page.content()}
12-
{site.foot()}
12+
{site.foot("..")}
1313
</main>
1414
</body>
1515
</html>

docs/async-programming/index.html

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
7-
<script defer data-domain="stjs.tech" src="https://plausible.io/js/plausible.js"></script>
7+
<script>MathJax = {tex: {inlineMath: [["\\(", "\\)"]]}, svg: {fontCache: "global"}};</script>
8+
<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>
89

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

10881089
<footer>
10891090
<hr/>
1090-
Copyright © 2022
1091-
Greg Wilson
1092-
&middot;
1093-
Powered by <a href="https://github.com/gvwilson/mccole">McCole</a>
1091+
<p>
1092+
Copyright © 2022 Greg Wilson
1093+
&nbsp;
1094+
<a href="../license/"><img class="icon" src="../static/cc-by-nc.svg" alt="CC-BY-NC icon"/></a>
1095+
<a href="../license/"><img class="icon" src="../static/hippocratic.svg" alt="Hippocratic License icon"/></a>
1096+
<a href="https://github.com/software-tools-books/stjs/"><img class="icon" src="../static/github.svg" alt="GitHub icon"/></a>
1097+
<a href="mailto:[email protected]"><img class="icon" src="../static/email.svg" alt="email icon"/></a>
1098+
</p>
10941099
</footer>
10951100

10961101
</main>

docs/authors/index.html

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">
7-
<script defer data-domain="stjs.tech" src="https://plausible.io/js/plausible.js"></script>
7+
<script>MathJax = {tex: {inlineMath: [["\\(", "\\)"]]}, svg: {fontCache: "global"}};</script>
8+
<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js"></script>
89

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

3132
<footer>
3233
<hr/>
33-
Copyright © 2022
34-
Greg Wilson
35-
&middot;
36-
Powered by <a href="https://github.com/gvwilson/mccole">McCole</a>
34+
<p>
35+
Copyright © 2022 Greg Wilson
36+
&nbsp;
37+
<a href="../license/"><img class="icon" src="../static/cc-by-nc.svg" alt="CC-BY-NC icon"/></a>
38+
<a href="../license/"><img class="icon" src="../static/hippocratic.svg" alt="Hippocratic License icon"/></a>
39+
<a href="https://github.com/software-tools-books/stjs/"><img class="icon" src="../static/github.svg" alt="GitHub icon"/></a>
40+
<a href="mailto:[email protected]"><img class="icon" src="../static/email.svg" alt="email icon"/></a>
41+
</p>
3742
</footer>
3843

3944
</main>

0 commit comments

Comments
 (0)