Skip to content

Commit

Permalink
External Elements : fix title & missing logo (#844)
Browse files Browse the repository at this point in the history
Two fixes when choose theme="elements" :
- use the title in config
- don't set logo param if not set
  • Loading branch information
max13fr authored May 22, 2024
1 parent 0fd9abb commit 51eaeec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/views/external/elements.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Elements in HTML</title>
<title>{!! $metadata['title'] !!}L</title>
<!-- Embed elements Elements via Web Component -->
<script src="https://unpkg.com/@stoplight/elements/web-components.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/@stoplight/elements/styles.min.css">
Expand All @@ -25,7 +25,9 @@
router="hash"
layout="sidebar"
hideTryIt="{!! ($tryItOut['enabled'] ?? true) ? '' : 'true'!!}"
@if(!empty($metadata['logo']))
logo="{!! $metadata['logo'] !!}"
@endif
/>

</body>
Expand Down

0 comments on commit 51eaeec

Please sign in to comment.