diff options
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/footer.html | 43 | ||||
-rw-r--r-- | layouts/partials/head.html | 25 | ||||
-rw-r--r-- | layouts/partials/navbar.html | 27 | ||||
-rw-r--r-- | layouts/partials/page-meta-links.html | 24 | ||||
-rw-r--r-- | layouts/partials/scripts.html | 23 |
5 files changed, 0 insertions, 142 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html deleted file mode 100644 index 0ad97db94..000000000 --- a/layouts/partials/footer.html +++ /dev/null @@ -1,43 +0,0 @@ -{{ $links := .Site.Params.links }} -<footer class="bg-dark py-5 row d-print-none"> - <div class="container-fluid mx-sm-5"> - <div class="row"> - <div class="col-6 col-sm-4 text-xs-center order-sm-2"> - {{ with $links }} - {{ with index . "user"}} - {{ template "footer-links-block" . }} - {{ end }} - {{ end }} - </div> - <div class="col-6 col-sm-4 text-right text-xs-center order-sm-3"> - {{ with $links }} - {{ with index . "developer"}} - <ul class="list-inline mb-0"> - {{ template "footer-links-block" . }} - {{ end }} - <li class="list-inline-item mx-2" > </li> - <li class="list-inline-item mx-2" > - <img src="/img/powered-gvisor.png" alt="Powered by gVisor"> - </li> - </ul> - {{ end }} - </div> - <div class="col-12 col-sm-4 text-center py-2 order-sm-2"> - {{ with .Site.Params.copyright }}<div><small class="text-white">© {{ now.Year}} {{ .}} {{ T "footer_all_rights_reserved" }}</small></div>{{ end }} - {{ with .Site.Params.privacy_policy }}<div><small class="ml-1"><a href="{{ . }}">{{ T "footer_privacy_policy" }}</a></small></div>{{ end }} - {{ if not .Site.Params.ui.footer_about_disable }} - {{ with .Site.GetPage "about" }}<p class="mt-2"><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>{{ end }} - {{ end }} - </div> - </div> - </div> -</footer> -{{ define "footer-links-block" }} - {{ range . }} - <li class="list-inline-item mx-2 h3" data-toggle="tooltip" data-placement="top" title="{{ .name }}"> - <a class="text-white" target="_blank" rel="noopener" href="{{ .url }}"> - <i class="{{ .icon }}"></i> - </a> - </li> - {{ end }} -{{ end }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html deleted file mode 100644 index 1587dbddc..000000000 --- a/layouts/partials/head.html +++ /dev/null @@ -1,25 +0,0 @@ -<meta charset="utf-8"> -<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> -{{ .Hugo.Generator }} -{{ if eq (getenv "HUGO_ENV") "production" }} -<META NAME="ROBOTS" CONTENT="INDEX, FOLLOW"> -{{ else }} -<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"> -{{ end }} -{{ range .AlternativeOutputFormats -}} -<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" href="{{ .Permalink | safeURL }}"> -{{ end -}} -{{ partialCached "favicons.html" . }} -<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{ end }}</title> -<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}"> -{{- template "_internal/opengraph.html" . -}} -{{- template "_internal/google_news.html" . -}} -{{- template "_internal/schema.html" . -}} -{{- template "_internal/twitter_cards.html" . -}} -{{ if eq (getenv "HUGO_ENV") "production" }} -{{ template "_internal/google_analytics_async.html" . }} -{{ end }} -{{ partialCached "head-css.html" . "asdf" }} -<script src="/js/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script> -<script src="/js/d3.v4.min.js" integrity="sha384-1EOYqz4UgZkewWm70NbT1JBUXSQpOIS2AaJy6/evZH+lXOrt9ITSJbFctNeyBoIJ" crossorigin="anonymous"></script> -{{ partial "hooks/head-end.html" . }} diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html deleted file mode 100644 index 393684b8c..000000000 --- a/layouts/partials/navbar.html +++ /dev/null @@ -1,27 +0,0 @@ -<!-- Forked from main theme. Not uppercase. --> -{{ $cover := .HasShortcode "blocks/cover" }} -<nav class="js-navbar-scroll navbar navbar-expand navbar-dark {{ if $cover}} td-navbar-cover {{ end }}flex-column flex-md-row td-navbar"> - <a class="navbar-brand" href="{{ .Site.Home.RelPermalink }}"> - <span class="navbar-logo">{{ with resources.Get "icons/logo.svg" }}{{ ( . | minify).Content | safeHTML }} {{ end }}</span><span class="font-weight-bold">{{ .Site.Title }}</span> - </a> - <div class="td-navbar-nav-scroll ml-md-auto" id="main_navbar"> - <ul class="navbar-nav mt-2 mt-lg-0"> - {{ $p := . }} - {{ range .Site.Menus.main }} - <li class="nav-item mr-4 mb-2 mb-lg-0"> - {{ $active := or ($p.IsMenuCurrent "main" .) ($p.HasMenuCurrent "main" .) }} - {{ with .Page }} - {{ $active = or $active ( $.IsDescendant .) }} - {{ end }} - <a class="nav-link{{if $active }} active{{end}}" href="{{ with .Page }}{{ .RelPermalink }}{{ else }}{{ .URL | relLangURL }}{{ end }}"><span{{if $active }} class="active"{{end}}>{{ .Name }}</span></a> - </li> - {{ end }} - {{ if (gt (len .Site.Home.Translations) 0) }} - <li class="nav-item dropdown d-none d-lg-block"> - {{ partial "navbar-lang-selector.html" . }} - </li> - {{ end }} - </ul> - </div> - <div class="navbar-nav d-none d-lg-block">{{ partial "search-input.html" . }}</div> -</nav> diff --git a/layouts/partials/page-meta-links.html b/layouts/partials/page-meta-links.html deleted file mode 100644 index ce75b8163..000000000 --- a/layouts/partials/page-meta-links.html +++ /dev/null @@ -1,24 +0,0 @@ -{{ if .Path }} -{{ $gh_repo := ($.Param "github_repo") }} -{{ $gh_subdir := ($.Param "github_subdir") }} -{{ $gh_project_repo := ($.Param "github_project_repo") }} -{{ if $gh_repo }} -<div class="td-page-meta ml-2 pb-1 pt-2 mb-0"> -{{ $editURL := printf "%s/edit/master/content/%s" $gh_repo .Path }} -{{ if and ($gh_subdir) (.Site.IsMultiLingual) }} -{{ $editURL = printf "%s/edit/master/%s/content/%s/%s" $gh_repo $gh_subdir ($.Site.Language.Lang) $.Path }} -{{ else if .Site.IsMultiLingual }} -{{ $editURL = printf "%s/edit/master/content/%s/%s" $gh_repo ($.Site.Language.Lang) .Path }} -{{ else if $gh_subdir }} -{{ $editURL = printf "%s/edit/master/%s/content/%s" $gh_repo $gh_subdir $.Path }} -{{ end }} -{{ $issuesURL := printf "%s/issues/new?title=%s" $gh_repo (htmlEscape $.Title )}} -<a href="{{ $editURL }}" target="_blank"><i class="fa fa-edit fa-fw"></i> {{ T "post_edit_this" }}</a> -<a href="{{ $issuesURL }}" target="_blank"><i class="fab fa-github fa-fw"></i> {{ T "post_create_issue" }}</a> -{{ if $gh_project_repo }} -{{ $project_issueURL := printf "%s/issues/new" $gh_project_repo }} -<a href="{{ $project_issueURL }}" target="_blank"><i class="fas fa-tasks fa-fw"></i> {{ T "post_create_project_issue" }}</a> -{{ end }} -</div> -{{ end }} -{{ end }} diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html deleted file mode 100644 index 08f400598..000000000 --- a/layouts/partials/scripts.html +++ /dev/null @@ -1,23 +0,0 @@ -<script src="/js/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script> -<script src="/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script> -{{ $jsBase := resources.Get "js/base.js" }} -{{ $jsSearch := resources.Get "js/search.js" | resources.ExecuteAsTemplate "js/search.js" .Site.Home }} -{{ $js := (slice $jsBase $jsSearch) | resources.Concat "js/main.js" }} -{{ if .Site.IsServer }} -<script src="{{ $js.RelPermalink }}"></script> -{{ else }} -{{ $js := $js | minify | fingerprint }} -<script src="{{ $js.RelPermalink }}" integrity="{{ $js.Data.Integrity }}"></script> -{{ end }} -{{ partial "hooks/body-end.html" . }} - -<script type="text/javascript"> - if (location.pathname == "/docs" || location.pathname.startsWith("/docs/")) { - $("body.td-page,body.td-section").find("main h2,h3,h4").each(function() { - var fragment = $(this).attr('id'); - if (fragment !== undefined && fragment !== "") { - $(this).append(' <a href="#'+fragment+'" class="header-link"><i class="fas fa-link"></i></a>'); - } - }); - } -</script> |