mirror of
https://github.com/MeiK2333/github-style.git
synced 2025-10-07 10:04:04 +00:00
Merge pull request #36 from stanleynguyen/fix/misc
Fix miscellaneous typos
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
+++
|
+++
|
||||||
title: ""
|
title = ""
|
||||||
date: ""
|
date = {{ .Date }}
|
||||||
author: ""
|
author = ""
|
||||||
keywords: ["", ""]
|
keywords = ["", ""]
|
||||||
cover: ""
|
cover = ""
|
||||||
summary: ""
|
summary = ""
|
||||||
+++
|
+++
|
||||||
|
@@ -2,8 +2,11 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<link crossorigin="anonymous" media="all" rel="stylesheet" href="{{ "css/frameworks.css" | absURL }}" />
|
<link crossorigin="anonymous" media="all" rel="stylesheet" href="{{ "css/frameworks.css" | absURL }}" />
|
||||||
<link crossorigin="anonymous" media="all" rel="stylesheet" href="{{ "css/github.css" | absURL }}" />
|
<link crossorigin="anonymous" media="all" rel="stylesheet" href="{{ "css/github.css" | absURL }}" />
|
||||||
|
{{ if $.Site.Params.disableDarkMode }}
|
||||||
|
{{ else }}
|
||||||
<link crossorigin="anonymous" media="(prefers-color-scheme: dark)" rel="stylesheet"
|
<link crossorigin="anonymous" media="(prefers-color-scheme: dark)" rel="stylesheet"
|
||||||
href="{{ "css/dark.css" | absURL }}" />
|
href="{{ "css/dark.css" | absURL }}" />
|
||||||
|
{{end}}
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="description"
|
<meta name="description"
|
||||||
content="{{ if .IsHome }}{{ .Site.Params.tagline }}{{ else }}{{ .Summary | plainify }}{{ end }}" />
|
content="{{ if .IsHome }}{{ .Site.Params.tagline }}{{ else }}{{ .Summary | plainify }}{{ end }}" />
|
||||||
|
@@ -6,17 +6,14 @@
|
|||||||
<div class="mb-3 d-flex">
|
<div class="mb-3 d-flex">
|
||||||
<h1 class="public css-truncate float-none flex-auto width-fit pl-0">
|
<h1 class="public css-truncate float-none flex-auto width-fit pl-0">
|
||||||
<a class="avatar mr-1" href="{{ absURL "about/" }}">
|
<a class="avatar mr-1" href="{{ absURL "about/" }}">
|
||||||
{{ with $.Site.Params.avatar }}
|
{{ with $.Site.Params.avatar }}
|
||||||
|
|
||||||
<img
|
<img src="{{ $.Site.Params.avatar }}" width="26" height="26">
|
||||||
src="{{ $.Site.Params.avatar }}" width="26" height="26">
|
{{ else }}
|
||||||
{{ else }}
|
<img src="{{ "images/avatar.png" | absURL }}" width="26" height="26">
|
||||||
<img
|
{{ end }}
|
||||||
src="{{ "images/avatar.png" | absURL }}" width="26" height="26">
|
|
||||||
{{ end }}
|
|
||||||
</a>
|
</a>
|
||||||
<span class="author"><a
|
<span class="author"><a href="{{ .Site.BaseURL }}">{{ .Site.Params.author }}</a></span>
|
||||||
href="{{ .Site.BaseURL }}">{{ .Site.Params.author }}</a></span>
|
|
||||||
<span class="path-divider">/</span>
|
<span class="path-divider">/</span>
|
||||||
<strong itemprop="name" class="css-truncate-target" style="max-width: 410px"><a
|
<strong itemprop="name" class="css-truncate-target" style="max-width: 410px"><a
|
||||||
href="{{ .Permalink }}">{{ .Title }}</a></strong>
|
href="{{ .Permalink }}">{{ .Title }}</a></strong>
|
||||||
@@ -26,7 +23,7 @@
|
|||||||
title="Created at {{ .PublishDate.Format "2006/01/02" }}">
|
title="Created at {{ .PublishDate.Format "2006/01/02" }}">
|
||||||
{{ .PublishDate.Format "2006-01-02" }}</time-ago>
|
{{ .PublishDate.Format "2006-01-02" }}</time-ago>
|
||||||
<span class="file-info-divider"></span>
|
<span class="file-info-divider"></span>
|
||||||
Modifyed <time-ago datetime="{{ .Lastmod.Format "2006-01-02" }}" class="no-wrap"
|
Modified <time-ago datetime="{{ .Lastmod.Format "2006-01-02" }}" class="no-wrap"
|
||||||
title="Modified at {{ .Lastmod.Format "2006/01/02" }}">
|
title="Modified at {{ .Lastmod.Format "2006/01/02" }}">
|
||||||
{{ .Lastmod.Format "2006-01-02" }}</time-ago>
|
{{ .Lastmod.Format "2006-01-02" }}</time-ago>
|
||||||
</div>
|
</div>
|
||||||
@@ -70,17 +67,17 @@
|
|||||||
async>
|
async>
|
||||||
</script> -->
|
</script> -->
|
||||||
<script>
|
<script>
|
||||||
var systemThemeMediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
|
var systemThemeMediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
|
||||||
var systemTheme = systemThemeMediaQuery.matches ? 'dark' : 'light';
|
var systemTheme = systemThemeMediaQuery.matches ? 'dark' : 'light';
|
||||||
var utterancesTheme = systemTheme === 'dark' ? 'github-dark' : 'github-light';
|
var utterancesTheme = systemTheme === 'dark' ? 'github-dark' : 'github-light';
|
||||||
var utterancesScript = document.createElement('script');
|
var utterancesScript = document.createElement('script');
|
||||||
utterancesScript.src = 'https://utteranc.es/client.js';
|
utterancesScript.src = 'https://utteranc.es/client.js';
|
||||||
utterancesScript.setAttribute('repo', '{{ .Site.Params.utterances }}');
|
utterancesScript.setAttribute('repo', '{{ .Site.Params.utterances }}');
|
||||||
utterancesScript.setAttribute('issue-term', 'title');
|
utterancesScript.setAttribute('issue-term', 'title');
|
||||||
utterancesScript.setAttribute('theme', utterancesTheme);
|
utterancesScript.setAttribute('theme', utterancesTheme);
|
||||||
utterancesScript.setAttribute('crossorigin', 'anonymous');
|
utterancesScript.setAttribute('crossorigin', 'anonymous');
|
||||||
utterancesScript.setAttribute('async', '');
|
utterancesScript.setAttribute('async', '');
|
||||||
document.querySelector('.utterances').appendChild(utterancesScript);
|
document.querySelector('.utterances').appendChild(utterancesScript);
|
||||||
</script>
|
</script>
|
||||||
<noscript>Please enable JavaScript to view the comments</noscript>
|
<noscript>Please enable JavaScript to view the comments</noscript>
|
||||||
{{ end }}
|
{{ end }}
|
Reference in New Issue
Block a user