Skip to content

Commit

Permalink
use default baseof layout for year in review page
Browse files Browse the repository at this point in the history
  • Loading branch information
willnorris committed Oct 28, 2021
1 parent 73bddd4 commit 1f70a2a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 51 deletions.
6 changes: 4 additions & 2 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
</head>

<body>
{{ partial "nav.html" . }}
{{ block "nav" . }}{{ partial "nav.html" . }}{{ end }}

{{ block "main" . }}
<!-- Site wrapper -->
<main>
<div class="header">
Expand All @@ -23,8 +24,9 @@
{{ block "content" . }}{{ end }}
</div>
</main>
{{ end }}

{{ partial "footer.html" . }}
{{ block "footer" . }}{{ partial "footer.html" . }}{{ end }}
</body>

<script>document.getElementsByTagName("html")[0].classList.remove("no-js")</script>
Expand Down
55 changes: 6 additions & 49 deletions layouts/_default/year-in-review.html
Original file line number Diff line number Diff line change
@@ -1,44 +1,4 @@
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8" />
<meta name="title" content="{{ .Title }}">
<meta name="description" content="{{ .Description }}">
<meta name="keywords" content="{{ .Params.keywords }}">

<meta name="og:title" content="{{ .Title }}">
<meta name="og:url" content="{{ .Permalink }}">
<!-- <meta name="og:image" content="{{ .Params.logo }}"> -->
<meta name="og:description" content="{{ .Description }}">

<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="{{ .Permalink }}" />
<meta name="twitter:title" content="{{ .Title }}" />
<meta name="twitter:description" content="{{ .Description }}" />
<!-- <meta name="twitter:image" content="{{ .Params.logo }}" /> -->

<meta name="viewport" content="width=device-width, initial-scale=1">

<meta http-equiv='Expires' content='0'>
<meta http-equiv='Pragma' content='no-cache'>
<meta http-equiv='Cache-Control' content='no-cache'>
<meta http-equiv='imagetoolbar' content='no'>

<title>{{ .Title }}</title>
<link rel="shortcut icon" type="image/png" href="{{ "assets/favicon.ico" | relURL }}"/>

<!-- Main CSS -->
{{- $style := resources.Get "css/style.scss" | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}"/>

<!-- Custom CSS -->
{{- with .Params.custom_css }}
{{- $style := resources.Get (printf "css/%s" .) | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}"/>
{{ end }}
</head>

<body data-spy="scroll" data-target="#YIR-navbar">
{{ define "nav" }}
<!-- Navigation Bar -->
<nav>
<div class="nav-title">
Expand All @@ -63,7 +23,9 @@
<li><a href="#follow">@TwitterOSS</a></li>
</ul>
</nav>
{{ end }}

{{ define "main" }}
<!-- Timeline navigation effect from https://codepen.io/nailaahmad/pen/MyZXVE -->
<div class="YIR-wrapper">
<div class="YIR-container">
Expand Down Expand Up @@ -323,18 +285,13 @@ <h1>@TwitterOSS</h1>
</section>

</div> <!-- End of YIR-wrapper -->
{{ end }}

</body>

{{ define "footer"}}
<!-- Get all repos and commit counts -->
<script type="text/javascript">
for (element of document.getElementsByClassName("mobile-heading")) {
element.classList.add("hide")
};
</script>

<script>document.getElementsByTagName("html")[0].classList.remove("no-js")</script>
<script src="{{ "js/main.js" | relURL }}"></script>
<script src="{{ printf "js/%s" .Params.custom_js | relURL }}"></script>
{{ partial "ga.html" . }}
</html>
{{ end }}

0 comments on commit 1f70a2a

Please sign in to comment.