Skip to content

Commit

Permalink
Footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Janiczek committed Jun 27, 2023
1 parent a5fe2f1 commit d6f9999
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 20 deletions.
13 changes: 1 addition & 12 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
title: "Martin Janiczek"
author: "Martin Janiczek"
description: "" # This will show up in places like twitter, linkedin, etc, if you share your sites url as a post.
description: ""

# Email / Social media user names used by the minima theme:
# All of these are optional and can be removed or commented out
email: "[email protected]"
twitter_username: "janiczek"
github_username: "janiczek"
linkedin_username: "martin-janiczek"
youtube_username: "MartinJaniczek"

#########################################################################################
######### Nothing below needs to be changed (unless you know what you're doing) #########
#########################################################################################
remote_theme: pages-themes/[email protected]

disqus:
shortname: janiczek

rss: rss

kramdown:
Expand Down
9 changes: 9 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<div class="footer">
<div>
<a href="{{ 'index.html' | absolute_url }}" title="Blog Archive">Archive</a>
</div>
<div>
<a href="https://twitter.com/{{ site.twitter_username }}" title="Twitter">Twitter</a>
<a href="https://github.com/{{ site.github_username }}" title="Github">Github</a>
</div>
</div>
2 changes: 2 additions & 0 deletions _includes/head-custom.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<link href="/assets/css/override.css" rel="stylesheet" type="text/css">

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,700;1,8..60,400;1,8..60,700&display=swap" rel="stylesheet">
Expand Down
8 changes: 3 additions & 5 deletions _includes/navlinks.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,17 @@
<div class="post_navi-arrow">&lt;</div><div class="post_navi-label">Previous Post</div><div><span class="post_navi-title">{{ page.previous.title }}</span></div>
</a>
{%- else -%}
<span class="post_navi-item nav_prev"></span>
<div class="post_navi-item nav_prev"></div>
{%- endif -%}

{%- if page.next.url -%}
<a class="post_navi-item nav_next" href="{{ page.next.url }}" title="{{ page.next.title }}">
<div class="post_navi-arrow">&gt;</div><div class="post_navi-label">Next Post</div><div><span class="post_navi-title">{{ page.next.title }}</span></div>
</a>
{%- else -%}
<span class="post_navi-item nav_next"></span>
<div class="post_navi-item nav_next"></div>
{%- endif -%}

</div>

<hr>

<div class="archive-link"><a href="{{ 'index.html' | absolute_url }}" title="Blog Archive">Archive</a></div>
{% include footer.html %}
2 changes: 2 additions & 0 deletions _layouts/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ <h3>{{ tag[0] }}</h3>
{% endfor %}
</ul>
{% endfor %}

{% include footer.html %}
29 changes: 29 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: "en-US" }}">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

{% seo %}
<link rel="stylesheet" href="{{ "/assets/css/style.css?v=" | append: site.github.build_revision | relative_url }}">
{% include head-custom.html %}
</head>
<body>
<div class="container-lg px-3 my-5 markdown-body">
{% if site.title and site.title != page.title %}
<h1><a href="{{ "/" | absolute_url }}">{{ site.title }}</a></h1>
{% endif %}

{{ content }}

{% if site.github.private != true and site.github.license %}
<div class="footer border-top border-gray-light mt-5 pt-3 text-right text-gray">
This site is open source. {% github_edit_link "Improve this page" %}.
</div>
{% endif %}
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js" integrity="sha256-lZaRhKri35AyJSypXXs4o6OPFTbTmUoltBbDCbdzegg=" crossorigin="anonymous"></script>
<script>anchors.add();</script>
</body>
</html>
1 change: 0 additions & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
layout: page
---
<link href="/assets/css/override.css" rel="stylesheet" type="text/css">
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
<header class="post-header">
<h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}</h1>
Expand Down
15 changes: 13 additions & 2 deletions assets/css/override.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ hr {
.post_navi .post_navi-item {
padding: 0 2.2em;
width: 50%;
min-width: 50%;
position: relative;
}

Expand Down Expand Up @@ -53,7 +54,17 @@ hr {
color: initial !important;
}

.archive-link {
.footer {
display: flex;
flex-direction: row;
justify-content: space-between;
border-top: 1px solid #eaecef;
padding-top: 20px;
margin-top: 20px;
text-align: center;
}
.footer div {
display: flex;
flex-direction: row;
gap: 20px;
}

0 comments on commit d6f9999

Please sign in to comment.