Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 40 additions & 28 deletions layouts/404.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,36 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
{{ partial "head.html" . }}
{{ partial "head.html" . }}

<body class="env-production emoji-size-boost page-responsive page-profile">
<body class="env-production emoji-size-boost page-responsive page-profile">
{{ partial "header" . }}
<div class="application-main d-flex flex-auto flex-column" data-commit-hovercards-enabled="" data-color-mode="light">
<main>
<div class="bg-gray-dark text-white py-5 text-center">
<div class="pt-5 text-bold mx-2 mt-0" style="font-size: 100px; margin-bottom: 20px; line-height: 0">
4<span class="not-found-octocat-wrapper d-inline-block mx-2 bg-gray-dark position-relative">
<svg class="not-found-lightbulb-ani position-relative" xmlns="http://www.w3.org/2000/svg"
x="0px" y="0px" viewBox="0 0 132.1 129.8" enable-background="new 0 0 132.1 129.8" width="72"
xml:space="preserve">
<path fill="#fff" d="M110.8,19c12.2,12.2,18.5,27.5,18.9,45.9c-0.3,14.5-4.4,27.3-12.5,38.3c-8.1,11-18.7,18.8-31.8,23.3
<div
class="application-main d-flex flex-auto flex-column"
data-commit-hovercards-enabled=""
data-color-mode="light"
>
<main>
<div class="bg-gray-dark text-white py-5 text-center">
<div
class="pt-5 text-bold mx-2 mt-0"
style="font-size: 100px; margin-bottom: 20px; line-height: 0"
>
4<span
class="not-found-octocat-wrapper d-inline-block mx-2 bg-gray-dark position-relative"
>
<svg
class="not-found-lightbulb-ani position-relative"
xmlns="http://www.w3.org/2000/svg"
x="0px"
y="0px"
viewBox="0 0 132.1 129.8"
enable-background="new 0 0 132.1 129.8"
width="72"
xml:space="preserve"
>
<path
fill="#fff"
d="M110.8,19c12.2,12.2,18.5,27.5,18.9,45.9c-0.3,14.5-4.4,27.3-12.5,38.3c-8.1,11-18.7,18.8-31.8,23.3
c-1.6,0.3-2.7,0-3.4-0.7c-0.7-0.7-1-1.5-1-2.5l0.1-17.7c-0.1-3-0.6-5.6-1.4-7.5c-0.8-2-1.9-3.5-3-4.5c7.5-0.5,14.3-2.9,20.2-7.3
c6-4.3,9.1-12.6,9.4-24.8c-0.1-3.5-0.7-6.8-1.8-9.6c-1.1-2.9-2.8-5.4-4.9-7.7c0.5-0.8,0.9-2.8,1.3-5.8c0.3-3-0.3-6.8-1.9-11.4
c0-0.3-1.4-0.2-4.3,0.2c-2.9,0.4-7.4,2.6-13.6,6.5c-5.2-1.4-10.6-2.2-16.2-2.2s-11,0.7-16.2,2.2c-6.2-4-10.7-6.1-13.6-6.5
Expand All @@ -21,23 +39,17 @@
c-3.7,0-7.1-2.4-10.3-7c0-0.3-0.8-1.3-2.5-3.2c-1.7-1.9-4.1-3-7.3-3.5c-0.4-0.1-1.2,0.1-2.5,0.5c-1.2,0.4-0.6,1.6,2,3.5
c0.1-0.1,0.9,0.6,2.5,1.9c1.6,1.4,3.1,3.8,4.8,7.5c-0.3,0.6,1.1,2.4,4.1,5.3c3,3,8.9,3.8,17.7,2.4l0.1,12c0,0.9-0.3,1.8-1,2.5
c-0.7,0.7-1.8,1-3.4,0.7c-13.1-4.6-23.7-12.3-31.8-23.3C4.4,92.2,0.3,79.5,0,64.9C0.4,46.5,6.7,31.2,18.9,19
C31.1,6.8,46.5,0.5,64.9,0.1C83.3,0.5,98.6,6.8,110.8,19z">
</path>
</svg>
</span>4
</div>
<div class="pb-5">
<h4 class="mb-0">Didn’t find anything here!</h4>
</div>
</div>
</main>

C31.1,6.8,46.5,0.5,64.9,0.1C83.3,0.5,98.6,6.8,110.8,19z"
></path>
</svg> </span
>4
</div>
<div class="pb-5">
<h4 class="mb-0">Didn’t find anything here!</h4>
</div>
</div>
</main>
</div>
{{ partial "footer.html" . }}
<!-- Google Analytics -->
{{ if eq (getenv "HUGO_ENV") "production"}}
{{ template "_internal/google_analytics.html" . }}
{{ end }}
</body>

</body>
</html>
74 changes: 50 additions & 24 deletions layouts/partials/extended_head.html
Original file line number Diff line number Diff line change
@@ -1,46 +1,72 @@
<meta name="description"
content="{{ if .IsHome }}{{ .Site.Params.tagline }}{{ else }}{{ .Summary | plainify }}{{ end }}" />
<meta name="keywords"
content='{{ with .Params.Keywords }}{{ delimit . ", " }}{{ else }}{{ $.Site.Params.Keywords }}{{ end }}' />
<meta
name="description"
content="{{ if .IsHome }}{{ .Site.Params.tagline }}{{ else }}{{ .Summary | plainify }}{{ end }}"
/>
<meta
name="keywords"
content='{{ with .Params.Keywords }}{{ delimit . ", " }}{{ else }}{{ $.Site.Params.Keywords }}{{ end }}'
/>
<meta name="robots" content="noodp" />
<link rel="canonical" href="{{ .Permalink }}" />

<!-- Twitter Card -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="{{ if .IsHome }}{{ else }}{{ .Title }} - {{ end }}{{ .Site.Title }}" />
<meta name="twitter:description"
content="{{ if .IsHome }}{{ $.Site.Params.description }}{{ else }}{{ .Summary | plainify }}{{ end }}" />
<meta
name="twitter:title"
content="{{ if .IsHome }}{{ else }}{{ .Title }} - {{ end }}{{ .Site.Title }}"
/>
<meta
name="twitter:description"
content="{{ if .IsHome }}{{ $.Site.Params.description }}{{ else }}{{ .Summary | plainify }}{{ end }}"
/>
<meta name="twitter:site" content="{{ $.Site.BaseURL }}" />
<meta name="twitter:creator" content="{{ .Params.Author }}" />
<meta name="twitter:image"
content="{{ if .IsHome }}{{ $.Site.Params.avatar | absURL }}{{ else }}{{ .Params.Cover | absURL }}{{ end }}">
<meta
name="twitter:image"
content="{{ if .IsHome }}{{ $.Site.Params.avatar | absURL }}{{ else }}{{ .Params.Cover | absURL }}{{ end }}"
/>

<!-- OG data -->
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" />
<meta property="og:title" content="{{ if .IsHome }}{{ else }}{{ .Title }} - {{ end }}{{ .Site.Title }}">
<meta property="og:description"
content="{{ if .IsHome }}{{ $.Site.Params.description }}{{ else }}{{ .Summary | plainify }}{{ end }}" />
<meta
property="og:type"
content="{{ if .IsPage }}article{{ else }}website{{ end }}"
/>
<meta
property="og:title"
content="{{ if .IsHome }}{{ else }}{{ .Title }} - {{ end }}{{ .Site.Title }}"
/>
<meta
property="og:description"
content="{{ if .IsHome }}{{ $.Site.Params.description }}{{ else }}{{ .Summary | plainify }}{{ end }}"
/>
<meta property="og:url" content="{{ .Permalink }}" />
<meta property="og:site_name" content="{{ .Title }}" />
<meta property="og:image"
content="{{ if .IsHome }}{{ $.Site.Params.avatar | absURL }}{{ else }}{{ .Params.Cover | absURL }}{{ end }}">
<meta property="og:image:width" content="2048">
<meta property="og:image:height" content="1024">
<meta
property="og:image"
content="{{ if .IsHome }}{{ $.Site.Params.avatar | absURL }}{{ else }}{{ .Params.Cover | absURL }}{{ end }}"
/>
<meta property="og:image:width" content="2048" />
<meta property="og:image:height" content="1024" />
{{ if isset .Params "date" }}
<meta property="article:published_time" content="{{ time .Date }}" />
{{ end }}

<!-- RSS -->
{{ with .OutputFormats.Get "RSS" }}
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
<link
href="{{ .RelPermalink }}"
rel="alternate"
type="application/rss+xml"
title="{{ $.Site.Title }}"
/>
{{ end }}

<!-- JSON Feed -->
{{ with .OutputFormats.Get "json" }}
<link href="{{ .RelPermalink }}" rel="alternate" type="application/json" title="{{ $.Site.Title }}" />
{{ end }}

<!-- Google Analytics -->
{{ if eq (getenv "HUGO_ENV") "production"}}
{{ template "_internal/google_analytics.html" . }}
<link
href="{{ .RelPermalink }}"
rel="alternate"
type="application/json"
title="{{ $.Site.Title }}"
/>
{{ end }}
27 changes: 16 additions & 11 deletions static/css/github-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ body {
display: flex;
align-items: center;
flex-wrap: nowrap;
padding-left: 32px!important;
padding-right: 32px!important;
padding-left: 32px !important;
padding-right: 32px !important;
z-index: 32;
padding: 16px;
font-size: 14px;
Expand Down Expand Up @@ -39,7 +39,7 @@ body {
.Header-search {
max-width: 272px;
width: 100%;
transition: .2s ease-in-out;
transition: 0.2s ease-in-out;
transition-property: max-width, padding-bottom, padding-top;
}

Expand All @@ -63,7 +63,7 @@ body {
}

.Header-search-label:focus-within {
background-color: hsla(0, 0%, 100%, .175);
background-color: hsla(0, 0%, 100%, 0.175);
border-color: var(--color-state-focus-border);
outline: none;
}
Expand Down Expand Up @@ -115,7 +115,7 @@ body {
user-select: none;
}

.details-reset>summary {
.details-reset > summary {
outline: none;
}

Expand Down Expand Up @@ -159,7 +159,8 @@ body {

#table-of-contents > nav ul > li {
margin-left: 1em;
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial,
sans-serif, Apple Color Emoji, Segoe UI Emoji;
}

#table-of-contents > nav > ul > li {
Expand All @@ -168,18 +169,18 @@ body {

@media (max-width: 768px) {
.Header {
padding-left: 24px!important;
padding-right: 24px!important;
padding-left: 24px !important;
padding-right: 24px !important;
}
}

@media (max-width: 480px) {
.Header {
padding-left: 16px!important;
padding-right: 16px!important;
padding-left: 16px !important;
padding-right: 16px !important;
}
.mobile-none {
display: none!important;
display: none !important;
}
.Header-search {
max-width: 100%;
Expand All @@ -189,3 +190,7 @@ body {
.pinned-item-desc img {
max-width: 100%;
}

ul {
padding-left: 1em;
}