Add footer

This commit is contained in:
Tom 2023-11-09 15:53:52 +00:00
parent de67b415b4
commit f5ea4500a6
7 changed files with 28 additions and 15 deletions

7
_includes/footer.html Normal file
View File

@ -0,0 +1,7 @@
<footer>
<a href="https://github.com/TomHodson/tomhodson.github.com/blob/main/{{page.path}}?plain=1">
This Page's Source</a>
|
<a href="/credits">
Credits</a>
</footer>

View File

@ -12,13 +12,6 @@
</p>
{% include sidebar.html%}
<p>
<a class = "page-src-link"
href="https://github.com/TomHodson/tomhodson.github.com/blob/main/{{page.path}}?plain=1">
Page Source
</a>
</p>
{{ include.extra }}
<hr>
</header>

View File

@ -8,5 +8,6 @@
<main>
{{ content }}
</main>
{% include footer.html %}
</body>
</html>

View File

@ -27,6 +27,7 @@
{% endif %}
</div>
</main>
{% include footer.html %}
</body>
</html>

18
_sass/footer.scss Normal file
View File

@ -0,0 +1,18 @@
// Padding to keep the keep the content to the right of the header
footer {
max-width: 560px;
margin-left: 240px;
padding-left: 30px;
padding-bottom: 10vh;
display: flex;
flex-direction: row;
justify-content: center;
gap: 0.5em;
a {
text-decoration: none;
}
}

View File

@ -65,10 +65,6 @@ header {
justify-content: right; //Align right
}
}
.page-src-link {
font-size: 0.8em;
}
}
@media

View File

@ -3,6 +3,7 @@
@import "nav"; //the side navbar
@import "header"; // the header
@import "footer"; // the footer
@import "article"; // individual blog articles
@import "projects"; //Styles for the projects page
@import "cv"; // the CV page
@ -45,11 +46,7 @@ main {
max-width: 560px;
margin-left: 240px;
padding-left: 30px;
padding-top: 10vh;
padding-bottom: 10vh;
min-height: 100vh;
display: flex;