update script

This commit is contained in:
app-harry
2024-10-27 18:28:07 +08:00
parent 8492c8a596
commit 87b42a0eb8
5 changed files with 152 additions and 24 deletions

View File

@@ -17,8 +17,8 @@
<div class="links">
{% for item in links %}
{% assign link = item.link %}
<a href="{{ link.url }}" target="{{ link.target }}" class="link-button" alt="{{ link.alt }}">
<i class="{{ link.icon }}"></i> {{ link.title }}
<a href="{{ link.url }}" target="{{ link.target }}" class="link-button" alt="{{ link.alt }}" title="{{ link.title }}">
<i class="{{ link.icon }}"></i> {{ link.text }}
</a>
{% endfor %}
</div>
@@ -27,7 +27,7 @@
<div class="button-group">
{% for item in socials %}
{% assign social = item.social %}
<a href="{{ social.url }}" target="{{ social.target }}" class="icon-button" alt="{{ social.alt }}">
<a href="{{ social.url }}" title="{{ social.title }}" target="{{ social.target }}" class="icon-button" alt="{{ social.alt }}">
<i class="{{ social.icon }}"></i>
</a>
{% endfor %}
@@ -43,13 +43,13 @@
<script src="fontawesome/js/all.js" data-auto-replace-svg="nest"></script>
{% if google_analytics_id %}
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id={{ google_analytics_id }}"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-S7G4LWWHH8"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '{{ google_analytics_id }}');
gtag('config', 'G-S7G4LWWHH8');
</script>
{% endif %}
<script src="./scripts.js"></script>