[gimp-web/gimp-web-static] Fixed banner, fiddled with drafts index



commit 2f9b2b12c3b69907c7360ce4fac6144ee4365246
Author: Pat David <patdavid gmail com>
Date:   Wed Nov 18 17:25:57 2015 -0600

    Fixed banner, fiddled with drafts index

 content/images/frontpage/20banner.png       |  Bin 4411 -> 10523 bytes
 content/images/frontpage/20banner.svg       |    8 +-
 content/news/2015-11-18 20-years-of-gimp.md |    7 ++
 content/news/draft-index.md                 |    8 +++
 themes/newgimp/static/css/home.css          |    4 +
 themes/newgimp/templates/draft-index.html   |   81 +++++++++++++++++++++++++++
 themes/newgimp/templates/home.html          |    2 +-
 7 files changed, 105 insertions(+), 5 deletions(-)
---
diff --git a/content/images/frontpage/20banner.png b/content/images/frontpage/20banner.png
index 03e3dd1..2937fd6 100644
Binary files a/content/images/frontpage/20banner.png and b/content/images/frontpage/20banner.png differ
diff --git a/content/images/frontpage/20banner.svg b/content/images/frontpage/20banner.svg
index 91b5bc2..52bc59d 100644
--- a/content/images/frontpage/20banner.svg
+++ b/content/images/frontpage/20banner.svg
@@ -724,7 +724,7 @@
      inkscape:cx="336.80136"
      inkscape:cy="464.5137"
      inkscape:document-units="px"
-     inkscape:current-layer="g6778"
+     inkscape:current-layer="g6782"
      showgrid="false"
      inkscape:snap-bbox="true"
      inkscape:snap-page="true"
@@ -1044,7 +1044,7 @@
            id="text6784"
            y="387.4458"
            x="1020.5433"
-           
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:62.5px;line-height:125%;font-family:Questrial;-inkscape-font-specification:'Questrial,
 
Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+           
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:62.5px;line-height:125%;font-family:Questrial;-inkscape-font-specification:'Questrial,
 
Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#777777;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;"
            xml:space="preserve"><tspan
              y="387.4458"
              x="1020.5433"
@@ -1052,7 +1052,7 @@
              sodipodi:role="line">Celebrating</tspan></text>
         <text
            xml:space="preserve"
-           
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:112.48210907px;line-height:125%;font-family:'League
 Gothic';-inkscape-font-specification:'League Gothic, 
Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+           
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:112.48210907px;line-height:125%;font-family:'League
 Gothic';-inkscape-font-specification:'League Gothic, 
Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#404040;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;"
            x="1019.9438"
            y="481.81335"
            id="text6788"
@@ -1066,7 +1066,7 @@
            id="text6792"
            y="482.71323"
            x="1318.7324"
-           
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:108.16521454px;line-height:125%;font-family:'League
 Gothic';-inkscape-font-specification:'League Gothic, 
Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+           
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:108.16521454px;line-height:125%;font-family:'League
 Gothic';-inkscape-font-specification:'League Gothic, 
Normal';text-align:start;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#404040;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;"
            xml:space="preserve"><tspan
              y="482.71323"
              x="1318.7324"
diff --git a/content/news/2015-11-18 20-years-of-gimp.md b/content/news/2015-11-18 20-years-of-gimp.md
new file mode 100644
index 0000000..f63d3e7
--- /dev/null
+++ b/content/news/2015-11-18 20-years-of-gimp.md       
@@ -0,0 +1,7 @@
+Title: 20 Years of GIMP!
+Date: 2015-11-18T16:32:24-05:00
+Category: News
+Authors: Pat David
+status: draft
+
+This is a placeholder to announce 20 years of GIMP!  Yay!
diff --git a/content/news/draft-index.md b/content/news/draft-index.md
new file mode 100644
index 0000000..d002f9f
--- /dev/null
+++ b/content/news/draft-index.md
@@ -0,0 +1,8 @@
+Title: index
+Date: 2015-11-18T16:32:24-05:00
+Category: News
+Authors: Pat David
+Status: draft
+template: draft-index
+
+This is a test index.html for the drafts folder.
diff --git a/themes/newgimp/static/css/home.css b/themes/newgimp/static/css/home.css
index 952b4dc..b78a231 100644
--- a/themes/newgimp/static/css/home.css
+++ b/themes/newgimp/static/css/home.css
@@ -310,6 +310,10 @@ span#gFirst {
     background-image: linear-gradient( to right, rgba(255,255,255,1) 50%, rgba(255,255,255,0.90)), 
url('/theme/images/oldfrontsplash.jpg');
     }
 
+    #twenty-banner {
+        top: 46px;
+    }
+
 }
 
 /* Testing reflowing sections to use wider screens better */
diff --git a/themes/newgimp/templates/draft-index.html b/themes/newgimp/templates/draft-index.html
new file mode 100644
index 0000000..0b363f9
--- /dev/null
+++ b/themes/newgimp/templates/draft-index.html
@@ -0,0 +1,81 @@
+{% extends "base.html" %}
+
+{% block head %}
+  {{ super() }}
+  {% for keyword in article.keywords %}
+    <meta name="keywords" content="{{keyword}}" />
+  {% endfor %}
+
+  {% for description in article.description %}
+    <meta name="description" content="{{description}}" />
+  {% endfor %}
+
+  {% for tag in article.tags %}
+    <meta name="tags" content="{{tag}}" />
+  {% endfor %}
+
+    <link rel='stylesheet' type='text/css' href="{{ SITEURL }}/theme/css/article.css" />
+
+{% endblock head %}
+
+{% block content %}
+
+<section id="content" class="body">
+    <div class='container'>
+        <div class='row clearfix'>
+            <div class='column full'>
+                {# <header> #}
+
+                    <h2 class="entry-title">
+                      <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"
+                         title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
+                 {% import 'translations.html' as translations with context %}
+                 {{ translations.translations_for(article) }}
+
+                 {# </header> #}
+
+                  <div class="post-info">
+                    <abbr class="published" title="{{ article.date.isoformat() }}">
+                      {{ article.locale_date }}
+                    </abbr>
+                    {% if article.modified %}
+                    <abbr class="modified" title="{{ article.modified.isoformat() }}">
+                      {{ article.locale_modified }}
+                    </abbr>
+                    {% endif %}
+                    {% if article.authors %}
+                    <address class="vcard author">
+                      By {% for author in article.authors %}
+                          <a class="url fn" href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>
+                        {% endfor %}
+                    </address>
+                    {% endif %}
+                  </div><!-- /.post-info -->
+
+                  <div class="entry-content">
+                    {{ article.content }}
+                  </div><!-- /.entry-content -->
+
+                  <div>
+                      Drafts?<br/>
+                      {{ drafts }}
+                      {% for draft in drafts %}
+                      {{ draft.title }}<br/>
+                      {{ draft.status }}
+                      <hr/>
+                      {% endfor %}
+                      <br/>
+                      End of the drafts?
+                  </div>
+                  <div>
+                      Testing all_articles...<br/>
+                      {% for article in all_articles %}
+                        {{ article.url }}<br/>
+                    {% endfor %}
+                  </div>
+              </div>
+          </div>
+      </div>
+</section>
+
+{% endblock content %}
diff --git a/themes/newgimp/templates/home.html b/themes/newgimp/templates/home.html
index b94a4e6..3232f87 100644
--- a/themes/newgimp/templates/home.html
+++ b/themes/newgimp/templates/home.html
@@ -10,7 +10,7 @@
 
 {% block header %}
 <header id="banner" class="body clearfix">
-    <img id='20banner' src='/images/frontpage/20banner.png' alt='GIMP 20th Anniversary Banner' width='250' 
height='250' style='position: absolute; left: 0;'/>
+    <img id='twenty-banner' src='/images/frontpage/20banner.png' alt='GIMP 20th Anniversary Banner' 
width='250' height='250' style='position: absolute; left: 0;'/>
             <div class="container">
                 <div class="intro row">
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]