Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinSchott authored Nov 29, 2023
1 parent b0caa75 commit 7a0a47c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions _includes/resources-section.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ <h3 class="text-white mt-4 mb-3 text-center">{{ sub-section.title }}</h3>
{{ sub-section.text | markdownify }}
<div class="row col-12 mb-3 mx-0">
{% if sub-section.button-is-internal %}
<a class="btn btn-sm btn-primary mx-auto" href="{% comment %} {% link {{ sub-section.button-url }} %} {% endcomment %}">{{ sub-section.button-text }}</a>
{% assign pagepath = sub-section.button-url %}
{{ pagepath }}
<a class="btn btn-sm btn-primary mx-auto" href="{% comment %} {% link {{ pagepath }} %} {% endcomment %}">{{ sub-section.button-text }}</a>
{% else %}
<a class="btn btn-sm btn-primary mx-auto" href="{{ sub-section.button-url }}" target="_blank">{{ sub-section.button-text }} <i class="fas fa-external-link-alt"></i></a>
{% endif %}
Expand All @@ -31,4 +33,4 @@ <h3 class="text-white mt-4 mb-3 text-center">{{ sub-section.title }}</h3>

</div>
</section>
<!-- /resources -->
<!-- /resources -->

0 comments on commit 7a0a47c

Please sign in to comment.