header.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!DOCTYPE html>
  2. <html lang="{{ .Page.Language | default "en" }}" class="js csstransforms3d">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. {{ hugo.Generator }}
  7. {{ partial "meta.html" . }}
  8. {{ partial "favicon.html" . }}
  9. {{ partial "seo_schema" . }}
  10. <title>{{ if .IsHome }}{{ .Site.Title }}{{ else }} {{ .Title }} :: {{ .Site.Title }}{{ end }}</title>
  11. {{ $assetBusting := not .Site.Params.disableAssetsBusting }}
  12. <link href="{{"css/nucleus.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
  13. <link href="{{"css/fontawesome-all.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
  14. <link href="{{"css/hybrid.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
  15. <link href="{{"css/featherlight.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
  16. <link href="{{"css/perfect-scrollbar.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
  17. <link href="{{"css/auto-complete.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
  18. <link href="{{"css/atom-one-dark-reasonable.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
  19. <link href="{{"css/theme.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
  20. <link href="{{"css/hugo-theme.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
  21. {{with .Site.Params.themeVariant}}
  22. <link href="{{(printf "css/theme-%s.css" .) | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
  23. {{end}}
  24. <script src="{{"js/jquery-3.3.1.min.js"| relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
  25. <style type="text/css">
  26. :root #header + #content > #left > #rlblock_left{
  27. display:none !important;
  28. }
  29. {{ if .Site.Params.disableInlineCopyToClipBoard }}
  30. :not(pre) > code + span.copy-to-clipboard {
  31. display: none;
  32. }
  33. {{ end }}
  34. </style>
  35. {{ partial "custom-header.html" . }}
  36. </head>
  37. <body class="" data-url="{{ .RelPermalink }}">
  38. {{ partial "menu.html" . }}
  39. <section id="body">
  40. <div id="overlay"></div>
  41. <div class="padding highlightable">
  42. {{if not .IsHome}}
  43. <div>
  44. <div id="top-bar">
  45. {{ if and (or .IsPage .IsSection) .Site.Params.editURL }}
  46. {{ $File := .File }}
  47. {{ $Site := .Site }}
  48. {{with $File.Path }}
  49. <div id="top-github-link">
  50. <a class="github-link" title='{{T "Edit-this-page"}}' href="{{ $Site.Params.editURL }}{{ replace $File.Dir "\\" "/" }}{{ $File.LogicalName }}" target="blank">
  51. <i class="fas fa-code-branch"></i>
  52. <span id="top-github-link-text">{{T "Edit-this-page"}}</span>
  53. </a>
  54. </div>
  55. {{ end }}
  56. {{ end }}
  57. {{$toc := (and (not .Params.disableToc) (not .Params.chapter))}}
  58. <div id="breadcrumbs" itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb">
  59. <span id="sidebar-toggle-span">
  60. <a href="#" id="sidebar-toggle" data-sidebar-toggle="">
  61. <i class="fas fa-bars"></i>
  62. </a>
  63. </span>
  64. {{ if $toc }}
  65. <span id="toc-menu"><i class="fas fa-list-alt"></i></span>
  66. {{ end }}
  67. <span class="links">
  68. {{$showBreadcrumb := (and (not .Params.disableBreadcrumb) (not .Site.Params.disableBreadcrumb))}}
  69. {{if $showBreadcrumb}}
  70. {{ template "breadcrumb" dict "page" . "value" .Title }}
  71. {{ else }}
  72. {{ .Title }}
  73. {{ end }}
  74. </span>
  75. </div>
  76. {{ if $toc }}
  77. {{ partial "toc.html" . }}
  78. {{ end }}
  79. </div>
  80. </div>
  81. {{ end }}
  82. <div id="head-tags">
  83. {{ partial "tags.html" . }}
  84. </div>
  85. {{ if .Params.chapter }}
  86. <div id="chapter">
  87. {{ end }}
  88. <div id="body-inner">
  89. {{if and (not .IsHome) (not .Params.chapter) }}
  90. <h1>
  91. {{ if eq .Kind "taxonomy" }}
  92. {{.Kind}} ::
  93. {{ end }}
  94. {{.Title}}
  95. </h1>
  96. {{end}}
  97. {{define "breadcrumb"}}
  98. {{$parent := .page.Parent }}
  99. {{ if $parent }}
  100. {{ $value := (printf "<a href='%s'>%s</a> > %s" $parent.URL $parent.Title .value) }}
  101. {{ template "breadcrumb" dict "page" $parent "value" $value }}
  102. {{else}}
  103. {{.value|safeHTML}}
  104. {{end}}
  105. {{end}}