This repository was archived by the owner on Mar 9, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
116 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
// ============================== | ||
// Custom style | ||
// ============================== | ||
// You can override the variables in _variables.scss to customize the style | ||
// You can override the variables in _variables.scss to customize the style | ||
|
||
.since { | ||
padding: 30px; | ||
text-align:center; | ||
font-size: 30px; | ||
line-height: 50px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
<!-- jQuery https://github.com/jquery/jquery --> | ||
{{ $jquery := ` | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js" integrity="sha256-pasqAKBDmFT4eHoN2ndd6lN370kFiGUFyTiUHWhU7k8=" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script> | ||
` }} | ||
<!-- JavaScript code prettifier https://github.com/google/code-prettify --> | ||
{{ $prettify := ` | ||
|
@@ -28,16 +28,20 @@ | |
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" integrity="sha384-9Nhn55MVVN0/4OFx7EE5kpFBPsEMZxKTCnA+4fqDmg12eCTqGi6+BB2LjY8brQxJ" crossorigin="anonymous"></script> | ||
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script> | ||
` }} | ||
<!-- Typed.js https://github.com/mattboldt/typed.js --> | ||
{{ $typed := ` | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/typed.min.js" integrity="sha256-F6VRM94CIE3Kv2zkAtbzlViDfZ3HMaIgusIcFBPIjiU=" crossorigin="anonymous"></script> | ||
<!-- TypeIt https://github.com/alexmacarthur/typeit --> | ||
{{ $typeit := ` | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/typeit.min.js" integrity="sha256-jl1b2Wp4cXCUyX8FxPZ8Z0PPIPV3QYNb/jPSLGDej2c=" crossorigin="anonymous"></script> | ||
` }} | ||
<!-- jQuery.countdown https://github.com/hilios/jQuery.countdown/ --> | ||
{{ $countdown := ` | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.countdown.min.js" integrity="sha256-Ikk5myJowmDQaYVCUD0Wr+vIDkN8hGI58SGWdE671A8=" crossorigin="anonymous"></script> | ||
` }} | ||
|
||
{{ $jquery | safeHTML }} | ||
|
||
{{ if .IsPage }} | ||
{{ $prettify | safeHTML }} | ||
{{ $typed | safeHTML }} | ||
{{ $typeit | safeHTML }} | ||
{{ $countdown | safeHTML }} | ||
{{ $scripts = $scripts | append $dynamicToTop }} | ||
|
||
{{ if $postHasImages }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{{ if .Get "id" }} | ||
{{ $id := .Get "id" }} | ||
{{ with .Get "class" }} | ||
<div id={{ $id }} class="{{ . }}"></div> | ||
{{ else }} | ||
<div id={{ $id }}></div> | ||
{{ end }} | ||
{{ $id = printf "#%s" $id }} | ||
{{ with .Get "date" }} | ||
<script> | ||
if (!window.countdownMap) { | ||
var countdownMap = {} | ||
} | ||
countdownMap["{{ $id }}"] = {{ . }}; | ||
</script> | ||
{{ end }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{ if .Get "id" }} | ||
{{ $id := .Get "id" }} | ||
{{ with .Get "class" }} | ||
<div id={{ $id }} class="{{ . }}"></div> | ||
{{ else }} | ||
<div id={{ $id }}></div> | ||
{{ end }} | ||
{{ $id = printf "#%s" $id }} | ||
<script> | ||
if (!typeitMap) { | ||
var typeitMap = {} | ||
} | ||
typeitMap["{{ $id }}"] = {{ .Inner | safeHTML }}; | ||
</script> | ||
{{ end }} |