Browse Source

Merge branch 'newheader' of putro/minimo into master

putro 6 months ago
parent
commit
265d1376dd
2 changed files with 22 additions and 1 deletions
  1. 10
    0
      static/css/style.css
  2. 12
    1
      templates/base.html

+ 10
- 0
static/css/style.css View File

@@ -12,6 +12,16 @@ body {
12 12
     margin-right: 33%;
13 13
 }
14 14
 
15
+.sitebanner {
16
+    position: relative;
17
+    top: 20px;
18
+}
19
+
20
+.siteimage {
21
+    float: left;
22
+    width: 120px;
23
+}
24
+
15 25
 a:link { color: #003399; text-decoration: none; }
16 26
 a:visited { color: #336699; text-decoration: none; }
17 27
 a:hover { color: #003399; background: #ff8c19; text-decoration: none; }

+ 12
- 1
templates/base.html View File

@@ -34,8 +34,19 @@
34 34
 
35 35
 <body id="index" class="home">
36 36
   <header id="banner" class="body">
37
-    <h1><a href="{{ SITEURL }}/">{{ SITENAME }} <strong>{{ SITESUBTITLE }}</strong></a></h1>
37
+      <!-- site image -->
38
+      {% if SITELOGO %}
39
+      <div class= "siteimage">
40
+      <a href={{ SITELOGO }}>
41
+      <img width="85" height="85" src={{ SITELOGO }}>
42
+      </a>
43
+      </div>
44
+	  {% endif %}
45
+      <div class = "sitebanner">
46
+      <h1><a href="{{ SITEURL }}/">{{ SITENAME }} <strong>{{ SITESUBTITLE }}</strong></a></h1>
47
+      </div>
38 48
   </header><!-- /#banner -->
49
+  <br /><br />
39 50
   <nav id="menu"><ul>
40 51
       {% for title, link in MENUITEMS %}
41 52
       <li><a href="{{ link }}">{{ title }}</a></li>

Loading…
Cancel
Save