Skip to content

Commit

Permalink
add: hidden tg widget
Browse files Browse the repository at this point in the history
  • Loading branch information
Wsine committed Feb 23, 2024
1 parent ff7b35a commit 9c81d49
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
<!-- Welcome contents -->
{{ .Content }}

<!-- Telegram Widget -->
<!-- <h2>Latest Reading</h2> -->
<!-- <script id="telegram_post" async src="https://telegram.org/js/telegram-widget.js?22" data-telegram-post="wsine_channel/2" data-width="100%" data-userpic="false" data-dark="0"></script> -->
<!-- <script> -->
<!-- const prefersDarkMode = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches; -->
<!-- if (prefersDarkMode) { -->
<!-- document.getElementById('telegram_post').setAttribute('data-dark', '1'); -->
<!-- } -->
<!-- </script> -->

<!-- Blog contents -->
<h2>Latest Articles</h2>
<ul>
Expand Down

0 comments on commit 9c81d49

Please sign in to comment.