feat(social): improve social links (#254)

* replace forkawesome and iconfont with simple icons
* add more configs for social
This commit is contained in:
Dillon
2020-04-24 19:04:37 +08:00
committed by GitHub
parent 87fbb05e86
commit c2197b7411
1337 changed files with 2369 additions and 6898 deletions

View File

@@ -3,21 +3,6 @@
{{- $fingerprint := .Scratch.Get "fingerprint" -}}
{{- $config := (.Scratch.Get "this").config -}}
{{- /* Fork Awesome */ -}}
{{- if (.Scratch.Get "this").forkawesome -}}
{{- $options := dict "targetPath" "lib/forkawesome/fork-awesome.min.css" -}}
{{- dict "source" "lib/forkawesome/fork-awesome.scss" "toCSS" $options "fingerprint" $fingerprint | dict "scratch" $.Scratch "data" | partial "scratch/stylesheet.html" -}}
{{- end -}}
{{- /* iconfont */ -}}
{{- if (.Scratch.Get "this").iconfont -}}
{{- with $cdn.iconfontCSS -}}
{{- dict "source" . | dict "scratch" $.Scratch "data" | partial "scratch/stylesheet.html" -}}
{{- else -}}
{{- dict "source" "lib/iconfont/iconfont.css" "minify" true "fingerprint" $fingerprint | dict "scratch" $.Scratch "data" | partial "scratch/stylesheet.html" -}}
{{- end -}}
{{- end -}}
{{- /* Smooth Scroll */ -}}
{{- with $cdn.smoothScrollJS -}}
{{- dict "source" . | dict "scratch" $.Scratch "data" | partial "scratch/script.html" -}}