~dricottone/blog

ref: 65386b2566bec709fd055c2f502bd6380302a057 blog/layouts/partials/head.html -rw-r--r-- 1.3 KiB
65386b25Dominic Ricottone New post and redid some styling/templating 3 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>