| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | |
| 4 | <head> |
| 5 | <title>{% block title %}{{ SITENAME }}{% endblock title %}</title> |
| 6 | <meta charset="utf-8" /> |
| 7 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 8 | |
| 9 | <link href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400;500;600;700&display=swap" rel="stylesheet"> |
| 10 | <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/style.css"/> |
| 11 | <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/prism.css"/> |
| 12 | |
| 13 | {% if FEED_ATOM %} |
| 14 | <link href="/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" /> |
| 15 | {% endif %} |
| 16 | {% if FEED_RSS %} |
| 17 | <link href="/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" /> |
| 18 | {% endif %} |
| 19 | |
| 20 | {% block head %} |
| 21 | {% endblock head %} |
| 22 | </head> |
| 23 | |
| 24 | <body class="page"> |
| 25 | <div class="page__container"> |
| 26 | |
| 27 | <div class="header"> |
| 28 | <div class="header__container"> |
| 29 | |
| 30 | <div class="header__brand"> |
| 31 | <div class="brand"> |
| 32 | <a href="{{ SITEURL }}/" class="brand__link"> |
| 33 | <div class="brand__logo"> |
| 34 | <img src="{{ PROFILE_IMAGE_URL }}" alt="{{ SITENAME }} Logo" class="brand__image"> |
| 35 | </div> |
| 36 | <div class="brand__text"> |
| 37 | <div class="brand__title">{{ SITENAME }}</div> |
| 38 | <div class="brand__subtitle">{{ SITESUBTITLE }}</div> |
| 39 | </div> |
| 40 | </a> |
| 41 | </div> |
| 42 | </div> |
| 43 | |
| 44 | <nav class="nav"> |
| 45 | <ul class="nav__list"> |
| 46 | {% for title, link in MENUITEMS %} |
| 47 | <li class="nav__item"> |
| 48 | <a href="{{ link }}" class="nav__link">{{ title }}</a> |
| 49 | </li> |
| 50 | {% endfor %} |
| 51 | {% if DISPLAY_PAGES_ON_MENU %} |
| 52 | {% for p in PAGES %} |
| 53 | <li class="nav__item{% if p == page %} nav__item--active{% endif %}"> |
| 54 | <a href="{{ SITEURL }}/{{ p.url }}" class="nav__link">{{ p.title }}</a> |
| 55 | </li> |
| 56 | {% endfor %} |
| 57 | {% endif %} |
| 58 | </ul> |
| 59 | </nav> |
| 60 | |
| 61 | </div> |
| 62 | </div> |
| 63 | |
| 64 | <div class="main"> |
| 65 | <div class="main__container"> |
| 66 | {% block content %} |
| 67 | {% endblock %} |
| 68 | </div> |
| 69 | </div> |
| 70 | |
| 71 | <div class="footer"> |
| 72 | <div class="footer__container"> |
| 73 | <div class="footer__content"> |
| 74 | <span class="footer__text"></span> |
| 75 | </div> |
| 76 | </div> |
| 77 | </div> |
| 78 | |
| 79 | </div> |
| 80 | |
| 81 | <script> |
| 82 | // Make article cards clickable |
| 83 | document.addEventListener('DOMContentLoaded', function() { |
| 84 | const articleCards = document.querySelectorAll('.article-card[data-url]'); |
| 85 | |
| 86 | articleCards.forEach(function(card) { |
| 87 | card.style.cursor = 'pointer'; |
| 88 | |
| 89 | card.addEventListener('click', function(event) { |
| 90 | const url = this.getAttribute('data-url'); |
| 91 | if (event.metaKey) { |
| 92 | window.open(url, '_blank'); |
| 93 | } else { |
| 94 | window.location.href = url; |
| 95 | } |
| 96 | }); |
| 97 | }); |
| 98 | }); |
| 99 | </script> |
| 100 | |
| 101 | <script src="{{ SITEURL }}/theme/prism.js"></script> |
| 102 | </body> |
| 103 | </html> |