File: base.html

package info (click to toggle)
python-hypothesis 6.148.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,408 kB
  • sloc: python: 63,888; ruby: 1,107; sh: 266; makefile: 42; javascript: 6
file content (103 lines) | stat: -rw-r--r-- 3,093 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html lang="en">

<head>
  <title>{% block title %}{{ SITENAME }}{% endblock title %}</title>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <link href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400;500;600;700&display=swap" rel="stylesheet">
  <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/style.css"/>
  <link rel="stylesheet" type="text/css" href="{{ SITEURL }}/theme/prism.css"/>

  {% if FEED_ATOM %}
    <link href="/{{ FEED_ATOM }}" type="application/atom+xml" rel="alternate" title="{{ SITENAME }} Atom Feed" />
  {% endif %}
  {% if FEED_RSS %}
    <link href="/{{ FEED_RSS }}" type="application/rss+xml" rel="alternate" title="{{ SITENAME }} RSS Feed" />
  {% endif %}

  {% block head %}
  {% endblock head %}
</head>

<body class="page">
  <div class="page__container">

    <div class="header">
      <div class="header__container">

        <div class="header__brand">
          <div class="brand">
            <a href="{{ SITEURL }}/" class="brand__link">
              <div class="brand__logo">
                <img src="{{ PROFILE_IMAGE_URL }}" alt="{{ SITENAME }} Logo" class="brand__image">
              </div>
              <div class="brand__text">
                <div class="brand__title">{{ SITENAME }}</div>
                <div class="brand__subtitle">{{ SITESUBTITLE }}</div>
              </div>
            </a>
          </div>
        </div>

        <nav class="nav">
          <ul class="nav__list">
            {% for title, link in MENUITEMS %}
              <li class="nav__item">
                <a href="{{ link }}" class="nav__link">{{ title }}</a>
              </li>
            {% endfor %}
            {% if DISPLAY_PAGES_ON_MENU %}
              {% for p in PAGES %}
                <li class="nav__item{% if p == page %} nav__item--active{% endif %}">
                  <a href="{{ SITEURL }}/{{ p.url }}" class="nav__link">{{ p.title }}</a>
                </li>
              {% endfor %}
            {% endif %}
          </ul>
        </nav>

      </div>
    </div>

    <div class="main">
      <div class="main__container">
        {% block content %}
        {% endblock %}
      </div>
    </div>

    <div class="footer">
      <div class="footer__container">
        <div class="footer__content">
          <span class="footer__text"></span>
        </div>
      </div>
    </div>

  </div>

  <script>
    // Make article cards clickable
    document.addEventListener('DOMContentLoaded', function() {
      const articleCards = document.querySelectorAll('.article-card[data-url]');

      articleCards.forEach(function(card) {
        card.style.cursor = 'pointer';

        card.addEventListener('click', function(event) {
          const url = this.getAttribute('data-url');
          if (event.metaKey) {
            window.open(url, '_blank');
          } else {
            window.location.href = url;
          }
        });
      });
    });
  </script>

  <script src="{{ SITEURL }}/theme/prism.js"></script>
</body>
</html>