Skip to content

Instantly share code, notes, and snippets.

@IamGroooooot
Last active July 12, 2020 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IamGroooooot/2bbbd8ce2c20fe309c657b24ac0eb50c to your computer and use it in GitHub Desktop.
Save IamGroooooot/2bbbd8ce2c20fe309c657b24ac0eb50c to your computer and use it in GitHub Desktop.
티스토리 블로그에 GitHub Contribution Graph 넣는 법 - Embed하기 위해서 https://github.com/Bloggify/github-calendar 사용함
<!-- Include the library. -->
<script
src="https://unpkg.com/github-calendar@latest/dist/github-calendar.min.js"
></script>
<!-- Optionally, include the theme (if you don't want to struggle to write the CSS) -->
<link
rel="stylesheet"
href="https://unpkg.com/github-calendar@latest/dist/github-calendar-responsive.css"
/>
<div>
<!-- Prepare a container for your calendar. -->
<div style="text-align: center;"><strong>나의 GitHub Contribution 그래프</strong></div>
<div class="calendar">
<!-- Loading stuff -->
Loading data ...
</div>
</div>
<script>
GitHubCalendar(".calendar", "IamGroooooot", { responsive: true, tooltips: false, global_stats: false}).then(function() {
// delete the space underneath the module bar which is caused by minheight
document.getElementsByClassName('calendar')[0].style.minHeight = "100px";
// hide more and less legen below the contribution graph
document.getElementsByClassName('contrib-legend')[0].style.display = "none";
});
</script>
@myunggyuns
Copy link

이거 보고 덕분에 banner 가져 갔습니다. 감사합니다.~~

@IamGroooooot
Copy link
Author

@myunggyun 예쁘게 잘쓰세요ㅎㅎ😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment