From c0aeb248a7a3313b0b0941cf3c922b49c2fc57a6 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Thu, 25 Sep 2014 11:36:52 +0200 Subject: [PATCH] Nicer structure on main. --- content/index.html | 30 +++++++++++++--------- content/media/css/base.scss | 47 ++++++++++++++++++----------------- content/texts/meta.yaml | 1 - content/texts/outro/meta.yaml | 1 - layout/base.j2 | 5 ++-- layout/text.j2 | 10 +------- site.yaml | 4 --- 7 files changed, 45 insertions(+), 53 deletions(-) delete mode 100644 content/texts/outro/meta.yaml diff --git a/content/index.html b/content/index.html index 8bd3be9..fafcac7 100644 --- a/content/index.html +++ b/content/index.html @@ -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

Pobierz

- Podręcznik w formacie PDF - Slajdy w formacie ODP - Slajdy w formacie PDF - {#- Kurs w formacie SCORM (zgodny z Moodle) #} - Źródło do edycji +
@@ -40,16 +43,19 @@ Informacje o kursie {%- if grp.name != 'section' -%}

{{ grp.title }}

+ + + {% if grp.name == "rozdzial-6" %} +

Materiały uzupełniające

+ {% endif %}
{%- endif -%} {%- endfor %} diff --git a/content/media/css/base.scss b/content/media/css/base.scss index 8bac975..4d30ad2 100644 --- a/content/media/css/base.scss +++ b/content/media/css/base.scss @@ -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 { diff --git a/content/texts/meta.yaml b/content/texts/meta.yaml index b480d5d..ace3b06 100644 --- a/content/texts/meta.yaml +++ b/content/texts/meta.yaml @@ -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 index 142eb84..0000000 --- a/content/texts/outro/meta.yaml +++ /dev/null @@ -1 +0,0 @@ -section: outro \ No newline at end of file diff --git a/layout/base.j2 b/layout/base.j2 index c501462..c37bbeb 100644 --- a/layout/base.j2 +++ b/layout/base.j2 @@ -10,7 +10,6 @@ {% block full_title %}{{ title() }} | {{ site_name() }}{% endblock %} - @@ -18,8 +17,8 @@ - - + + diff --git a/layout/text.j2 b/layout/text.j2 index a615cb2..992a804 100644 --- a/layout/text.j2 +++ b/layout/text.j2 @@ -10,15 +10,7 @@ Materiały dla wyższych uczelni
-

- {% block top_title %}{{ title() }}{% endblock %} - {% if resource.meta.author -%} -
- {{ resource.meta.author }}
- {{ resource.meta.author_add }} -
- {%- endif %} -

+

{% block top_title %}{{ title() }}{% endblock %}