Skip to content

Commit

Permalink
Merge pull request #2022 from vishalvivekm/ext
Browse files Browse the repository at this point in the history
hyperlink modal to single extension page
  • Loading branch information
vishalvivekm authored Jan 14, 2025
2 parents 4c97d28 + 8efa3f7 commit e72582e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions _includes/extensions/modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
object-fit: contain;
}
</style>

{% assign file_path = extension.path %}
{% assign file_name = file_path | split: '/' | last | replace: '.md', '' %}
<div id="open-modal" class="modal-window">
<!-- <div class="click-container"> -->
<div class="modal-content">
Expand All @@ -24,10 +27,9 @@
<div class="vertical-line"></div>
<div class="modal-info">
<h2 class="modal-h2">
{{extension.name | upcase }}
<!--<a href="https://docs.meshery.io/extensions/{{extension.slug}}" target="_blank">{{extension.name | upcase }}
<a href="{{ site.baseurl }}/extensions/{{file_name}}" target="_blank">{{extension.name | upcase }}
<img class="internal-link" src="{{site.baseurl}}/assets/images/buttons/external-link_black.svg"/>
</a>-->
</a>
</h2>
<h3 class="modal-h3">Description</h3>
<p class="content-toggle contentdata pre-white-space">{{extension.extensionInfo | url_decode | replace: '\\n', '<br/>' | replace: '\n', '<br/>' }}</p>
Expand Down

0 comments on commit e72582e

Please sign in to comment.