fix(animation): lost animation
This commit is contained in:
2
assets/js/theme.min.js
vendored
2
assets/js/theme.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -34,7 +34,7 @@
|
|||||||
{{- with $CDN.animateCSS -}}
|
{{- with $CDN.animateCSS -}}
|
||||||
{{- . | safeHTML -}}
|
{{- . | safeHTML -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{- $res := resources.Get "lib/fontawesome-free/all.min.css" -}}
|
{{- $res := resources.Get "lib/animate/animate.min.css" -}}
|
||||||
{{- $stylesheet := dict "resource" $res "fingerprint" ($scratch.Get "fingerprint") -}}
|
{{- $stylesheet := dict "resource" $res "fingerprint" ($scratch.Get "fingerprint") -}}
|
||||||
{{- partial "plugin/stylesheet.html" $stylesheet -}}
|
{{- partial "plugin/stylesheet.html" $stylesheet -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{{- /* Desktop header */ -}}
|
{{- /* Desktop header */ -}}
|
||||||
<header class="desktop" id="header-desktop">
|
<header class="desktop" id="header-desktop">
|
||||||
<div class="header-wrapper">
|
<div class="header-wrapper">
|
||||||
<div class="header-title animated bounceIn">
|
<div class="header-title">
|
||||||
<a href="{{ `/` | relLangURL }}">
|
<a href="{{ `/` | relLangURL }}">
|
||||||
{{- .Site.Title -}}
|
{{- .Site.Title -}}
|
||||||
</a>
|
</a>
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
<header class="mobile" id="header-mobile">
|
<header class="mobile" id="header-mobile">
|
||||||
<div class="header-wrapper">
|
<div class="header-wrapper">
|
||||||
<div class="header-container">
|
<div class="header-container">
|
||||||
<div class="header-title animated bounceIn">
|
<div class="header-title">
|
||||||
<a href="{{ `/` | relLangURL }}">
|
<a href="{{ `/` | relLangURL }}">
|
||||||
{{- .Site.Title -}}
|
{{- .Site.Title -}}
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "npx babel src --out-file assets/js/theme.min.js --source-maps",
|
"build": "npx babel src --out-file assets/js/theme.min.js --source-maps",
|
||||||
"start": "hugo server --source=exampleSite --themesDir=../.. --disableFastRender",
|
"start": "npm run build && hugo server --source=exampleSite --themesDir=../.. --disableFastRender",
|
||||||
"copy": "hugo -v --source=exampleSite --themesDir=../.. -D --gc --minify && rm -rf resources && cp -rf exampleSite/resources resources"
|
"copy": "hugo -v --source=exampleSite --themesDir=../.. -D --gc --minify && rm -rf resources && cp -rf exampleSite/resources resources"
|
||||||
},
|
},
|
||||||
"husky": {
|
"husky": {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
isMobile() {
|
isMobile() {
|
||||||
return window.matchMedia('only screen and (max-width: 560px)').matches;
|
return window.matchMedia('only screen and (max-width: 720px)').matches;
|
||||||
}
|
}
|
||||||
|
|
||||||
isTocStatic() {
|
isTocStatic() {
|
||||||
|
|||||||
Reference in New Issue
Block a user