|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 6 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 7 | + |
| 8 | + <title>{% if page.title %}{{ page.title | escape }} | {{ site.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title> |
| 9 | + <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}"> |
| 10 | + |
| 11 | + <!-- CSS --> |
| 12 | + <link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}"> |
| 13 | + |
| 14 | + <!-- RSS --> |
| 15 | + <link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ '/feed.xml' | relative_url }}"> |
| 16 | + |
| 17 | + <!-- Meta tags --> |
| 18 | + <meta name="author" content="{{ site.author }}"> |
| 19 | + <meta name="twitter:card" content="summary"> |
| 20 | + <meta name="twitter:title" content="{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}"> |
| 21 | + <meta name="twitter:description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}"> |
| 22 | + |
| 23 | + <meta property="og:title" content="{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}"> |
| 24 | + <meta property="og:description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}"> |
| 25 | + <meta property="og:type" content="website"> |
| 26 | + <meta property="og:url" content="{{ page.url | absolute_url }}"> |
| 27 | + |
| 28 | + <!-- Syntax highlighting --> |
| 29 | + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github.min.css"> |
| 30 | + <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script> |
| 31 | + <script>hljs.highlightAll();</script> |
| 32 | +</head> |
| 33 | + |
| 34 | +<body> |
| 35 | + {% include navigation.html %} |
| 36 | + |
| 37 | + <main class="main-content"> |
| 38 | + <div class="container"> |
| 39 | + {{ content }} |
| 40 | + </div> |
| 41 | + </main> |
| 42 | + |
| 43 | + {% include footer.html %} |
| 44 | + |
| 45 | + <!-- JavaScript --> |
| 46 | + <script src="{{ '/assets/js/main.js' | relative_url }}"></script> |
| 47 | + <script> |
| 48 | + // Add active class to current nav item |
| 49 | + document.addEventListener('DOMContentLoaded', function() { |
| 50 | + const currentPath = window.location.pathname; |
| 51 | + const navLinks = document.querySelectorAll('.nav-links a'); |
| 52 | + |
| 53 | + navLinks.forEach(link => { |
| 54 | + if (link.getAttribute('href') === currentPath || |
| 55 | + (currentPath.includes(link.getAttribute('href')) && link.getAttribute('href') !== '/')) { |
| 56 | + link.classList.add('active'); |
| 57 | + } |
| 58 | + }); |
| 59 | + }); |
| 60 | + </script> |
| 61 | +</body> |
| 62 | +</html> |
0 commit comments