Socialify

Folder ..

Viewing base.html
161 lines (158 loc) • 5.4 KB

  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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{% load static %}
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content="{{ request.meta.description }}" />
    <meta name="image" content="{{ request.meta.image }}" />
    <meta name="url" content="{{ request.meta.url }}" />
    <meta name="title" content="Shifoo - {{ title }}" />
    <meta property="og:title" content="Shifoo - {{ title }}" />
    <meta property="og:description" content="{{ request.meta.description }}" />
    <meta property="og:image" content="{{ request.meta.image }}" />
    <meta property="og:url" content="{{ request.meta.url }}" />
    <meta property="twitter:card" content="summary_large_image" />
    <meta property="twitter:title" content="Shifoo - {{ title }}" />
    <meta
      property="twitter:description"
      content="{{ request.meta.description }}"
    />
    <meta property="twitter:image" content="{{ request.meta.image }}" />
    <meta property="robots" content="{{ request.meta.robots }}" />
    <title>Shifoo - {{ title }}</title>
    <link
      type="text/css"
      rel="stylesheet"
      href="{% static 'css/styles.css' %}?nocache=true"
    />
    <link
      type="text/css"
      rel="stylesheet"
      href="{% static 'css/phone_compatibility.css' %}?nocache=true"
    />
    <link
      rel="apple-touch-icon"
      sizes="180x180"
      href="{% static 'images/favicons/apple-touch-icon.png' %}"
    />
    <link
      rel="icon"
      type="image/png"
      sizes="32x32"
      href="{% static 'images/favicons/favicon-32x32.png' %}"
    />
    <link
      rel="icon"
      type="image/png"
      sizes="16x16"
      href="{% static 'images/favicons/favicon-16x16.png' %}"
    />
    <link
      rel="manifest"
      href="{% static 'images/favicons/site.webmanifest' %}"
    />
    <style>
      .equation-container {
        overflow-x: scroll;
        white-space: nowrap; /* Prevent line breaks */
      }
    </style>
  </head>
  <body>
    <video id="bg-video" muted autoplay playsinline loop preload="auto">
      <source
        src="{% static 'videos/background.mp4' %}#t=0.1"
        type="video/mp4"
      />
    </video>
    <div id="overlay"></div>
    <div id="wrap">
      <div id="header">
        <div id="ハンバーガー">
          <div id="ham">
            <span></span>
            <span></span>
            <span></span>
          </div>
        </div>
        <div id="search-area">
          <form action="{% url 'blog:search' %}" method="get" id="search-form">
            <input
              type="text"
              name="q"
              placeholder="Search..."
              autocomplete="off"
              value="{{ request.GET.q }}"
              required
            />
          </form>
        </div>
      </div>

      <table id="main-section" cellpadding="0" cellspacing="0">
        <tr>
          <td id="sidebar" valign="top">
            {% include 'blog/partials/sidebar.html' %}
          </td>
          <td id="content" valign="top" style="padding-left: 20px">
            {% block content %} {% endblock %}
          </td>
        </tr>
      </table>

      <div id="footer" style="clear: both">
        <hr style="margin: 2rem 0" />
        <center>
          {% load ad %} {% for i in '12345789'|make_list %}
          <span
            ><img
              src="{{'buttons'|ad }}"
              alt="Ad"
              style="width: 88px; height: 31px"
          /></span>
          {% endfor %}
          <br />
          {% for i in '12345'|make_list %}
          <span
            ><img
              src="{{'buttons'|ad }}"
              alt="Ad"
              style="width: 88px; height: 31px"
          /></span>
          {% endfor %}
          <br />
        </center>
        <p style="text-align: center; margin-top: 1rem">
          &copy; {% now "Y" %} Shifoo. Source code available on
          <a href="https://github.com/luciferreeves/thatcomputerscientist"
            >GitHub</a
          >. All rights reserved.
        </p>
        <p style="text-align: center">
          <b>PS:</b> The ads shown on this website are fake and purely for
          aesthetic purposes. I do not earn any money from them, neither
          clicking them will redirect you to any other website. If you have any
          questions, comments, or concerns about how this site operates and how
          your data is handled, please check out the
          <a href="{% url 'blog:policy' %}">site policy</a> page. View
          <a href="{% url 'django.contrib.sitemaps.views.sitemap' %}">Sitemap</a
          >.
        </p>
      </div>
    </div>
  </body>

  {% comment %} <div id="tl_block" style="display: none"></div> {% endcomment %}
  <script src="{% static 'js/jquery-1.12.4.min.js' %}"></script>
  <script src="{% static 'js/globals.js' %}"></script>
  <script src="{% static 'js/spells.js' %}"></script>
  <script src="{% static 'js/phone_compatibility.js' %}"></script>
  {% comment %} <script src="{% static 'js/db.js' %}"></script> {% endcomment %}
  <script
      type="text/javascript"
      src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"
  ></script>
  <script src="{% static 'js/tl.js' %}"></script>
  {% if request.COOKIES.summonOneko == 'true' %}
  <script src="{% static 'js/oneko.js' %}"></script>
  {% endif %} {% block scripts %} {% endblock %}
</html>