|
1 | 1 | <!DOCTYPE html> |
2 | 2 | <html lang="en"> |
3 | | - <head> |
4 | | - <meta charset="utf-8"> |
5 | | - <meta name="viewport" content="width=device-width, initial-scale=1"> |
6 | | - <title>{{ page.title | default: site.title }}</title> |
7 | | - <meta name="description" content="{{ page.description | default: site.description }}"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | + <title>{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}</title> |
| 7 | + <meta name="description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}"> |
| 8 | + |
| 9 | + <!-- SEO Meta Tags --> |
| 10 | + <meta name="keywords" content="Data Science, Analytics, Interview Preparation, SQL, Python, Statistics, Meta"> |
| 11 | + <meta name="author" content="Data Science Analytical Handbook"> |
| 12 | + |
| 13 | + <!-- Open Graph / Facebook --> |
| 14 | + <meta property="og:type" content="website"> |
| 15 | + <meta property="og:url" content="{{ page.url | absolute_url }}"> |
| 16 | + <meta property="og:title" content="{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}"> |
| 17 | + <meta property="og:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}"> |
| 18 | + |
| 19 | + <!-- Twitter --> |
| 20 | + <meta property="twitter:card" content="summary_large_image"> |
| 21 | + <meta property="twitter:url" content="{{ page.url | absolute_url }}"> |
| 22 | + <meta property="twitter:title" content="{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}"> |
| 23 | + <meta property="twitter:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}"> |
| 24 | + |
| 25 | + <!-- Font Preconnects --> |
| 26 | + <link rel="preconnect" href="https://fonts.googleapis.com"> |
| 27 | + <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
| 28 | + |
| 29 | + <!-- Styles --> |
| 30 | + <link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}"> |
| 31 | + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism.min.css"> |
| 32 | + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> |
8 | 33 |
|
9 | 34 | <!-- MathJax --> |
10 | | - <script async src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> |
11 | 35 | <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> |
12 | 36 |
|
13 | | - <!-- Font Awesome --> |
14 | | - <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"> |
| 37 | + <!-- RSS Feed --> |
| 38 | + {% feed_meta %} |
| 39 | +</head> |
| 40 | +<body> |
| 41 | + <div class="page-wrapper"> |
| 42 | + <!-- Skip to main content link --> |
| 43 | + <a href="#main-content" class="skip-link">Skip to main content</a> |
| 44 | + |
| 45 | + <!-- Header --> |
| 46 | + <header class="site-header"> |
| 47 | + <nav class="main-nav"> |
| 48 | + <div class="nav-brand"> |
| 49 | + <a href="{{ '/' | relative_url }}"> |
| 50 | + <i class="fas fa-chart-line"></i> |
| 51 | + <span>{{ site.title | default: "Data Science Handbook" }}</span> |
| 52 | + </a> |
| 53 | + </div> |
| 54 | + <button class="nav-toggle" aria-label="Open navigation menu" aria-expanded="false"> |
| 55 | + <i class="fas fa-bars"></i> |
| 56 | + </button> |
| 57 | + <ul class="nav-links"> |
| 58 | + <li><a href="{{ '/' | relative_url }}" {% if page.url == '/' %}class="active"{% endif %}>Home</a></li> |
| 59 | + <li><a href="{{ '/introduction/' | relative_url }}" {% if page.url contains 'introduction' %}class="active"{% endif %}>Introduction</a></li> |
| 60 | + <li><a href="{{ '/foundational_knowledge/1/' | relative_url }}" {% if page.url contains 'foundational' %}class="active"{% endif %}>Foundation</a></li> |
| 61 | + <li><a href="{{ '/interview-preparation/technical-skills/' | relative_url }}" {% if page.url contains 'interview' %}class="active"{% endif %}>Interview Prep</a></li> |
| 62 | + <li><a href="{{ '/resources-practice/' | relative_url }}" {% if page.url contains 'resources' %}class="active"{% endif %}>Resources</a></li> |
| 63 | + </ul> |
| 64 | + <div class="nav-actions"> |
| 65 | + <button class="theme-toggle" aria-label="Toggle dark mode" title="Toggle theme"> |
| 66 | + <i class="fas fa-moon"></i> |
| 67 | + </button> |
| 68 | + <a href="{{ site.github_url }}" class="btn btn-secondary" target="_blank"> |
| 69 | + <i class="fab fa-github"></i> GitHub |
| 70 | + </a> |
| 71 | + </div> |
| 72 | + </nav> |
| 73 | + </header> |
15 | 74 |
|
16 | | - <!-- Site CSS --> |
17 | | - <link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}"> |
18 | | - </head> |
19 | | - <body> |
20 | | - {% include sidebar.html %} |
| 75 | + <!-- Sidebar (for pages that need it) --> |
| 76 | + {% unless page.url == '/' %} |
| 77 | + {% include sidebar.html %} |
| 78 | + {% endunless %} |
21 | 79 |
|
22 | | - <div class="container"> |
23 | | - <main class="main-content"> |
24 | | - {{ content }} |
25 | | - <footer> |
26 | | - <p>© {{ site.time | date: "%Y" }} {{ site.author | default: "" }}</p> |
| 80 | + <!-- Main Content --> |
| 81 | + <main class="main-content" id="main-content"> |
| 82 | + <article class="content"> |
| 83 | + {{ content }} |
| 84 | + </article> |
| 85 | + </main> |
| 86 | + |
| 87 | + <!-- Footer --> |
| 88 | + <footer class="site-footer"> |
| 89 | + <div class="footer-content"> |
| 90 | + <div class="footer-section"> |
| 91 | + <h4>Quick Links</h4> |
| 92 | + <ul> |
| 93 | + <li><a href="{{ '/introduction/' | relative_url }}">Introduction</a></li> |
| 94 | + <li><a href="{{ '/foundational_knowledge/1/' | relative_url }}">Foundational Knowledge</a></li> |
| 95 | + <li><a href="{{ '/interview-preparation/technical-skills/' | relative_url }}">Interview Preparation</a></li> |
| 96 | + <li><a href="{{ '/resources-practice/' | relative_url }}">Resources & Practice</a></li> |
| 97 | + </ul> |
| 98 | + </div> |
| 99 | + <div class="footer-section"> |
| 100 | + <h4>Topics</h4> |
| 101 | + <ul> |
| 102 | + <li><a href="{{ '/foundational_knowledge/1/' | relative_url }}">Statistics & Probability</a></li> |
| 103 | + <li><a href="{{ '/foundational_knowledge/2-SQL/' | relative_url }}">SQL & Data</a></li> |
| 104 | + <li><a href="{{ '/foundational_knowledge/3/' | relative_url }}">Python for Analysis</a></li> |
| 105 | + <li><a href="{{ '/interview-preparation/analytical-reasoning/' | relative_url }}">Analytical Reasoning</a></li> |
| 106 | + </ul> |
| 107 | + </div> |
| 108 | + <div class="footer-section"> |
| 109 | + <h4>Community</h4> |
| 110 | + <ul> |
| 111 | + <li><a href="{{ site.github_url }}" target="_blank">GitHub Repository</a></li> |
| 112 | + <li><a href="{{ site.issues_url }}" target="_blank">Report Issues</a></li> |
| 113 | + <li><a href="{{ site.github_url }}/pulls" target="_blank">Contribute</a></li> |
| 114 | + <li><a href="{{ '/CODE_OF_CONDUCT/' | relative_url }}">Code of Conduct</a></li> |
| 115 | + </ul> |
| 116 | + </div> |
| 117 | + </div> |
| 118 | + <div class="footer-bottom"> |
| 119 | + <p>© {{ site.time | date: '%Y' }} {{ site.title }}. Built with ❤️ for aspiring data scientists.</p> |
| 120 | + <p>Licensed under <a href="{{ '/LICENSE/' | relative_url }}">MIT License</a></p> |
| 121 | + </div> |
27 | 122 | </footer> |
28 | | - </main> |
29 | 123 | </div> |
30 | | - </body> |
| 124 | + |
| 125 | + <!-- Scripts --> |
| 126 | + <script defer src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-core.min.js"></script> |
| 127 | + <script defer src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js"></script> |
| 128 | + <script> |
| 129 | + // Mobile navigation toggle |
| 130 | + document.addEventListener('DOMContentLoaded', function() { |
| 131 | + const navToggle = document.querySelector('.nav-toggle'); |
| 132 | + const navLinks = document.querySelector('.nav-links'); |
| 133 | + |
| 134 | + if (navToggle && navLinks) { |
| 135 | + navToggle.addEventListener('click', function() { |
| 136 | + navLinks.classList.toggle('active'); |
| 137 | + const expanded = navToggle.getAttribute('aria-expanded') === 'true'; |
| 138 | + navToggle.setAttribute('aria-expanded', !expanded); |
| 139 | + }); |
| 140 | + } |
| 141 | + |
| 142 | + // Theme toggle |
| 143 | + const themeToggle = document.querySelector('.theme-toggle'); |
| 144 | + if (themeToggle) { |
| 145 | + themeToggle.addEventListener('click', function() { |
| 146 | + const currentTheme = document.documentElement.getAttribute('data-theme'); |
| 147 | + const newTheme = currentTheme === 'dark' ? 'light' : 'dark'; |
| 148 | + document.documentElement.setAttribute('data-theme', newTheme); |
| 149 | + localStorage.setItem('theme', newTheme); |
| 150 | + |
| 151 | + const icon = themeToggle.querySelector('i'); |
| 152 | + icon.className = newTheme === 'dark' ? 'fas fa-sun' : 'fas fa-moon'; |
| 153 | + }); |
| 154 | + |
| 155 | + // Check for saved theme preference |
| 156 | + const savedTheme = localStorage.getItem('theme'); |
| 157 | + if (savedTheme) { |
| 158 | + document.documentElement.setAttribute('data-theme', savedTheme); |
| 159 | + const icon = themeToggle.querySelector('i'); |
| 160 | + icon.className = savedTheme === 'dark' ? 'fas fa-sun' : 'fas fa-moon'; |
| 161 | + } |
| 162 | + } |
| 163 | + |
| 164 | + // Sticky header scroll effect |
| 165 | + const header = document.querySelector('.site-header'); |
| 166 | + if (header) { |
| 167 | + window.addEventListener('scroll', function() { |
| 168 | + if (window.scrollY > 50) { |
| 169 | + header.classList.add('scrolled'); |
| 170 | + } else { |
| 171 | + header.classList.remove('scrolled'); |
| 172 | + } |
| 173 | + }); |
| 174 | + } |
| 175 | + }); |
| 176 | + </script> |
| 177 | +</body> |
31 | 178 | </html> |
0 commit comments