From fd04f1bdeace19dc58104d691774d57851e6eaef Mon Sep 17 00:00:00 2001 From: amazingrise <8315221+AmazingRise@users.noreply.github.com> Date: Sat, 14 Aug 2021 13:31:24 +0800 Subject: Remove Vue.js from source code. --- assets/scss/journal.scss | 54 +++-- layouts/_default/baseof.html | 3 + layouts/_default/section.html | 4 +- layouts/_default/single.html | 4 +- layouts/_default/taxonomy.html | 4 +- layouts/_default/terms.html | 4 +- layouts/index.html | 4 +- layouts/partials/comment.html | 29 ++- layouts/partials/extrabar.html | 13 +- layouts/partials/head.html | 30 +-- layouts/partials/journal.html | 294 ----------------------- layouts/partials/mobile-header.html | 21 +- layouts/partials/sidebar.html | 2 +- static/js/journal.js | 295 ++++++++++++++++++++++++ static/js/loadCSS.js | 79 ------- static/js/toc-collapse.js | 60 ----- static/vendor/js/bootstrap.min.js | 7 - static/vendor/js/bootstrap.min.js.map | 1 - static/vendor/js/jquery.min.js | 2 - static/vendor/js/popper.min.js | 5 - static/vendor/js/popper.min.js.map | 1 - static/vendor/js/smooth-scroll.polyfills.min.js | 2 - static/vendor/js/vue.min.js | 6 - 23 files changed, 378 insertions(+), 546 deletions(-) delete mode 100644 static/js/loadCSS.js delete mode 100644 static/js/toc-collapse.js delete mode 100644 static/vendor/js/bootstrap.min.js delete mode 100644 static/vendor/js/bootstrap.min.js.map delete mode 100644 static/vendor/js/jquery.min.js delete mode 100644 static/vendor/js/popper.min.js delete mode 100644 static/vendor/js/popper.min.js.map delete mode 100644 static/vendor/js/smooth-scroll.polyfills.min.js delete mode 100644 static/vendor/js/vue.min.js diff --git a/assets/scss/journal.scss b/assets/scss/journal.scss index 51aaee7..83f601b 100644 --- a/assets/scss/journal.scss +++ b/assets/scss/journal.scss @@ -3,7 +3,9 @@ $color-accent: #1976d2; $back-container-background: #fcfcfc; $front-container-background: #ffffff; -$default-font-list: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; +$default-font-list: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, + "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", + "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; $mono-font-list: "Fira Mono", "Cousine", Monaco, Menlo, "Source Code Pro", monospace; //$sans-preferred-font-list: "Montserrat", "Roboto", "Source Sans Pro", "Helvetica", $default-font-list; @@ -74,7 +76,9 @@ body { box-sizing: border-box; } -h1, h2, h3{ +h1, +h2, +h3 { font-weight: 400; } @@ -116,8 +120,8 @@ button { } table { - table-layout: fixed; - overflow-x: scroll; + table-layout: fixed; + overflow-x: scroll; } button { @@ -369,8 +373,8 @@ a { font-size: $single-column-nav-link-size; padding: 2px; li { - list-style: none; - padding-left: 8px; + list-style: none; + padding-left: 8px; } a { text-decoration: none; @@ -471,8 +475,8 @@ a { .nav-link-subitem { font-size: $nav-link-size - 3px; li { - list-style: none; - padding-left: 2px; + list-style: none; + padding-left: 2px; } a { text-decoration: none; @@ -504,7 +508,7 @@ a { position: fixed; top: 0; right: 0; - + width: $extra-container-width; /*text-align: right;*/ font-family: $sans-preferred-font-list; @@ -588,7 +592,7 @@ a { padding-left: $side-container-width; padding-right: $extra-container-width; width: 100%; - + min-height: 100vh; @media screen and (max-width: $single-column-max-width) { padding: 0; @@ -766,7 +770,6 @@ a { padding: 15px; } .post { - padding: 0 0 20px 0; .post-head-wrapper { margin-top: -20px; @@ -941,22 +944,18 @@ a { } } } - - - - } #single-column-footer { - display: none; + display: none; - @media screen and (max-width: $single-column-max-width) { - display: block !important; - text-align: center; - font-size: $single-column-nav-footer-size; - font-family: $sans-preferred-font-list; - padding: 40px 20px 40px 20px; - } + @media screen and (max-width: $single-column-max-width) { + display: block !important; + text-align: center; + font-size: $single-column-nav-footer-size; + font-family: $sans-preferred-font-list; + padding: 40px 20px 40px 20px; + } } .toc { @@ -979,10 +978,10 @@ a { margin: 0; line-height: 1.7em; } - .toc-content{ + .toc-content { padding: 20px; } - .toc-active{ + .toc-active { color: darken($color-accent, 40%) !important; } @media screen and (max-width: $single-column-max-width) { @@ -995,7 +994,7 @@ a { * { /*font-size: $single-column-toc-size;*/ } - .toc-content{ + .toc-content { padding: 10px; } } @@ -1059,8 +1058,7 @@ a { color: $dark-accent; } -mjx-container -{ +mjx-container { overflow-y: hidden !important; } diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index dd7fe01..757b685 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -10,12 +10,15 @@ {{- partial "mobile-header.html" . -}}
+
{{- block "main" . }}{{- end }} +
{{- partial "mobile-footer.html" . -}} {{ partial "journal.html" .}} + diff --git a/layouts/_default/section.html b/layouts/_default/section.html index d9a9dd8..5c23b4e 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -1,5 +1,5 @@ {{ define "main" }} -
+
{{ range .Paginator.Pages.GroupByDate "2006" }} @@ -29,6 +29,6 @@ {{ end }} {{ end }}
-
+ {{ end }} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 78bc079..f1e2a0c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,5 +1,5 @@ {{ define "main" }} -
+
{{ $post_class := "post-head-wrapper-text-only"}} @@ -109,5 +109,5 @@
- + {{ end }} diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html index 262a294..11ce644 100644 --- a/layouts/_default/taxonomy.html +++ b/layouts/_default/taxonomy.html @@ -1,5 +1,5 @@ {{ define "main" }} -
+
@@ -25,5 +25,5 @@ {{- end -}}
-
+ {{ end }} diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index a35d85c..f31029f 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -1,5 +1,5 @@ {{ define "main" }} -
+
@@ -27,6 +27,6 @@ {{ end }}
-
+ {{ end }} \ No newline at end of file diff --git a/layouts/index.html b/layouts/index.html index f404871..5efb1d4 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,7 @@ {{ define "main" }} -
+
{{range .Paginator.Pages}} {{if and (.IsPage) (.Params.date)}} @@ -36,5 +36,5 @@ {{ end }}
-
+ {{ end }} diff --git a/layouts/partials/comment.html b/layouts/partials/comment.html index cded446..4d19c87 100644 --- a/layouts/partials/comment.html +++ b/layouts/partials/comment.html @@ -10,21 +10,40 @@
{{ end }} -{{ if .Site.Params.enableValine }} -
- -{{ end }} - {{ if .Site.Params.livereId }}
+ {{ end }} {{ if .Site.Params.enableTwikoo }}
+ {{ end }} {{ if .Site.Params.walineServer }}
+ {{ end }} \ No newline at end of file diff --git a/layouts/partials/extrabar.html b/layouts/partials/extrabar.html index c34ab35..85b4b1e 100644 --- a/layouts/partials/extrabar.html +++ b/layouts/partials/extrabar.html @@ -1,4 +1,4 @@ -
+
{{ if and (isset .Site.Params "googlesearchcode") (.IsHome) }}
@@ -15,13 +15,10 @@ {{ if not .Site.Params.disableDarkMode }} - - - brightness_4 - - - brightness_7 - + + + dark_mode + {{ end }} {{ if .Paginator }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index dac390a..2851afb 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -32,7 +32,6 @@ {{ end }} - {{if .Site.Params.manifest}} @@ -55,23 +54,19 @@ {{ end }} - + + + {{ if .Params.enableMathJax }} {{ partial "mathjax.html" . }} {{ end }} {{ if and (not (.Params.disableToC) ) (.IsPage) }} - {{ if not .Site.Params.enableAutoCollapse }} - - {{ else }} - - - - {{ end }} + {{ end }} {{ if and (.Site.Params.enableGitalk) (.IsPage) }} @@ -96,25 +91,9 @@ {{ if and (.Site.Params.livereId) (.IsPage) }} {{ end }} -{{ if and (.Site.Params.enableValine) (.IsPage) }} - -{{ end }} - {{ if and (.Site.Params.disqusShortname) (.IsPage) }} {{ end }} @@ -125,6 +104,7 @@ $( {{ if and (.Site.Params.walineServer) (.IsPage) }} + {{ end }} diff --git a/layouts/partials/journal.html b/layouts/partials/journal.html index 32d917b..e69de29 100644 --- a/layouts/partials/journal.html +++ b/layouts/partials/journal.html @@ -1,294 +0,0 @@ - \ No newline at end of file diff --git a/layouts/partials/mobile-header.html b/layouts/partials/mobile-header.html index 028b73c..61a582c 100644 --- a/layouts/partials/mobile-header.html +++ b/layouts/partials/mobile-header.html @@ -1,4 +1,4 @@ -
@@ -38,32 +38,29 @@
-
+
-