Skip to content

Commit 40e7cf5

Browse files
authoredSep 20, 2024
Добавляет кнопку со звёздочками GH в футер (#1307)
* Добавляет кнопку со звёздочками в футер * Исправляет ссылку на репо, из которого берутся 🌟
1 parent 77dd845 commit 40e7cf5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎src/includes/blocks/footer.njk

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
</ul>
3535
<ul class="footer__list footer-list font-theme font-theme--code base-list">
3636
<li class="footer-list__item">
37-
<a class="footer-list__link link" href="{{ constants.dokaOrgLink }}">GitHub</a>
37+
<a class="footer-list__link link" href="/subscribe/">Рассылка</a>
3838
</li>
3939
<li class="footer-list__item">
40-
<a class="footer-list__link link" href="/subscribe/">Рассылка</a>
40+
<a class="github-button" href="https://github.com/doka-guide/content" data-color-scheme="no-preference: light; light: light; dark: dark;" data-size="large" data-show-count="true" aria-label="Star doka-guide/content on GitHub">Star</a>
4141
</li>
4242
</ul>
4343
<ul class="footer__list footer-list font-theme font-theme--code base-list">

‎src/includes/meta.njk

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
<!-- 2. Preconnect -->
2121
<!-- 3. Async inline script -->
22+
<!-- 3.1 GitHub Stars Button script -->
23+
<script async defer src="https://buttons.github.io/buttons.js"></script>
2224
<!-- 4. CSS with @import -->
2325
<!-- 5. Synchronous JS -->
2426
<!-- 6. CSS without @import -->

0 commit comments

Comments
 (0)