Skip to content

Commit 691074b

Browse files
authored
Merge pull request #150 from microcmsio/fix-twitter-url-in-article-detail
Fix twitter url in article details
2 parents 272ab74 + 7dbf23e commit 691074b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

components/Writer.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
<nuxt-link :to="`/author/${writer.id}/`" class="authorLink">
1919
{{ writer.name }}
2020
</nuxt-link>
21-
<a
22-
class="twitterLink"
23-
:href="`https://twitter.com/${writer.twitter || writer.id}`"
24-
>
21+
<a v-if="writer.twitter" class="twitterLink" :href="writer.twitter">
2522
<img class="twitter" src="/images/icon_twitter.svg" alt="Twitter" />
2623
</a>
2724
</dt>

0 commit comments

Comments
 (0)