v3 development
This commit is contained in:
@@ -2,15 +2,39 @@
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
{{- partial "head.html" . -}}
|
||||
{{- block "head" . -}}{{- end }}
|
||||
{{ if eq .Site.Params.version 1 }}
|
||||
{{- partial "sections/v1/head.html" . -}}
|
||||
<link href="/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="/css/v1/head_foot.css" rel="stylesheet">
|
||||
{{- block "head" . -}}{{- end }}
|
||||
|
||||
{{ else if eq .Site.Params.version 2 }}
|
||||
{{- partial "sections/v2/head.html" . -}}
|
||||
{{- block "head" . -}}{{- end }}
|
||||
{{ else if eq .Site.Params.version 3 }}
|
||||
{{ else }}
|
||||
{{ end }}
|
||||
|
||||
</head>
|
||||
|
||||
<body class="bg-white">
|
||||
{{- partial "scripts.html" . -}}
|
||||
{{- partial "header.html" . -}}
|
||||
{{- block "main" . -}}{{- end }}
|
||||
{{- partial "footer.html" . -}}
|
||||
<body>
|
||||
{{ if eq .Site.Params.version 1 }}
|
||||
{{- partial "sections/v1/scripts.html" . -}}
|
||||
{{- partial "sections/v1/header1.html" . -}}
|
||||
{{- block "main" . -}}{{- end }}
|
||||
{{- partial "sections/v1/footer.html" . -}}
|
||||
|
||||
{{ else if eq .Site.Params.version 2 }}
|
||||
{{- partial "sections/v2/scripts.html" . -}}
|
||||
{{- partial "sections/v2/header.html" . -}}
|
||||
{{- block "main" . -}}{{- end }}
|
||||
{{- partial "sections/v2/footer.html" . -}}
|
||||
|
||||
{{ else if eq .Site.Params.version 3 }}
|
||||
{{ else }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@@ -3,7 +3,13 @@
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1:wght@400;700&display=swap" rel="stylesheet">
|
||||
<title>{{ .Title }}</title>
|
||||
|
||||
{{ if eq .Site.Params.version 1 }}
|
||||
<link href="/css/v1/blog.css" rel="stylesheet">
|
||||
{{ else if eq .Site.Params.version 2 }}
|
||||
<link href="/css/v2/post.css" rel="stylesheet">
|
||||
{{ else if eq .Site.Params.version 3 }}
|
||||
{{ else }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
@@ -17,12 +23,9 @@
|
||||
<div class="">
|
||||
<!-- Date -->
|
||||
<span class="px-1">
|
||||
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-calendar" fill="currentColor"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd"
|
||||
d="M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1zm1-3a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H2z" />
|
||||
<path fill-rule="evenodd"
|
||||
d="M3.5 0a.5.5 0 0 1 .5.5V1a.5.5 0 0 1-1 0V.5a.5.5 0 0 1 .5-.5zm9 0a.5.5 0 0 1 .5.5V1a.5.5 0 0 1-1 0V.5a.5.5 0 0 1 .5-.5z" />
|
||||
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-calendar" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" d="M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1zm1-3a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H2z" />
|
||||
<path fill-rule="evenodd" d="M3.5 0a.5.5 0 0 1 .5.5V1a.5.5 0 0 1-1 0V.5a.5.5 0 0 1 .5-.5zm9 0a.5.5 0 0 1 .5.5V1a.5.5 0 0 1-1 0V.5a.5.5 0 0 1 .5-.5z" />
|
||||
</svg>
|
||||
</span>
|
||||
{{ dateFormat "Jan 2, 2006" .Date }}
|
||||
@@ -30,8 +33,7 @@
|
||||
<!-- Author -->
|
||||
{{ if .Params.author }}
|
||||
<span class="px-1">
|
||||
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-person-fill" fill="currentColor"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-person-fill" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
||||
<path fill-rule="evenodd" d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z" />
|
||||
</svg>
|
||||
</span>
|
||||
@@ -39,9 +41,9 @@
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.tweet }}
|
||||
|
||||
<div class="pt-3">
|
||||
<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" data-size=large class="twitter-share-button"
|
||||
data-show-count="false">Tweet my work</a>
|
||||
<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" data-size=large class="twitter-share-button" data-show-count="false">Tweet my work</a>
|
||||
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
|
||||
</div>
|
||||
{{ end }}
|
||||
@@ -108,8 +110,9 @@
|
||||
</section>
|
||||
|
||||
<script>
|
||||
$('.TOC').on('click', function () {
|
||||
$('.TOC').on('click', function() {
|
||||
$('.TOC-content').removeClass('d-none');
|
||||
});
|
||||
|
||||
</script>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user