style
This commit is contained in:
parent
2ffeb6be03
commit
e3bcc4e49b
5 changed files with 149 additions and 30 deletions
77
layout/landing.html
Normal file
77
layout/landing.html
Normal file
|
@ -0,0 +1,77 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>{{ title }} - {{ subtitle }}</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
|
<link rel="stylesheet" type="text/css" href="{{ base_path }}/css/pure/pure-min.css">
|
||||||
|
<link rel="stylesheet" type="text/css" href="{{ base_path }}/css/style.css">
|
||||||
|
|
||||||
|
<!--[if lte IE 8]>
|
||||||
|
<link rel="stylesheet" href="{{ base_path }}/css/pure/grids-responsive-old-ie-min.css">
|
||||||
|
<![endif]-->
|
||||||
|
<!--[if gt IE 8]><!-->
|
||||||
|
<link rel="stylesheet" href="{{ base_path }}/css/pure/grids-responsive-min.css">
|
||||||
|
<!--<![endif]-->
|
||||||
|
|
||||||
|
<!-- favicon -->
|
||||||
|
<link rel="icon" type="image/png" href="/logos/logo@16px.png" sizes="16x16">
|
||||||
|
<link rel="apple-touch-icon" sizes="16x16" href="/logos/logo@16px.png">
|
||||||
|
<link rel="icon" type="image/png" href="/logos/logo@32px.png" sizes="32x32">
|
||||||
|
<link rel="apple-touch-icon" sizes="32x32" href="/logos/logo@32px.png">
|
||||||
|
<link rel="icon" type="image/png" href="/logos/logo@96px.png" sizes="96x96">
|
||||||
|
<link rel="apple-touch-icon" sizes="96x96" href="/logos/logo@96px.png">
|
||||||
|
<link rel="icon" type="image/png" href="/logos/logo@120px.png" sizes="120x120">
|
||||||
|
<link rel="apple-touch-icon" sizes="120x120" href="/logos/logo@120px.png">
|
||||||
|
<link rel="icon" type="image/png" href="/logos/logo@144px.png" sizes="144x144">
|
||||||
|
<link rel="apple-touch-icon" sizes="144x144" href="/logos/logo@144px.png">
|
||||||
|
<link rel="shortcut icon" href="/logos/logo@32px.png">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body id="{{ slug }}">
|
||||||
|
|
||||||
|
<div class="pure-g">
|
||||||
|
<div class="pure-u-1-12"></div>
|
||||||
|
<div class="pure-u-1-6">
|
||||||
|
<img src="/logos/logo@96px.png"></img>
|
||||||
|
</div>
|
||||||
|
<div class="pure-u-2-3">
|
||||||
|
<div id="menu-blog">
|
||||||
|
<a href="/">Blog</a>
|
||||||
|
<a href="#">Archives</a>
|
||||||
|
<a href="#">Recherche</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pure-u-1-12"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pure-g banner">
|
||||||
|
<div class="pure-u-1">
|
||||||
|
<h1>{{ title }}</h1>
|
||||||
|
<h2>{{ subtitle }}</h2>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="pure-g">
|
||||||
|
<div class="pure-u-1-4"></div>
|
||||||
|
<div class="pure-u-1-2">{{ content }}</div>
|
||||||
|
<div class="pure-u-1-4"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<section>
|
||||||
|
<p>
|
||||||
|
<a href="https://creativecommons.org/licenses/by-nc-sa/3.0/fr/"><img src="/license.png"></a>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<a href="https://github.com/kianby/blog">Makesite.py</a>
|
||||||
|
<a href="https://github.com/kianby/stacosys">Stacosys</a>
|
||||||
|
</p>
|
||||||
|
</section>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
|
@ -1,5 +1,6 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>{{ title }} - {{ subtitle }}</title>
|
<title>{{ title }} - {{ subtitle }}</title>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
@ -31,13 +32,19 @@
|
||||||
|
|
||||||
<body id="{{ slug }}">
|
<body id="{{ slug }}">
|
||||||
|
|
||||||
<div class="pure-menu pure-menu-horizontal">
|
<div class="pure-g">
|
||||||
|
<div class="pure-u-1-12"></div>
|
||||||
|
<div class="pure-u-1-6">
|
||||||
<img src="/logos/logo@96px.png"></img>
|
<img src="/logos/logo@96px.png"></img>
|
||||||
<ul class="pure-menu-list">
|
</div>
|
||||||
<li class="pure-menu-item"><a href="/" class="pure-menu-link">Blog</a></li>
|
<div class="pure-u-2-3">
|
||||||
<li class="pure-menu-item"><a href="#" class="pure-menu-link">Archives</a></li>
|
<div id="menu-blog">
|
||||||
<li class="pure-menu-item"><a href="#" class="pure-menu-link">Recherche</a></li>
|
<a href="/">Blog</a>
|
||||||
</ul>
|
<a href="#">Archives</a>
|
||||||
|
<a href="#">Recherche</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="pure-u-1-12"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="pure-g">
|
<div class="pure-g">
|
||||||
|
@ -59,4 +66,5 @@
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
|
@ -257,6 +257,7 @@ def main():
|
||||||
params.update(json.loads(fread('params.json')))
|
params.update(json.loads(fread('params.json')))
|
||||||
|
|
||||||
# Load layouts.
|
# Load layouts.
|
||||||
|
landing_layout = fread('layout/landing.html')
|
||||||
page_layout = fread('layout/page.html')
|
page_layout = fread('layout/page.html')
|
||||||
post_layout = fread('layout/post.html')
|
post_layout = fread('layout/post.html')
|
||||||
list_layout = fread('layout/list.html')
|
list_layout = fread('layout/list.html')
|
||||||
|
@ -266,7 +267,7 @@ def main():
|
||||||
|
|
||||||
# Combine layouts to form final layouts.
|
# Combine layouts to form final layouts.
|
||||||
post_layout = render(page_layout, content=post_layout)
|
post_layout = render(page_layout, content=post_layout)
|
||||||
list_layout = render(page_layout, content=list_layout)
|
list_layout = render(landing_layout, content=list_layout)
|
||||||
|
|
||||||
# Create site pages.
|
# Create site pages.
|
||||||
make_pages('content/index.html', '_site/index.html',
|
make_pages('content/index.html', '_site/index.html',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"title": "Le Blog du Yax",
|
"title": "Le blog du Yax",
|
||||||
"subtitle": "GNU, Linux, BSD et autres libertés",
|
"subtitle": "GNU, Linux, BSD et autres libertés",
|
||||||
"author": "Yax"
|
"author": "Yax"
|
||||||
}
|
}
|
|
@ -97,16 +97,49 @@ a:hover, a:active {
|
||||||
color:green;
|
color:green;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* a:link, a:visited {
|
.banner div {
|
||||||
color: #0000e0;
|
background-image: url(/fond.jpg);
|
||||||
text-decoration: none
|
background-repeat:no-repeat;
|
||||||
|
background-size:cover;
|
||||||
|
background-position:center;
|
||||||
|
width: 100%;
|
||||||
|
line-height: 132px;
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: middle;
|
||||||
|
font-family: "Merriweather", serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover, a:active {
|
.banner div > h1 {
|
||||||
color: #0000ff;
|
color: rgb(36, 46, 43);
|
||||||
text-decoration: underline
|
vertical-align: baseline;
|
||||||
} */
|
font-size: 250%;
|
||||||
|
padding-top: 0px;
|
||||||
|
padding-bottom: 0px;
|
||||||
|
margin-top: 0px;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.banner div > h2 {
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 150%;
|
||||||
|
color: rgb(56, 71, 67);
|
||||||
|
vertical-align: baseline;
|
||||||
|
padding-top: 0px;
|
||||||
|
padding-bottom: 0px;
|
||||||
|
margin-top: 0px;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#menu-blog {
|
||||||
|
float: right;
|
||||||
|
line-height: 96px;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
#menu-blog a {
|
||||||
|
font-size: 150%;
|
||||||
|
padding-right: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
/* Footer */
|
/* Footer */
|
||||||
footer {
|
footer {
|
||||||
|
|
Loading…
Add table
Reference in a new issue