Skip to content

Commit

Permalink
feat: add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Phosphorus-M committed Sep 19, 2023
1 parent 57e2e5e commit 7acdf81
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/pages/article_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,21 @@ use crate::{
#[component]
pub fn ArticlePage(article: Article) -> impl IntoView {
let title = article.title.clone();
view! {<>
<Title>{title}</Title>
<Layout>
<BlogContent article=article/>
</Layout>
<script src="https://utteranc.es/client.js"
repo="RustLangES/blog"
issue-term="title"
label="comentarios 💬"
theme="github-light"
crossorigin="anonymous"
async>
</script>
</>
view! {
<>
<Title>{title}</Title>
<Layout>
<BlogContent article=article/>
</Layout>
<script
src="https://utteranc.es/client.js"
repo="RustLangES/blog"
issue-term="title"
label="comentarios 💬"
theme="github-light"
crossorigin="anonymous"
async
></script>
</>
}
}

0 comments on commit 7acdf81

Please sign in to comment.