Skip to content

Commit

Permalink
Merge pull request #33 from UM-LPM/main
Browse files Browse the repository at this point in the history
added cType in courses and catalog_url in _config
  • Loading branch information
cecepasinechka authored May 7, 2024
2 parents 3f9c7dd + 619dc34 commit ee901f8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion _layouts/course-data-filtered.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
]
3 changes: 2 additions & 1 deletion _layouts/course-data.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
]
4 changes: 3 additions & 1 deletion _layouts/course.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ <h3>
{% endfor %}
</h3>
<h1 class="course-title">{{ page.title }}</h1>
<!-- <p class="course-info"> <a href="http://localhost:65157/course?title={{ page.title | urlencode }}">Prijavite se in pokažite svoje zanimanje</a> </p> -->
{% if page.cType == "1" %}
<p class="course-author"> <a href="{{site.catalog_url}}{{page.id}}">Prijavite se in pokažite svoje zanimanje</a> </p>
{% endif %}
<p class="course-author" style="color:rgb(83, 83, 83); margin-top:0; padding-top: 0;">
{% assign authors = page.author | remove: '[' | remove: ']' | remove: '"' %}
{% assign author_list = authors | split: ", " %}
Expand Down

0 comments on commit ee901f8

Please sign in to comment.