banner ed header
This commit is contained in:
parent
6bcb54627c
commit
d1711f3692
6 changed files with 47 additions and 26 deletions
|
@ -43,8 +43,9 @@ PAGE_SAVE_AS = '{slug}.html'
|
|||
PAGE_LANG_URL = '{slug}.{lang}.html'
|
||||
PAGE_LANG_SAVE_AS = '{slug}.{lang}.html'
|
||||
INDEX_SAVE_AS = 'articles.html'
|
||||
|
||||
|
||||
BANNER= True
|
||||
BANNER_ALL_PAGES= True
|
||||
SITELOGO="logo/logo0x15.png"
|
||||
# PAGE_BACKGROUND = 'images/background.jpg'
|
||||
THEME = 'themes/hackit0x15/'
|
||||
FONT_URL = 'theme/css/anaheim.css'
|
||||
|
@ -58,7 +59,7 @@ EXTRA_PATH_METADATA = {
|
|||
|
||||
# Pelican bootstrap 3 theme settings
|
||||
BOOTSTRAP_THEME = 'darkly'
|
||||
|
||||
HIDE_SITENAME = True
|
||||
HIDE_SIDEBAR = True
|
||||
PLUGIN_PATHS = ['plugins']
|
||||
PLUGINS = ['langmenu', 'talks', 'tipue_search']
|
||||
|
|
|
@ -9,6 +9,26 @@ body {
|
|||
font-size: 2em;
|
||||
height: 100%;
|
||||
}
|
||||
/*banner*/
|
||||
|
||||
.banner{
|
||||
background:#fff;
|
||||
color:#9c2f2f;
|
||||
}
|
||||
.banner img {
|
||||
vertical-align: middle;
|
||||
left: 50%;
|
||||
position: relative;
|
||||
transform: translate(-50%,0);
|
||||
}
|
||||
.header-ul-menu {
|
||||
list-style: none;
|
||||
color: #fff;
|
||||
background: #9c2f2f;
|
||||
font-size: 2em;
|
||||
margin-top: -60px;
|
||||
}
|
||||
/*fine banner*/
|
||||
|
||||
.navbar::after,
|
||||
.navbar-collapse::after,
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 17 KiB |
Binary file not shown.
Before Width: | Height: | Size: 6.9 KiB |
|
@ -99,6 +99,13 @@
|
|||
|
||||
</head>
|
||||
<body>
|
||||
<!-- Banner -->
|
||||
{% if BANNER and BANNER_ALL_PAGES %}
|
||||
{% include 'includes/banner.html' %}
|
||||
{% elif BANNER and not BANNER_ALL_PAGES %}
|
||||
{% block banner %}{% endblock %}
|
||||
{% endif %}
|
||||
<!-- End Banner -->
|
||||
<div class="navbar {% if BOOTSTRAP_NAVBAR_INVERSE %}navbar-inverse{% else %}navbar-default{% endif %} navbar-static-top" role="navigation">
|
||||
<div class="container{% if BOOTSTRAP_FLUID %}-fluid{% endif %}">
|
||||
<div class="navbar-header">
|
||||
|
@ -109,7 +116,6 @@
|
|||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a href="{{ SITEURL }}/" class="navbar-brand">
|
||||
{% if SITELOGO %}<img src="{{ SITEURL }}/{{ SITELOGO }}" width="{{ SITELOGO_SIZE }}"/> {% endif %}
|
||||
{% if not HIDE_SITENAME %}{{ SITENAME }}{% endif %}
|
||||
</a>
|
||||
</div>
|
||||
|
@ -146,13 +152,7 @@
|
|||
<!-- /.navbar-collapse -->
|
||||
</div>
|
||||
</div> <!-- /.navbar -->
|
||||
<!-- Banner -->
|
||||
{% if BANNER and BANNER_ALL_PAGES %}
|
||||
{% include 'includes/banner.html' %}
|
||||
{% elif BANNER and not BANNER_ALL_PAGES %}
|
||||
{% block banner %}{% endblock %}
|
||||
{% endif %}
|
||||
<!-- End Banner -->
|
||||
|
||||
<div class="container{% if BOOTSTRAP_FLUID %}-fluid{% endif %}">
|
||||
<div class="row">
|
||||
{% if not HIDE_SIDEBAR or ABOUT_ME %}
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
<style>
|
||||
#banner{
|
||||
background-image:url("{{ SITEURL}}/{{ BANNER }}");
|
||||
}
|
||||
</style>
|
||||
<div class="banner">
|
||||
|
||||
<header id="header">
|
||||
<ul class="header-ul-menu">
|
||||
<li class="header-menu"><a class="brand-title" href="index.html">{{ SITENAME }}</a></li>
|
||||
<li style="float:right;padding-right:5px;" class="header-menu">
|
||||
lingue - en
|
||||
</li>
|
||||
</ul>
|
||||
</header>
|
||||
|
||||
{% if SITELOGO %}
|
||||
<img src="{{ SITEURL }}./themes/hackit0x15/static/{{ SITELOGO }}" width="{{ SITELOGO_SIZE }}"/> {% endif %}
|
||||
|
||||
<div id="banner">
|
||||
<div class="container{% if BOOTSTRAP_FLUID %}-fluid{% endif %}">
|
||||
<div class="copy">
|
||||
<h1>{{ SITENAME }}</h1>
|
||||
{% if BANNER_SUBTITLE %}
|
||||
<p class="intro">{{ BANNER_SUBTITLE }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
Loading…
Reference in a new issue