header.html 4.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. <title>{{ .Title }} :: {{ .Site.Title }}</title>
  10. {{ $assetBusting := not .Site.Params.disableAssetsBusting }}
  11. <link href="{{"css/nucleus.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
  12. <link href="{{"css/fontawesome-all.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
  13. <link href="{{"css/hybrid.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
  14. <link href="{{"css/featherlight.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
  15. <link href="{{"css/perfect-scrollbar.min.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
  16. <link href="{{"css/auto-complete.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
  17. <link href="{{"css/theme.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
  18. <link href="{{"css/hugo-theme.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
  19. {{with .Site.Params.themeVariant}}
  20. <link href="{{(printf "css/theme-%s.css" .) | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
  21. {{end}}
  22. <script src="{{"js/jquery-2.x.min.js"| relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
  23. <style type="text/css">
  24. :root #header + #content > #left > #rlblock_left{
  25. display:none !important;
  26. }
  27. {{ if .Site.Params.disableInlineCopyToClipBoard }}
  28. :not(pre) > code + span.copy-to-clipboard {
  29. display: none;
  30. }
  31. {{ end }}
  32. </style>
  33. {{ partial "custom-header.html" . }}
  34. </head>
  35. <body class="" data-url="{{ .RelPermalink }}">
  36. {{ partial "menu.html" . }}
  37. <section id="body">
  38. <div id="overlay"></div>
  39. <div class="padding highlightable">
  40. <div>
  41. <div id="top-bar">
  42. {{ if and (or .IsPage .IsSection) .Site.Params.editURL }}
  43. {{ $File := .File }}
  44. {{ $Site := .Site }}
  45. {{with $File.Path }}
  46. <div id="top-github-link">
  47. <a class="github-link" title='{{T "Edit-this-page"}}' href="{{ $Site.Params.editURL }}{{ replace $File.Dir "\\" "/" }}{{ $File.LogicalName }}" target="blank">
  48. <i class="fas fa-code-branch"></i>
  49. <span id="top-github-link-text">{{T "Edit-this-page"}}</span>
  50. </a>
  51. </div>
  52. {{ end }}
  53. {{ end }}
  54. <div id="breadcrumbs" itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb">
  55. <span id="sidebar-toggle-span">
  56. <a href="#" id="sidebar-toggle" data-sidebar-toggle="">
  57. <i class="fas fa-bars"></i>
  58. </a>
  59. </span>
  60. <span class="links">
  61. {{$showBreadcrumb := (and (not .Params.disableBreadcrumb) (not .Site.Params.disableBreadcrumb))}}
  62. {{if $showBreadcrumb}}
  63. {{ template "breadcrumb" dict "page" . "value" .Title }}
  64. {{ else }}
  65. {{ .Title }}
  66. {{ end }}
  67. </span>
  68. </div>
  69. </div>
  70. </div>
  71. {{ if .Params.chapter }}
  72. <div id="chapter">
  73. {{ end }}
  74. <div class="body-outer">
  75. {{$toc := (and (not .Params.disableToc) (not .Params.chapter))}}
  76. {{ if $toc }}
  77. {{ partial "toc.html" . }}
  78. {{ end }}
  79. <div id="body-inner">
  80. {{if and (not .IsHome) (not .Params.chapter) }}
  81. <h1>{{.Title}}</h1>
  82. {{end}}
  83. {{define "breadcrumb"}}
  84. {{$parent := .page.Parent }}
  85. {{ if $parent }}
  86. {{ $value := (printf "<a href='%s'>%s</a> > %s" $parent.URL $parent.Title .value) }}
  87. {{ template "breadcrumb" dict "page" $parent "value" $value }}
  88. {{else}}
  89. {{.value|safeHTML}}
  90. {{end}}
  91. {{end}}