Nicer structure on main.
authorRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Thu, 25 Sep 2014 09:36:52 +0000 (11:36 +0200)
committerRadek Czajka <radekczajka@nowoczesnapolska.org.pl>
Thu, 25 Sep 2014 09:36:52 +0000 (11:36 +0200)
content/index.html
content/media/css/base.scss
content/texts/meta.yaml
content/texts/outro/meta.yaml [deleted file]
layout/base.j2
layout/text.j2
site.yaml

index 8bd3be9..fafcac7 100644 (file)
@@ -3,7 +3,8 @@ extends: base.j2
 ---
 
 
-{% block full_title %}Wprowadzenie do własności intelektualnej{% endblock %}
+{% block full_title %}Wprowadzenie do własności intelektualnej – materiały dla wyższych uczelni.{% endblock %}
+{% block og_title %}Wprowadzenie do własności intelektualnej – materiały dla wyższych uczelni.{% endblock %}
 
 
 {% block bodyid %}index{% endblock %}
@@ -28,11 +29,13 @@ Informacje o kursie</a>
 <section class="home-section" id="tools">
     <h2>Pobierz</h2>
 
-    <a class="list-item" href="{{ media_url('krotki-kurs-wlasnosci-intelektualnej-podrecznik.pdf') }}">Podręcznik w&nbsp;formacie PDF</a>
-    <a class="list-item" href="{{ media_url('krotki-kurs-wlasnosci-intelektualnej-slajdy-odp.zip') }}">Slajdy w&nbsp;formacie ODP</a>
-    <a class="list-item" href="{{ media_url('krotki-kurs-wlasnosci-intelektualnej-slajdy-pdf.zip') }}">Slajdy w&nbsp;formacie PDF</a>
-    {#- <a class="list-item" href="">Kurs w&nbsp;formacie SCORM (zgodny z Moodle)</a> #}
-    <a class="list-item" href="http://ofop.redakcja.wolnelektury.pl/documents/book/kurs-ip-dla-uniwersytetow/">Źródło do edycji</a>
+    <ul class="link-list">
+        <li><a class="list-item" href="{{ media_url('krotki-kurs-wlasnosci-intelektualnej-podrecznik.pdf') }}">Podręcznik w&nbsp;formacie PDF</a></li>
+        <li><a class="list-item" href="{{ media_url('krotki-kurs-wlasnosci-intelektualnej-slajdy-odp.zip') }}">Slajdy w&nbsp;formacie ODP</a></li>
+        <li><a class="list-item" href="{{ media_url('krotki-kurs-wlasnosci-intelektualnej-slajdy-pdf.zip') }}">Slajdy w&nbsp;formacie PDF</a></li>
+        {#- <li><a class="list-item" href="">Kurs w&nbsp;formacie SCORM (zgodny z Moodle)</a></li> #}
+        <li><a class="list-item" href="http://ofop.redakcja.wolnelektury.pl/documents/book/kurs-ip-dla-uniwersytetow/">Źródło do edycji</a></li>
+    </ul>
 </section>
 
 
@@ -40,16 +43,19 @@ Informacje o kursie</a>
     {%- if grp.name != 'section' -%}
         <section class="home-section {{ grp.name }}">
         <h2>{{ grp.title }}</h2>
+        <ul class="link-list">
 
         {%- for res in res_walker -%}
-            {% if res.meta.title == "Materiały uzupełniające" %}
-                <a href="{{ res.full_url }}"><h2>{{ res.meta.title }}</h2></a>
-            {% else %}
-            <a class="list-item" href="{{ res.full_url }}">{{ res.meta.title }}
-                {% if res.meta.author %}<span class="author">{{ res.meta.author }}</span>{% endif %}
-            </a>
+            {% if res.meta.title != "Materiały uzupełniające" %}
+            <li><a class="list-item" href="{{ res.full_url }}">{{ res.meta.title }}</a></li>
             {% endif %}
         {%- endfor -%}
+
+        </ul>
+
+        {% if grp.name == "rozdzial-6" %}
+            <a href="{{ content_url('/materialy-uzupelniajace') }}"><h2>Materiały uzupełniające</h2></a>
+        {% endif %}
         </section>
     {%- endif -%}
 {%- endfor %}
index 8bac975..4d30ad2 100644 (file)
@@ -71,11 +71,6 @@ header {
             float: right;
             text-align: right;
         }
-
-        .author {
-            font-size: 1rem;
-            font-weight: normal;
-        }
     }
 
     nav {
@@ -105,26 +100,32 @@ section.home-section {
         }
     }
 
-    a.list-item {
-        padding: .25em .5em .25em .5em;
-        position:relative;
-        font-size: 1.2rem;
-
-        @media screen and (min-width: 20em) {
-            padding-left: 2.7rem;
-            font-size: 1.3rem;
-
-            &:before {
-                content: '\bb';
-                position: absolute;
-                left: 1rem;
+    .link-list {
+        list-style: none;
+        margin: 0;
+        padding: 0;
+
+        li {
+            margin: 0;
+            padding: 0;
+
+            a {
+                padding: .25em .5em .25em .5em;
+                position:relative;
+                font-size: 1.2rem;
+
+                @media screen and (min-width: 20em) {
+                    padding-left: 2.7rem;
+                    font-size: 1.3rem;
+
+                    &:before {
+                        content: '\bb';
+                        position: absolute;
+                        left: 1rem;
+                    }
+                }
             }
         }
-
-        .author {
-            display: block;
-            font-size: 1rem;
-        }
     }
 }
 #tools {
index b480d5d..ace3b06 100644 (file)
@@ -1,3 +1,2 @@
 extends: text.j2
 listable: true
-author_label: autor
diff --git a/content/texts/outro/meta.yaml b/content/texts/outro/meta.yaml
deleted file mode 100644 (file)
index 142eb84..0000000
+++ /dev/null
@@ -1 +0,0 @@
-section: outro
\ No newline at end of file
index c501462..c37bbeb 100644 (file)
@@ -10,7 +10,6 @@
     <head>
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <title>{% block full_title %}{{ title() }} | {{ site_name() }}{% endblock %}</title>
-       <!--link rel="shortcut icon" type="image/png" href="{{ media_url("images/favicon.png") }}" /-->
        <link rel="shortcut icon" type="image/png" href="/static/img/favicon.png" />
        <link rel="stylesheet" type="text/css" href="{{ media_url("css/book_text.css") }}" />
        <link rel="stylesheet" type="text/css" href="{{ media_url("css/base.css") }}" />
@@ -18,8 +17,8 @@
         <meta charset="UTF-8" />
         <meta property='og:url' content='{% block ogurl %}{{ domain }}{{ resource.full_url }}{% endblock %}' />
         <meta property='og:title' content='{% block og_title %}{{ title() }}{% endblock %}' />
-        <meta property='og:site_name' content='{{ site_name() }}' />
-        <meta property='og:description' content='{% block og_description %}{% endblock %}' />
+        <meta property='og:site_name' content='Krótki kurs własności intelektualnej – materiały dla wyższych uczelni.' />
+        <meta property='og:description' content='{% block og_description %}Kurs przygotowany jest tak, aby na jego podstawie w ciągu 15 godzin (6 wykładów i test kończący zajęcia) można było zrealizować podstawowe zagadnienia, znajdujące się w programach nauczania przedmiotu „Własność intelektualna” na polskich uczelniach.{% endblock %}' />
         <meta property='og:type' content='{% block og_type %}website{% endblock %}' />
         <meta property='og:image' content='{% block og_image %}{{ domain }}{{ media_url("images/okladka.jpg") }}{% endblock %}' />
         <meta property='og:locale' content='pl_PL' />
index a615cb2..992a804 100644 (file)
@@ -10,15 +10,7 @@ Materiały dla wyższych uczelni
 
 <header>
 
-<h1>
-    {% block top_title %}{{ title() }}{% endblock %}
-    {% if resource.meta.author -%}
-        <div class="author">
-            {{ resource.meta.author }}<br/>
-            {{ resource.meta.author_add }}
-        </div>
-    {%- endif %}
-</h1>
+<h1>{% block top_title %}{{ title() }}{% endblock %}</h1>
 
 
 <nav>
index aab4d85..d2a0ad2 100644 (file)
--- a/site.yaml
+++ b/site.yaml
@@ -19,12 +19,8 @@ urlcleaner:
     append_slash: true
 flattener:
     items:
-        - source: texts/main
-          target: ""
         - source: texts/intro
           target: ""
-        - source: texts/outro
-          target: ""
         - source: import/rozdzial-1
           target: ""
         - source: import/rozdzial-2