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