Enable page-specific css

This commit is contained in:
Adam Schmideg 2019-01-16 17:38:35 +01:00
parent 589e460678
commit b68530f739
3 changed files with 31 additions and 24 deletions

27
_includes/head.html Normal file
View file

@ -0,0 +1,27 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Go Ethereum</title>
<link rel="icon" type="image/png" href="./static/images/favicon.png" />
<link href="./static/styles/bootstrap.min.css" rel="stylesheet" />
<link href="./static/styles/flatly.min.css" rel="stylesheet" />
<link href="./static/styles/font-awesome.min.css" rel="stylesheet" />
<link href="./static/styles/custom/common.css" rel="stylesheet" />
{% if page.css %}
{% for css in page.css %}
<link href="{{ css }}" rel="stylesheet" />
{% endfor %}
{% endif %}
<script src="./static/scripts/jquery.min.js"></script>
<script src="./static/scripts/bootstrap.min.js"></script>
<script src="./static/scripts/moment.min.js"></script>
<script src="./static/scripts/marked.min.js"></script>
<script src="./static/scripts/emojify.min.js"></script>
<script src="../static/scripts/custom/polyfills.js"></script>
</head>

View file

@ -1,28 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> {% include head.html %}
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Go Ethereum</title>
<link rel="icon" type="image/png" href="./static/images/favicon.png" />
<link href="./static/styles/bootstrap.min.css" rel="stylesheet" />
<link href="./static/styles/flatly.min.css" rel="stylesheet" />
<link href="./static/styles/font-awesome.min.css" rel="stylesheet" />
<link href="./static/styles/custom/common.css" rel="stylesheet" />
<link href="./static/styles/custom/home.css" rel="stylesheet" />
<script src="./static/scripts/jquery.min.js"></script>
<script src="./static/scripts/bootstrap.min.js"></script>
<script src="./static/scripts/moment.min.js"></script>
<script src="./static/scripts/marked.min.js"></script>
<script src="./static/scripts/emojify.min.js"></script>
<script src="../static/scripts/custom/polyfills.js"></script>
</head>
<body> <body>
<nav class="navbar navbar-default navbar-fixed-top"> <nav class="navbar navbar-default navbar-fixed-top">
@ -46,7 +24,7 @@
</div> </div>
</nav> </nav>
{{ page.content }} {{ content }}
<hr/> <hr/>
<footer> <footer>
<p>&copy; 2013-2019. The go-ethereum Authors.</p> <p>&copy; 2013-2019. The go-ethereum Authors.</p>

View file

@ -1,5 +1,7 @@
--- ---
layout: default layout: default
css:
- ./static/styles/custom/home.css
--- ---
<div class="jumbotron"> <div class="jumbotron">
<div class="container mascot"> <div class="container mascot">