Commits

Ian Lewis  committed 2f071fb

Upadted footer

  • Participants
  • Parent commits 888f599
  • Branches bootstrap

Comments (0)

Files changed (5)

File homepage/settings.py

 
 MANAGERS = ADMINS
 
+#DATABASES = {
+#    'default': {
+#        'ENGINE': 'django.db.backends.sqlite3',
+#        'NAME': 'djangodb.sqlite',
+#        'USER': '',
+#        'PASSWORD': '',
+#        'HOST': '',
+#        'PORT': '',
+#    }
+#}
 DATABASES = {
     'default': {
-        'ENGINE': 'django.db.backends.sqlite3',
-        'NAME': 'djangodb.sqlite',
-        'USER': '',
+        'ENGINE': 'django.db.backends.mysql',
+        'NAME': 'ianlewis_hp',
+        'USER': 'root',
         'PASSWORD': '',
         'HOST': '',
         'PORT': '',

File static/css/style.css

 
 /* =========== Footer ============== */
 
-.footer {
-    color: white;
-    background: black;
-    padding: 10px;
-    overflow: hidden;
+footer:before {
+    display: block;
+    content: '';
+    width: 100px;
+    height: 1px;
+    margin: 80px auto 20px;
+    background-color: #EEE;
 }
 
+footer {
+    text-align: center;
+    /* width: 300px; */
+}
+
+footer p {
+    font-size: 12px;
+    line-height: 20px;
+    color: #999;
+    margin-top: 2em;
+}
 /* =========== Content ============== */
 
 .content {
 }
 
 .content .blog-post .post-content img {
-    margin: 1em 0;
+    margin: 1em;
 
     padding: 10px;
     border: 1px solid #CCC;

File templates/base.html

       <div class="content">
         {% block content %}{% endblock %}
       </div>
-      <div class="footer">
-        {% block footer %}{% endblock %}
-        <div class="djangomade"><a href="http://www.djangoproject.com/"><img src="{{ STATIC_URL }}img/djangomade124x25.gif" title="Made with Django" alt=""/></a></div>
+      <footer>
+        <a href="{% url main_page %}">Home</a> | <a href="/en/about/">About</a>
+
+        {% block license %}
+        <p>&copy; 2012. Ian Lewis.</p>
+        {% endblock %}
+        {#<div class="djangomade"><a href="http://www.djangoproject.com/"><img src="{{ STATIC_URL }}img/djangomade124x25.gif" title="Made with Django" alt=""/></a></div>#}
       </div>
-    </div>
+    </footer>
     <script type="text/javascript" src="{{ STATIC_URL }}lib/jquery/jquery-1.3.2.min.js"></script>
     <script type="text/javascript">
       STATIC_URL='{{ STATIC_URL }}';

File templates/blog/post_detail.html

 
 {% endblock %}
 
+{% block license %}
+<p>
+<a rel="license" href="http://creativecommons.org/licenses/by/2.1/jp/deed.en_US"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/2.1/jp/80x15.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">{{ object.title }}</span> by <span xmlns:cc="http://creativecommons.org/ns#" property="cc:attributionName">Ian Lewis</span><br /> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/2.1/jp/deed.{% if object.lang = "ja" %}ja{% else %}en_US{% endif %}">Creative Commons Attribution 2.1 Japan License</a>.
+</p>
+{% endblock %}
+
 {% block js_footer %}
 <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
 <script type="text/javascript" src="http://b.st-hatena.com/js/bookmark_button.js" charset="utf-8" async="async"></script>

File templates/blog/post_list.html

   })();
 </script>
 {% endblock %}
-
-{% block footer %}
-<div class="tag-cloud">
-{% tag_cloud_for_model blog.post as post_tags with steps=20 min_count=4 distribution=log %}
-{% for post_tag in post_tags %}
-<a style="font-size: {{ post_tag.font_size|add:"10" }}px;" href="{% url blog_tag_page locale post_tag.name %}">{{ post_tag.name }}</a>&nbsp;&nbsp;
-{% endfor %}
-</div>
-{% endblock %}