fix(animation): lost animation

This commit is contained in:
Dillon 2020-03-11 00:50:06 +08:00
parent 3b107068a6
commit 9004e375fd
6 changed files with 7 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -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 -}}

View file

@ -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>

View file

@ -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": {

View file

@ -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() {