Sha256: 09f15276996517d7823935e5b35c320a96bbc4148ad5cff64d8f3bd0a50cf08f

Contents?: true

Size: 1.44 KB

Versions: 10

Compression:

Stored size: 1.44 KB

Contents

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

{% seo %}

{% feed_meta %}

{% if jekyll.environment == 'production' and site.google_analytics %}
  {% include google-analytics.html %}
{% endif %}

{% if page.math %}
  {% include mathjax.html %}
{% endif %}

<link rel="stylesheet" href="{{ '/assets/css/main.css' | relative_url }}">
<link rel="stylesheet" href="{{ '/assets/css/skin.css' | relative_url }}">

<!-- Begin selecting skin -->
{% unless site.skin %}
  <script>
    const hour = (new Date()).getHours();
    let filename = "";
    if (hour >= 5 && hour < 7) {
      filename = "{{ '/assets/css/skin-sunrise.css' | relative_url }}";
    } else if (hour >= 7 && hour < 17) {
      filename = "{{ '/assets/css/skin-daylight.css' | relative_url }}";
    } else if (hour >= 17 && hour < 19) {
      filename = "{{ '/assets/css/skin-sunset.css' | relative_url }}";
    } else {
      filename = "{{ '/assets/css/skin-midnight.css' | relative_url }}";
    }
    const elem = document.createElement("link");
    elem.setAttribute("rel", "stylesheet");
    elem.setAttribute("type", "text/css");
    elem.setAttribute("href", filename);
    document.getElementsByTagName("head")[0].appendChild(elem);
  </script>
{% endunless %}
<!-- End selecting skin -->

<script async src="https://use.fontawesome.com/releases/v5.0.12/js/all.js"></script>

{% include custom-head.html %}

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
jekyll-theme-hamilton-1.1.0 _includes/head.html
jekyll-theme-hamilton-1.0.0 _includes/head.html
jekyll-theme-hamilton-0.2.1 _includes/head.html
jekyll-theme-hamilton-0.2.0 _includes/head.html
jekyll-theme-hamilton-0.1.2 _includes/head.html
jekyll-theme-hamilton-0.1.1 _includes/head.html
jekyll-theme-hamilton-0.1.0 _includes/head.html
hamilton-0.2.2 _includes/head.html
hamilton-0.2.1 _includes/head.html
hamilton-0.2.0 _includes/head.html