From 619dc344f4cb5933388dde84862485139746d7ca Mon Sep 17 00:00:00 2001 From: cecepasinechka Date: Tue, 7 May 2024 08:53:37 +0200 Subject: [PATCH] added cType in courses and catalog_url in _config --- _config.yml | 1 + _layouts/course-data-filtered.html | 3 ++- _layouts/course-data.html | 3 ++- _layouts/course.html | 4 +++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index 2fed59a..2a85dcb 100644 --- a/_config.yml +++ b/_config.yml @@ -24,6 +24,7 @@ baseurl: "" # the subpath of your site, e.g. /blog url: "" # the base hostname & protocol for your site google_analytics: "UA-XXXXXXXX-X" language: "si" +catalog_url: "catalog_url" # Build settings markdown: kramdown diff --git a/_layouts/course-data-filtered.html b/_layouts/course-data-filtered.html index 7992e07..7b48b81 100644 --- a/_layouts/course-data-filtered.html +++ b/_layouts/course-data-filtered.html @@ -14,7 +14,8 @@ "description": "{{ course.description | strip_newlines | lstrip | replace: '"', '' | replace: "š", "s" | replace: "č", "c" | replace: "ž", "z" | replace: "Š", "S" | replace: "Č", "C" | replace: "Ž", "Z"}}", "image": "{{ course.image}}", "difficulty": "{{ course.difficulty | replace: "š", "s" | replace: "č", "c" | replace: "ž", "z" | replace: "Š", "S" | replace: "Č", "C" | replace: "Ž", "Z" }}", - "type": "{{ course.type | replace: "š", "s" | replace: "č", "c" | replace: "ž", "z" | replace: "Š", "S" | replace: "Č", "C" | replace: "Ž", "Z" }}" + "type": "{{ course.type | replace: "š", "s" | replace: "č", "c" | replace: "ž", "z" | replace: "Š", "S" | replace: "Č", "C" | replace: "Ž", "Z" }}", + "cType": "{{ course.cType }}" }{% unless forloop.last %},{% endunless %} {% endfor %} ] \ No newline at end of file diff --git a/_layouts/course-data.html b/_layouts/course-data.html index fd8904b..77d5b18 100644 --- a/_layouts/course-data.html +++ b/_layouts/course-data.html @@ -15,7 +15,8 @@ "image": "{{ course.image}}", "difficulty": "{{ course.difficulty }}", "type": "{{ course.type }}", - "execution": "{{ course.execution }}" + "execution": "{{ course.execution }}", + "cType": "{{ course.cType }}" }{% unless forloop.last %},{% endunless %} {% endfor %} ] \ No newline at end of file diff --git a/_layouts/course.html b/_layouts/course.html index 0e09468..7328f19 100644 --- a/_layouts/course.html +++ b/_layouts/course.html @@ -18,7 +18,9 @@

{% endfor %}

{{ page.title }}

- + {% if page.cType == "1" %} +

Prijavite se in pokažite svoje zanimanje

+ {% endif %}

{% assign authors = page.author | remove: '[' | remove: ']' | remove: '"' %} {% assign author_list = authors | split: ", " %}