github.com/mweagle/Sparta@v1.15.0/docs_source/layouts/partials/header.html (about)

     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  
    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/theme.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
    19      <link href="{{"css/hugo-theme.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
    20      {{with .Site.Params.themeVariant}}
    21        <link href="{{(printf "css/theme-%s.css" .) | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
    22      {{end}}
    23  
    24      <script src="{{"js/jquery-3.3.1.min.js"| relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}"></script>
    25      
    26      <link href="{{"css/vs.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">
    27      <script src="{{"js/highlight.pack.js" | relURL}}{{ if not .Site.Params.disableAssetsBusting }}?{{ now.Unix }}{{ end }}"></script>
    28      <script>hljs.initHighlightingOnLoad();</script>
    29      
    30  
    31      <style>
    32        :root #header + #content > #left > #rlblock_left{
    33            display:none !important;
    34        }
    35        {{ if .Site.Params.disableInlineCopyToClipBoard }}
    36          :not(pre) > code + span.copy-to-clipboard {
    37              display: none;
    38          }
    39        {{ end }}
    40      </style>
    41      {{ partial "custom-header.html" . }}
    42    </head>
    43    <body class="" data-url="{{ .RelPermalink }}">
    44      {{ partial "menu.html" . }}
    45          <section id="body">
    46          <div id="overlay"></div>
    47          <div class="padding highlightable">
    48                {{if not .IsHome}}
    49                <div>
    50                  <div id="top-bar">
    51                  {{ if and (or .IsPage .IsSection) .Site.Params.editURL }}
    52                    {{ $File := .File }}
    53                    {{ $Site := .Site }}
    54                    {{with $File.Path }}
    55                    <div id="top-github-link">
    56                      <a class="github-link" title='{{T "Edit-this-page"}}' href="{{ $Site.Params.editURL }}{{ replace $File.Dir "\\" "/" }}{{ $File.LogicalName }}" target="blank">
    57                        <i class="fas fa-code-branch"></i>
    58                        <span id="top-github-link-text">{{T "Edit-this-page"}}</span>
    59                      </a>
    60                    </div>
    61                    {{ end }}
    62                  {{ end }}
    63                  {{$toc := (and (not .Params.disableToc) (not .Params.chapter))}}
    64                  <div id="breadcrumbs" itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb">
    65                      <span id="sidebar-toggle-span">
    66                          <a href="#" id="sidebar-toggle" data-sidebar-toggle="">
    67                            <i class="fas fa-bars"></i>
    68                          </a>
    69                      </span>
    70                    {{ if $toc }}
    71                    <span id="toc-menu"><i class="fas fa-list-alt"></i></span>
    72                    {{ end }}
    73                    <span class="links">
    74                   {{$showBreadcrumb := (and (not .Params.disableBreadcrumb) (not .Site.Params.disableBreadcrumb))}}
    75                   {{if $showBreadcrumb}}
    76                      {{ template "breadcrumb" dict "page" . "value" .Title }}
    77                   {{ else }}
    78                     {{ .Title }} 
    79                   {{ end }}
    80                    </span>
    81                  </div>
    82                  {{ if $toc }}
    83                      {{ partial "toc.html" . }}
    84                  {{ end }}
    85                </div>
    86              </div>
    87              {{ end }}
    88          <div id="head-tags">
    89          {{ partial "tags.html" . }}
    90          </div>
    91          {{ if .Params.chapter }}
    92            <div id="chapter">
    93          {{ end }}
    94          <div id="body-inner">
    95            {{if and (not .IsHome) (not .Params.chapter) }}
    96              <h1>
    97                {{ if eq .Kind "taxonomy" }}
    98                  {{.Kind}} ::
    99                {{ end }}
   100                {{.Title}}
   101              </h1>
   102            {{end}}
   103  
   104          {{define "breadcrumb"}}
   105            {{$parent := .page.Parent }}
   106            {{ if $parent }}
   107              {{ $value := (printf "<a href='%s'>%s</a> > %s" $parent.URL $parent.Title .value) }}
   108              {{ template "breadcrumb" dict "page" $parent "value" $value }} 
   109            {{else}}
   110              {{.value|safeHTML}}
   111            {{end}}
   112          {{end}}
   113