Created own theme
This commit is contained in:
15
_includes/structure/footer.html
Normal file
15
_includes/structure/footer.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<footer class="site-footer">
|
||||
<div class="container">
|
||||
<p style="font-size: 14px; font-weight: 600">
|
||||
{% for foots in site.data.footer %}
|
||||
<a href="{{ foots.href }}">{{ foots.title }}</a>
|
||||
{% endfor %}
|
||||
</p>
|
||||
<p style="margin-top: 15px; font-size: 14px;">
|
||||
© {{ site.time | date: '%Y' }}.
|
||||
<a href="{{ "/" | relative_url }}">{{ site.author.name }}</a>.
|
||||
Kildekode på <a href="{{ site.site-source }}">git</a>.
|
||||
Laget med <a href="https://jekyllrb.com/">Jekyll</a>, <a href="https://getbootstrap.com/">Bootstrap</a> og masse frustrasjon.
|
||||
</p>
|
||||
</div>
|
||||
</footer>
|
||||
@@ -1,22 +1,46 @@
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
<meta name="HandheldFriendly" content="True">
|
||||
<meta name="MobileOptimized" content="320">
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>
|
||||
{% if page.title %}
|
||||
{{ page.title }} · {{ site.title }}
|
||||
{% else %}
|
||||
{{ site.title }}
|
||||
{% endif %}
|
||||
</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<script src="{{ "/theme/js/jquery-3.4.1.min.js" | relative_url}}"></script>
|
||||
<script src="{{ "/theme/js/bootstrap-4.4.1.bundle.min.js" | relative_url }}"></script>
|
||||
<!--Stylesheets-->
|
||||
<link rel="stylesheet" href="{{ "/assets/css/bootstrap/bootstrap.min.css" | relative_url }}">
|
||||
<link rel="stylesheet" href="{{ "/assets/css/bootstrap/bootstrap-toc.min.css" | relative_url }}"/>
|
||||
|
||||
<link rel="stylesheet" href="{{ "/theme/css/site.css" | relative_url }}">
|
||||
<link rel="stylesheet" href="{{ "/theme/css/syntax.css" | relative_url }}">
|
||||
{% if page.layout == "layouts/home" %}
|
||||
<link rel="stylesheet" href="{{ "/assets/css/home.css" | relative_url }}"/>
|
||||
{% elsif page.layout == "layouts/page" %}
|
||||
<link rel="stylesheet" href="{{ "/assets/css/page.css" | relative_url }}"/>
|
||||
{% else %}
|
||||
<link rel="stylesheet" href="{{ "/assets/css/default.css" | relative_url }}"/>
|
||||
{% endif %}
|
||||
|
||||
|
||||
</head>
|
||||
<title>
|
||||
{% if page.title %}
|
||||
{{ page.title }} · {{ site.title }}
|
||||
{% else %}
|
||||
{{ site.title }}
|
||||
{% endif %}
|
||||
</title>
|
||||
|
||||
<!--FontAwesome-->
|
||||
<script src="https://kit.fontawesome.com/fb22317d91.js" crossorigin="anonymous"></script>
|
||||
|
||||
<!--Favicons-->
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ "/assets/favicons/apple-touch-icon.png" | relative_url }}">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ "/assets/favicons/favicon-32x32.png" | relative_url }}">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ "/assets/favicons/favicon-16x16.png" | relative_url }}">
|
||||
<link rel="manifest" href="{{ "/assets/favicons/site.webmanifest" | relative_url }}">
|
||||
<link rel="mask-icon" href="{{ "/assets/favicons/safari-pinned-tab.svg" | relative_url }}" color="#5bbad5">
|
||||
<link rel="shortcut icon" href="{{ "/assets/favicons/favicon.ico" | relative_url }}">
|
||||
<meta name="apple-mobile-web-app-title" content="GLaDOS">
|
||||
<meta name="application-name" content="GLaDOS">
|
||||
<meta name="msapplication-TileColor" content="#da532c">
|
||||
<meta name="msapplication-config" content="{{ "/assets/favicons/browserconfig.xml" | relative_url }}">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
</head>
|
||||
26
_includes/structure/nav.html
Normal file
26
_includes/structure/nav.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark justify-content-between" id="navbarTop">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="{{ '/' | relative_url }}">
|
||||
<img src="{{ "/assets/" | relative_url }}{{ site.logo }}" style="padding-right: 0.1rem; height: 1.875rem; width: 1.875rem;" class="d-inline-block align-top" alt="" loading="lazy">
|
||||
{{ site.title }}
|
||||
</a>
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarMain" aria-controls="navbarMain" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="collapse navbar-collapse" id="navbarMain">
|
||||
<div class="navbar-nav"><!--ml-auto for høyrejustering-->
|
||||
<!--<a class="nav-item nav-link {% if page.url == '/' %}active{% endif %}" href="/">Hjem</a>-->
|
||||
{% for entry in site.data.nav %}
|
||||
<a class="nav-item nav-link {% if page.url contains entry.href and page.url != / %}active{% endif %}" href="{{ entry.href }}">{{ entry.title }}</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="navbar-nav ml-auto">
|
||||
{% for entry in site.data.nav-links %}
|
||||
<a class="nav-item nav-link " href="{{ entry.href }}">
|
||||
<i alt="{{ entry.title }}" style="font-size: 1.2rem;" class="fab {{ entry.logo }}"></i>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user