header.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. {{if not .IsHome}}
  41. <div>
  42. <div id="top-bar">
  43. {{ if and (or .IsPage .IsSection) .Site.Params.editURL }}
  44. {{ $File := .File }}
  45. {{ $Site := .Site }}
  46. {{with $File.Path }}
  47. <div id="top-github-link">
  48. <a class="github-link" title='{{T "Edit-this-page"}}' href="{{ $Site.Params.editURL }}{{ replace $File.Dir "\\" "/" }}{{ $File.LogicalName }}" target="blank">
  49. <i class="fas fa-code-branch"></i>
  50. <span id="top-github-link-text">{{T "Edit-this-page"}}</span>
  51. </a>
  52. </div>
  53. {{ end }}
  54. {{ end }}
  55. <div id="breadcrumbs" itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb">
  56. <span id="sidebar-toggle-span">
  57. <a href="#" id="sidebar-toggle" data-sidebar-toggle="">
  58. <i class="fas fa-bars"></i>
  59. </a>
  60. </span>
  61. <span class="links">
  62. {{$showBreadcrumb := (and (not .Params.disableBreadcrumb) (not .Site.Params.disableBreadcrumb))}}
  63. {{if $showBreadcrumb}}
  64. {{ template "breadcrumb" dict "page" . "value" .Title }}
  65. {{ else }}
  66. {{ .Title }}
  67. {{ end }}
  68. </span>
  69. </div>
  70. </div>
  71. </div>
  72. {{ end }}
  73. {{ if .Params.chapter }}
  74. <div id="chapter">
  75. {{ end }}
  76. <div class="body-outer">
  77. {{$toc := (and (not .Params.disableToc) (not .Params.chapter))}}
  78. {{ if $toc }}
  79. {{ partial "toc.html" . }}
  80. {{ end }}
  81. <div id="body-inner">
  82. {{if and (not .IsHome) (not .Params.chapter) }}
  83. <h1>{{.Title}}</h1>
  84. {{end}}
  85. {{define "breadcrumb"}}
  86. {{$parent := .page.Parent }}
  87. {{ if $parent }}
  88. {{ $value := (printf "<a href='%s'>%s</a> > %s" $parent.URL $parent.Title .value) }}
  89. {{ template "breadcrumb" dict "page" $parent "value" $value }}
  90. {{else}}
  91. {{.value|safeHTML}}
  92. {{end}}
  93. {{end}}