Skip to content

Commit

Permalink
modify quarto for action pass
Browse files Browse the repository at this point in the history
  • Loading branch information
jsaintvanne committed Feb 2, 2024
1 parent aa0f318 commit 1a54601
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions test2.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,48 +2,48 @@
title: Test
---

```{=html}
<!-- ```{=html} -->

<html>
<head>
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@workflow4metabo">
<meta name="twitter:creator" content="@yourTwitterHandle">
<meta name="twitter:title" content="Latest Tweets from @workflow4metabo">
<meta name="twitter:description" content="Check out the latest tweets from @workflow4metabo">
</head>
<body>
<!-- Place where you want to display the tweets -->
<div id="twitter-feed"></div>
<!-- <html> -->
<!-- <head> -->
<!-- <meta name="twitter:card" content="summary"> -->
<!-- <meta name="twitter:site" content="@workflow4metabo"> -->
<!-- <meta name="twitter:creator" content="@yourTwitterHandle"> -->
<!-- <meta name="twitter:title" content="Latest Tweets from @workflow4metabo"> -->
<!-- <meta name="twitter:description" content="Check out the latest tweets from @workflow4metabo"> -->
<!-- </head> -->
<!-- <body> -->
<!-- <!-- Place where you want to display the tweets --> -->
<!-- <div id="twitter-feed"></div> -->

<!-- JavaScript to fetch and embed tweets -->
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
<script>
// Use Twitter API to fetch tweets and embed them in the 'twitter-feed' div
// You may need to replace 'YOUR_API_KEY', 'YOUR_API_SECRET_KEY', etc., with your actual API credentials
// Also, replace 'workflow4metabo' with the actual Twitter handle
fetch('https://api.twitter.com/2/tweets?screen_name=workflow4metabo&count=5', {
headers: {
Authorization: 'Bearer YOUR_ACCESS_TOKEN'
}
})
.then(response => response.json())
.then(data => {
// Embed tweets in the 'twitter-feed' div
data.forEach(tweet => {
const tweetElement = document.createElement('div');
tweetElement.innerHTML = `<blockquote class="twitter-tweet" data-id="${tweet.id_str}"></blockquote>`;
document.getElementById('twitter-feed').appendChild(tweetElement);
});
<!-- <!-- JavaScript to fetch and embed tweets --> -->
<!-- <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> -->
<!-- <script> -->
<!-- // Use Twitter API to fetch tweets and embed them in the 'twitter-feed' div -->
<!-- // You may need to replace 'YOUR_API_KEY', 'YOUR_API_SECRET_KEY', etc., with your actual API credentials -->
<!-- // Also, replace 'workflow4metabo' with the actual Twitter handle -->
<!-- fetch('https://api.twitter.com/2/tweets?screen_name=workflow4metabo&count=5', { -->
<!-- headers: { -->
<!-- Authorization: 'Bearer YOUR_ACCESS_TOKEN' -->
<!-- } -->
<!-- }) -->
<!-- .then(response => response.json()) -->
<!-- .then(data => { -->
<!-- // Embed tweets in the 'twitter-feed' div -->
<!-- data.forEach(tweet => { -->
<!-- const tweetElement = document.createElement('div'); -->
<!-- tweetElement.innerHTML = `<blockquote class="twitter-tweet" data-id="${tweet.id_str}"></blockquote>`; -->
<!-- document.getElementById('twitter-feed').appendChild(tweetElement); -->
<!-- }); -->

// Refresh the Twitter widgets.js library to render embedded tweets
twttr.widgets.load();
})
.catch(error => console.error('Error fetching tweets:', error));
</script>
</body>
</html>
```
<!-- // Refresh the Twitter widgets.js library to render embedded tweets -->
<!-- twttr.widgets.load(); -->
<!-- }) -->
<!-- .catch(error => console.error('Error fetching tweets:', error)); -->
<!-- </script> -->
<!-- </body> -->
<!-- </html> -->
<!-- ``` -->

::: {twitter}
"username": "workflow4metabo"
Expand Down

0 comments on commit 1a54601

Please sign in to comment.