Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
Remove extraneous files, add versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Chinchilla committed Nov 21, 2020
1 parent f5bc1f4 commit 04f8ebb
Show file tree
Hide file tree
Showing 28 changed files with 31 additions and 4,603 deletions.
1 change: 0 additions & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
{{if .Site.Params.themeStyle}}
{{ partial (printf "%s/head.html" .Site.Params.themeStyle) . }}
{{else}}
Expand Down
45 changes: 16 additions & 29 deletions layouts/partials/custom-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,31 @@


<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{{ hugo.Generator }}

<!-- Icons -->
<!-- TODO: Refactor -->
<link rel="apple-touch-icon" sizes="57x57" href="images/favicon/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="images/favicon/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/favicon/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="images/favicon/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/favicon/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="images/favicon/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="images/favicon/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="images/favicon/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="images/favicon/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="images/favicon/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="images/favicon/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon/favicon-16x16.png">

<!-- TODO: Autogenerate and re-add later -->
<!-- <link rel="manifest" href="manifest.json"> -->
<!-- TODO: Needed? -->
<!-- <link rel="canonical" href="#"> -->
<link rel="apple-touch-icon" sizes="57x57" href="{{"images/favicon/apple-icon-57x57.png" | relURL}}">
<link rel="apple-touch-icon" sizes="60x60" href="{{"images/favicon/apple-icon-60x60.png" | relURL}}">
<link rel="apple-touch-icon" sizes="72x72" href="{{"images/favicon/apple-icon-72x72.png" | relURL}}">
<link rel="apple-touch-icon" sizes="76x76" href="{{"images/favicon/apple-icon-76x76.png" | relURL}}">
<link rel="apple-touch-icon" sizes="114x114" href="{{"images/favicon/apple-icon-114x114.png" | relURL}}">
<link rel="apple-touch-icon" sizes="120x120" href="{{"images/favicon/apple-icon-120x120.png" | relURL}}">
<link rel="apple-touch-icon" sizes="144x144" href="{{"images/favicon/apple-icon-144x144.png" | relURL}}">
<link rel="apple-touch-icon" sizes="152x152" href="{{"images/favicon/apple-icon-152x152.png" | relURL}}">
<link rel="apple-touch-icon" sizes="180x180" href="{{"images/favicon/apple-icon-180x180.png" | relURL}}">
<link rel="icon" type="image/png" sizes="192x192" href="{{"images/favicon/android-icon-192x192.png" | relURL}}">
<link rel="icon" type="image/png" sizes="32x32" href="{{"images/favicon/favicon-32x32.png" | relURL}}">
<link rel="icon" type="image/png" sizes="96x96" href="{{"images/favicon/favicon-96x96.png" | relURL}}">
<link rel="icon" type="image/png" sizes="16x16" href="{{"images/favicon/favicon-16x16.png" | relURL}}">

<link rel="canonical" href="{{ .Permalink }}">

{{ $assetBusting := not .Site.Params.disableAssetsBusting }}
<link href="{{"css/theme.css" | relURL}}{{ if $assetBusting }}?{{ now.Unix }}{{ end }}" rel="stylesheet">


<!-- TODO: Needed? -->
<!-- <meta name="theme-color" content="%23ffffff"> -->

<!-- Title -->
<title>{{ .Title }} - {{ .Site.Title }}</title>

<meta property="og:title" content="{{ .Title }}"/>
<meta property="og:site_name" content="{{ .Site.Title }}"/>

<meta property="og:url" content="{{ .Permalink }}"/>
<meta property="og:url" content="{{ .Permalink }}"/>

<meta property="og:type" content="website"/>
<meta name="twitter:title" content="{{ .Title }}"/>
Expand Down
1 change: 1 addition & 0 deletions layouts/partials/flex/body-beforecontent.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
</nav>
{{- end}}
{{- partial "language-selector.html" . }}
{{- partial "version-selector.html" . }}
<section>
{{- partial "menu-footer.html" . }}
</section>
Expand Down
7 changes: 1 addition & 6 deletions layouts/partials/flex/head.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>{{ if .IsHome }}{{ .Site.Params.Title }}{{ else }}{{ .Title }} - {{ .Site.Params.Title }}{{ end }}</title>
<meta name="revised" content="{{ now.Format "2006-01-02T15:04:05 MST" }}">
<title>{{ .Title }} :: {{ .Site.Title }}</title>
<link rel="shortcut icon" href="{{"images/favicon.png" | relURL}}" type="image/x-icon" />
<link href="{{"css/font-awesome.min.css" | relURL}}" rel="stylesheet">
<!-- <link href="{{"css/nucleus.css" | relURL}}" rel="stylesheet"> -->
<link href="{{(printf "theme-%s/style.css" (.Site.Params.themeStyle| default "flex") ) | relURL}}" rel="stylesheet">
{{with .Site.Params.themeVariant}}
<link href="{{(printf "theme-%s/variant-%s.css" ($.Site.Params.themeStyle| default "flex") .) | relURL}}" rel="stylesheet">
{{end}}
<link rel="stylesheet" href="{{"css/bootstrap.min.css" | relURL}}">
<script src="{{"js/jquery-3.5.1.min.js" | relURL}}"></script>
<script type="text/javascript">
Expand Down
65 changes: 0 additions & 65 deletions layouts/partials/head.html

This file was deleted.

13 changes: 0 additions & 13 deletions layouts/partials/original/body-aftercontent.html

This file was deleted.

128 changes: 0 additions & 128 deletions layouts/partials/original/body-beforecontent.html

This file was deleted.

22 changes: 0 additions & 22 deletions layouts/partials/original/head.html

This file was deleted.

17 changes: 0 additions & 17 deletions layouts/partials/original/scripts.html

This file was deleted.

10 changes: 10 additions & 0 deletions layouts/partials/version-selector.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{- if .Site.Params.versions}}
<div class="nav-link versions-dropdown c-px-5 c-py-2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<label>{{ $.Site.Params.version_menu }}</label>
<select id="select-version" onchange="location = this.value;">
{{ range .Site.Params.versions }}
<option id="{{ .version }}" value="{{ .url }}">{{ .version }}</option>
{{ end }}
</select>
</div>
{{- end }}
Loading

0 comments on commit 04f8ebb

Please sign in to comment.