Bug: Render header title and tagline as HTML (#906)

* Render header title and tagline as HTML
This commit is contained in:
Pranav Raj S 2020-05-31 16:35:10 +05:30 committed by GitHub
parent 884a1c5971
commit 586c616ae3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 9 deletions

View file

@ -2,9 +2,7 @@
<header class="header-collapsed"> <header class="header-collapsed">
<div class="header-branding"> <div class="header-branding">
<img v-if="avatarUrl" :src="avatarUrl" alt="avatar" /> <img v-if="avatarUrl" :src="avatarUrl" alt="avatar" />
<h2 class="title"> <h2 class="title" v-html="title"></h2>
{{ title }}
</h2>
</div> </div>
<span class="close-button" @click="closeWindow"></span> <span class="close-button" @click="closeWindow"></span>
</header> </header>

View file

@ -2,12 +2,8 @@
<header class="header-expanded"> <header class="header-expanded">
<img v-if="avatarUrl" class="logo" :src="avatarUrl" /> <img v-if="avatarUrl" class="logo" :src="avatarUrl" />
<span class="close close-button" @click="closeWindow"></span> <span class="close close-button" @click="closeWindow"></span>
<h2 class="title"> <h2 class="title" v-html="introHeading"></h2>
{{ introHeading }} <p class="body" v-html="introBody"></p>
</h2>
<p class="body">
{{ introBody }}
</p>
</header> </header>
</template> </template>