Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add audio link #27

Merged
merged 3 commits into from
Oct 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added src/assets/xmly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/components/episode-content.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ const episode = $computed(() => episodes.find((episode) => episode.id === id))
<div v-if="episode" container mx-auto px-4 mt-5>
<div mb-5>
<h1 text-center text-2xl font-bold mb-2 v-html="episode.title" />
<div flex justify-center my-2>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Learned from here. This is much simpler.

<a :href="episode.link" target="_blank">
<img title="喜马拉雅" src="../assets/xmly.png" w-20px />
</a>
</div>

<episode-meta :info="episode" justify-center />
</div>

Expand Down
1 change: 1 addition & 0 deletions src/utils/episode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export interface RawEpisode {
hosts?: Person[]
guests?: Person[]
description: string
link: string
default: Component
}

Expand Down