~dricottone/blog

ref: 493bc2322f9ed1687fd3a75031a2f464d84d9245 blog/layouts/partials/head.html -rw-r--r-- 1.3 KiB
493bc232Dominic Ricottone Ignore Hugo's 'new' build lock file 2 years ago
                                                                                
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
<head>
  <meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1">

  {{ $title := print .Title " | " .Site.Title }}
  {{ if or (.IsHome) (.Params.site_title) }}{{ $title = .Site.Title }}{{ end }}
  <title>{{ $title }}</title>

  <!--Stylesheets-->
  <link rel="stylesheet" type="text/css" href="/css/common.css" />
  <link rel="stylesheet" type="text/css" href="/css/header.css" />
  <link rel="stylesheet" type="text/css" href="/css/navi.css" />
  <link rel="stylesheet" type="text/css" href="/css/blog.css" />
  <!--<link rel="stylesheet" type="text/css" href="/css/cgit.css" />-->
  <!--<link rel="stylesheet" type="text/css" href="/css/gallery.css" />-->

  <!--External Dependencies-->
  <script src="/js/jquery-3.5.1.min.js"></script>
  <!--<link rel="stylesheet" type="text/css" href="/css/lightbox-2.11.3.min.css" />-->
  <!--<script src="/js/lightbox-2.11.3.min.js"></script>-->

  <!--JavaScript-->
  <script>
$(document).ready(function() {
  $(".trigger").on("click", function() {
    $(this).toggleClass("selection");
    var classes = this.className.split(/\s+/);
    var target_classes = classes.filter(c => c.startsWith("target-"));
    for (var c=0; c<target_classes.length; c++) {
      var target = "." + target_classes[c].split(/\-/)[1];
      $(target).toggleClass("shown");
    }
  });
});
  </script>

</head>