feat(css): add local fork-awesome css

This commit is contained in:
Dillon 2020-02-07 00:10:00 +08:00
parent 44222e7d12
commit 4c452aae12
44 changed files with 2927 additions and 53 deletions

View file

@ -1,4 +1,5 @@
fontawesome-free@5.11.2 fontawesome-free@5.11.2
forkawesome@1.1.7
gittalk@1.5.0 gittalk@1.5.0
katex@0.11.1 katex@0.11.1
aplayer@1.10.1 aplayer@1.10.1

File diff suppressed because one or more lines are too long

View file

@ -161,6 +161,7 @@ dateFormatToUse = "2006-01-02"
[params.cdn] [params.cdn]
## for example '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.10.1/css/all.min.css" integrity="sha256-fdcFNFiBMrNfWL6OcAGQz6jDgNTRxnrLEd4vJYFWScE=" crossorigin="anonymous">' ## for example '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.10.1/css/all.min.css" integrity="sha256-fdcFNFiBMrNfWL6OcAGQz6jDgNTRxnrLEd4vJYFWScE=" crossorigin="anonymous">'
fontawesome_free_css = '' fontawesome_free_css = ''
forkawesome_css = ''
animate_css = '' animate_css = ''
gitalk_css = '' gitalk_css = ''
gitalk_js = '' gitalk_js = ''

View file

@ -161,6 +161,7 @@ dateFormatToUse = "2006-01-02"
[params.cdn] [params.cdn]
## 例如 '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.10.1/css/all.min.css" integrity="sha256-fdcFNFiBMrNfWL6OcAGQz6jDgNTRxnrLEd4vJYFWScE=" crossorigin="anonymous">' ## 例如 '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.10.1/css/all.min.css" integrity="sha256-fdcFNFiBMrNfWL6OcAGQz6jDgNTRxnrLEd4vJYFWScE=" crossorigin="anonymous">'
fontawesome_free_css = '' fontawesome_free_css = ''
forkawesome_css = ''
animate_css = '' animate_css = ''
gitalk_css = '' gitalk_css = ''
gitalk_js = '' gitalk_js = ''

View file

@ -55,12 +55,23 @@
<link rel="stylesheet" href="{{ $res.RelPermalink }}"> <link rel="stylesheet" href="{{ $res.RelPermalink }}">
{{- end -}} {{- end -}}
{{- /* Font Awesome https://fontawesome.com/ */ -}}
{{- if eq (getenv "HUGO_ENV") "production" | and .Site.Params.cdn.fontawesome_free_css -}} {{- if eq (getenv "HUGO_ENV") "production" | and .Site.Params.cdn.fontawesome_free_css -}}
{{- .Site.Params.cdn.fontawesome_free_css | safeHTML -}} {{- .Site.Params.cdn.fontawesome_free_css | safeHTML -}}
{{- else -}} {{- else -}}
{{- $res := resources.Get "css/lib/fontawesome-free/all.min.css" -}} {{- $res := resources.Get "css/lib/fontawesome-free/all.min.css" -}}
<link rel="stylesheet" href="{{ $res.RelPermalink }}"> <link rel="stylesheet" href="{{ $res.RelPermalink }}">
{{- end -}} {{- end -}}
{{- /* Fork Awesome https://forkaweso.me/ */ -}}
{{- if eq (getenv "HUGO_ENV") "production" | and .Site.Params.cdn.forkawesome_css -}}
{{- .Site.Params.cdn.forkawesome_css | safeHTML -}}
{{- else -}}
{{- $res := resources.Get "css/lib/forkawesome/fork-awesome.min.css" -}}
<link rel="stylesheet" href="{{ $res.RelPermalink }}">
{{- end -}}
{{- /* Animate.css https://github.com/daneden/animate.css */ -}}
{{- if eq (getenv "HUGO_ENV") "production" | and .Site.Params.cdn.animate_css -}} {{- if eq (getenv "HUGO_ENV") "production" | and .Site.Params.cdn.animate_css -}}
{{- .Site.Params.cdn.animate_css | safeHTML -}} {{- .Site.Params.cdn.animate_css | safeHTML -}}
{{- else -}} {{- else -}}

View file

@ -1,4 +1,3 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.1.7/css/fork-awesome.min.css" integrity="sha256-gsmEoJAws/Kd3CjuOQzLie5Q3yshhvmo7YNtBG7aaEY=" crossorigin="anonymous">
{{- with .Site.Params.Social.Github -}} {{- with .Site.Params.Social.Github -}}
<a href="https://github.com/{{ . }}" rel="me noopener noreffer" target="_blank"> <a href="https://github.com/{{ . }}" rel="me noopener noreffer" target="_blank">
<i class="fab fa-github-alt fa-fw" title="Github"></i> <i class="fab fa-github-alt fa-fw" title="Github"></i>
@ -225,32 +224,32 @@
</a> </a>
{{- end -}} {{- end -}}
{{- with .Site.Params.Social.Slideshare}} {{- with .Site.Params.Social.Slideshare}}
<a href="https://slideshare.com/{{- . -}}" rel="me noopener noreffer" target="_blank"> <a href="https://slideshare.com/{{ . }}" rel="me noopener noreffer" target="_blank">
<i class="fab fa-slideshare fa-fw" title="Slideshare"></i> <i class="fab fa-slideshare fa-fw" title="Slideshare"></i>
</a> </a>
{{- end -}} {{- end -}}
{{- with .Site.Params.Social.Jsfiddle}} {{- with .Site.Params.Social.Jsfiddle}}
<a href="https://jsfiddle.com/{{- . -}}" rel="me noopener noreffer" target="_blank"> <a href="https://jsfiddle.com/{{ . }}" rel="me noopener noreffer" target="_blank">
<i class="fab fa-jsfiddle fa-fw" title="Jsfiddle"></i> <i class="fab fa-jsfiddle fa-fw" title="Jsfiddle"></i>
</a> </a>
{{- end -}} {{- end -}}
{{- with .Site.Params.Social.Deviantart}} {{- with .Site.Params.Social.Deviantart}}
<a href="https://{{- . -}}.deviantart.com/" rel="me noopener noreffer" target="_blank"> <a href="https://{{ . }}.deviantart.com/" rel="me noopener noreffer" target="_blank">
<i class="fab fa-deviantart fa-fw" title="Deviantart"></i> <i class="fab fa-deviantart fa-fw" title="Deviantart"></i>
</a> </a>
{{- end -}} {{- end -}}
{{- with .Site.Params.Social.Behance}} {{- with .Site.Params.Social.Behance}}
<a href="https://behance.net/{{- . -}}" rel="me noopener noreffer" target="_blank"> <a href="https://behance.net/{{ . }}" rel="me noopener noreffer" target="_blank">
<i class="fab fa-behance fa-fw" title="Behance"></i> <i class="fab fa-behance fa-fw" title="Behance"></i>
</a> </a>
{{- end -}} {{- end -}}
{{- with .Site.Params.Social.Dribble}} {{- with .Site.Params.Social.Dribble}}
<a href="https://dribbble.com/{{- . -}}" rel="me noopener noreffer" target="_blank"> <a href="https://dribbble.com/{{ . }}" rel="me noopener noreffer" target="_blank">
<i class="fab fa-dribbble fa-fw" title="Dribble"></i> <i class="fab fa-dribbble fa-fw" title="Dribble"></i>
</a> </a>
{{- end -}} {{- end -}}
{{- with .Site.Params.Social.Wordpress}} {{- with .Site.Params.Social.Wordpress}}
<a href="https://{{- . -}}.wordpress.com" rel="me noopener noreffer" target="_blank"> <a href="https://{{ . }}.wordpress.com" rel="me noopener noreffer" target="_blank">
<i class="fab fa-wordpress fa-fw" title="Wordpress"></i> <i class="fab fa-wordpress fa-fw" title="Wordpress"></i>
</a> </a>
{{- end -}} {{- end -}}
@ -260,37 +259,32 @@
</a> </a>
{{- end -}} {{- end -}}
{{- with .Site.Params.Social.Googlescholar}} {{- with .Site.Params.Social.Googlescholar}}
<a href="https://scholar.google.com/citations?{{- . -}}" rel="me noopener noreffer" target="_blank"> <a href="https://scholar.google.com/citations?{{ . }}" rel="me noopener noreffer" target="_blank">
<i class="fab fa-Googlescholar fa-fw" title="Googlescholar"></i> <i class="fab fa-Googlescholar fa-fw" title="Googlescholar"></i>
</a> </a>
{{- end -}} {{- end -}}
{{- with .Site.Params.Social.Researchgate}} {{- with .Site.Params.Social.Researchgate}}
<a href="https://www.researchgate.net/profile/{{- . -}}" rel="me noopener noreffer" target="_blank"> <a href="https://www.researchgate.net/profile/{{ . }}" rel="me noopener noreffer" target="_blank">
<i class="fab fa-researchgate fa-fw" title="Researchgate"></i> <i class="fab fa-researchgate fa-fw" title="Researchgate"></i>
</a> </a>
{{- end -}} {{- end -}}
{{- with .Site.Params.Social.Mastodon}} {{- with .Site.Params.Social.Mastodon}}
<a href="https://mastodon.social/{{- . -}}" rel="me noopener noreffer" target="_blank"> <a href="https://mastodon.social/{{ . }}" rel="me noopener noreffer" target="_blank">
<i class="fab fa-mastodon fa-fw" title="Mastodon"></i> <i class="fab fa-mastodon fa-fw" title="Mastodon"></i>
</a> </a>
{{- end -}} {{- end -}}
{{- with .Site.Params.Social.Devto}} {{- with .Site.Params.Social.Devto}}
<a href="https://dev.to/{{- . -}}" rel="me noopener noreffer" target="_blank"> <a href="https://dev.to/{{ . }}" rel="me noopener noreffer" target="_blank">
<i class="fab fa-dev fa-fw" title="Dev.To"></i> <i class="fab fa-dev fa-fw" title="Dev.To"></i>
</a> </a>
{{- end -}} {{- end -}}
{{- with .Site.Params.Social.Email}}
<a href="mailto:{{ . }}" rel="me noopener noreffer">
<i class="far fa-envelope fa-fw" target="_blank" title="Email"></i>
</a>
{{- end -}}
{{- with .Site.Params.Social.Gitea}} {{- with .Site.Params.Social.Gitea}}
<a href="" rel="me noopener noreffer" target="_blank"> <a href="{{ . | safeURL }}" rel="me noopener noreffer" target="_blank">
<i class="fab fa fa-gitea fa-fw" title="Gitea"></i> <i class="fab fa fa-gitea fa-fw" title="Gitea"></i>
</a> </a>
{{- end -}} {{- end -}}
{{- with .Site.Params.Social.XMPP}} {{- with .Site.Params.Social.XMPP}}
<a href="xmpp:{{ . }}" rel="me noopener noreffer" target="_blank"> <a href="xmpp:{{ . }}" rel="me noopener noreffer">
<i class="fab fa fa-xmpp fa-fw" title="XMPP"></i> <i class="fab fa fa-xmpp fa-fw" title="XMPP"></i>
</a> </a>
{{- end -}} {{- end -}}
@ -299,6 +293,11 @@
<i class="fab fa fa-matrix-org fa-fw" title="Matrix"></i> <i class="fab fa fa-matrix-org fa-fw" title="Matrix"></i>
</a> </a>
{{- end -}} {{- end -}}
{{- with .Site.Params.Social.Email}}
<a href="mailto:{{ . }}" rel="me noopener noreffer">
<i class="far fa-envelope fa-fw" title="Email"></i>
</a>
{{- end -}}
{{- with .Site.Params.Social.Custom}} {{- with .Site.Params.Social.Custom}}
{{- . | safeHTML -}} {{- . | safeHTML -}}
{{- end -}} {{- end -}}

Binary file not shown.

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 470 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.