mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 10:56:16 +01:00
fix(animation): lost animation
This commit is contained in:
parent
3b107068a6
commit
9004e375fd
6 changed files with 7 additions and 7 deletions
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() {
|
||||||
|
|
Loading…
Reference in a new issue