diff options
author | sudorook <daemon@nullcodon.com> | 2020-12-05 00:21:06 +0300 |
---|---|---|
committer | sudorook <daemon@nullcodon.com> | 2020-12-05 00:21:06 +0300 |
commit | 7a512a0b000fee946a1000779ebca2a3f1bb4cf4 (patch) | |
tree | ef6b336a0d4e2638b6633bc96ba7505660d2f6c1 /layouts | |
parent | 6e54ac553954e913c0144bbac1c990b0e8de7875 (diff) |
upgrade to font awesome 5
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/footer.html | 10 | ||||
-rw-r--r-- | layouts/partials/pagination-single-all.html | 8 | ||||
-rw-r--r-- | layouts/partials/pagination-single-section.html | 8 | ||||
-rw-r--r-- | layouts/partials/relatedlist.html | 2 | ||||
-rw-r--r-- | layouts/partials/share.html | 24 | ||||
-rw-r--r-- | layouts/shortcodes/message.html | 8 |
6 files changed, 30 insertions, 30 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index ef5ca78..83f5fb9 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -23,7 +23,7 @@ <input class="input" type="text" name="q" maxlength="255" placeholder="Search"> <input class="input" type="hidden" name="sites" value="{{ .Site.BaseURL }}"> - <span class="icon is-small is-right"><i class="fa fa-search"></i></span> + <span class="icon is-small is-right"><i class="fas fa-search"></i></span> </form> </div> </div> @@ -32,7 +32,7 @@ <div class="level-item"> <a class="button" href="{{ .Site.BaseURL }}{{ .Lang }}"> - <span class="icon"><i class="fa fa-home"></i></span> + <span class="icon"><i class="fas fa-home"></i></span> </a> <!-- Most sites have the template https://<site>.com/<user>, so just @@ -42,19 +42,19 @@ {{- if eq $key "hacker-news" }} <a class="button" href="https://news.ycombinator.com/user?id={{ $value }}"> - <span class="icon"><i class="fa fa-{{ $key }}"></i></span> + <span class="icon"><i class="fab fa-{{ $key }}"></i></span> </a> {{- else }} <a class="button" href="https://{{ $key }}.com/{{ $value }}"> - <span class="icon"><i class="fa fa-{{ $key }}"></i></span> + <span class="icon"><i class="fab fa-{{ $key }}"></i></span> </a> {{- end }} {{- end }} <a class="button" href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}"> - <span class="icon"><i class="fa fa-rss"></i></span> + <span class="icon"><i class="fas fa-rss"></i></span> </a> </div> diff --git a/layouts/partials/pagination-single-all.html b/layouts/partials/pagination-single-all.html index da16b21..19ccbd0 100644 --- a/layouts/partials/pagination-single-all.html +++ b/layouts/partials/pagination-single-all.html @@ -6,7 +6,7 @@ <p class="control has-addons"> {{- if .NextPage }} <a class="button" href="{{ .NextPage.Permalink }}"> - <span class="icon is-small"><i class="fa fa-chevron-left"></i></span> + <span class="icon is-small"><i class="fas fa-chevron-left"></i></span> <span class="is-hidden-touch is-hidden-desktop-only"> {{ .NextPage.Title | truncate 100 "..." }} </span> @@ -23,7 +23,7 @@ </a> {{- else }} <a class="button" href="#" disabled> - <span class="icon is-small"><i class="fa fa-chevron-left"></i></span> + <span class="icon is-small"><i class="fas fa-chevron-left"></i></span> <span>Newest</span> </a> {{- end }} @@ -49,12 +49,12 @@ {{ .PrevPage.Title | truncate 40 "..." }} </span> <!-- <span> | {{ title .PrevPage.Section | pluralize }}</span> --> - <span class="icon is-small"><i class="fa fa-chevron-right"></i></span> + <span class="icon is-small"><i class="fas fa-chevron-right"></i></span> </a> {{- else }} <a class="button" href="#" disabled> <span>Oldest</span> - <span class="icon is-small"><i class="fa fa-chevron-right"></i></span> + <span class="icon is-small"><i class="fas fa-chevron-right"></i></span> </a> {{- end }} </p> diff --git a/layouts/partials/pagination-single-section.html b/layouts/partials/pagination-single-section.html index 97c8d5a..20183a1 100644 --- a/layouts/partials/pagination-single-section.html +++ b/layouts/partials/pagination-single-section.html @@ -6,7 +6,7 @@ <p class="control has-addons"> {{- if .NextInSection }} <a class="button" href="{{ .NextInSection.Permalink }}"> - <span class="icon is-small"><i class="fa fa-chevron-left"></i></span> + <span class="icon is-small"><i class="fas fa-chevron-left"></i></span> <span class="is-hidden-touch is-hidden-desktop-only"> {{ .NextInSection.Title | truncate 100 "..." }} </span> @@ -23,7 +23,7 @@ </a> {{- else }} <a class="button" href="#" disabled> - <span class="icon is-small"><i class="fa fa-chevron-left"></i></span> + <span class="icon is-small"><i class="fas fa-chevron-left"></i></span> <span>Newest</span> <!-- <span> | {{ title .Section | pluralize }}</span> --> </a> @@ -50,13 +50,13 @@ {{ .PrevInSection.Title | truncate 40 "..." }} </span> <!-- <span> | {{ title .Section | pluralize }}</span> --> - <span class="icon is-small"><i class="fa fa-chevron-right"></i></span> + <span class="icon is-small"><i class="fas fa-chevron-right"></i></span> </a> {{- else }} <a class="button" href="#" disabled> <span>Oldest</span> <!-- <span> | {{ title .Section | pluralize }}</span> --> - <span class="icon is-small"><i class="fa fa-chevron-right"></i></span> + <span class="icon is-small"><i class="fas fa-chevron-right"></i></span> </a> {{- end }} </p> diff --git a/layouts/partials/relatedlist.html b/layouts/partials/relatedlist.html index ea64352..b78c785 100644 --- a/layouts/partials/relatedlist.html +++ b/layouts/partials/relatedlist.html @@ -32,7 +32,7 @@ {{- if lt ($.Scratch.Get "count") ($.Scratch.Get "max_show") }} {{- $.Scratch.Add "count" 1 }} <a class="panel-block" href="{{ $page.Permalink }}"> - <span class="icon is-small"><i class="fa fa-chevron-right"></i></span> + <span class="icon is-small"><i class="fas fa-chevron-right"></i></span> <span> </span> <span>{{ $page.Title }} {{- range $tag := (intersect $this_tags .Params.tags) }} diff --git a/layouts/partials/share.html b/layouts/partials/share.html index a80f7ff..cd393f2 100644 --- a/layouts/partials/share.html +++ b/layouts/partials/share.html @@ -11,73 +11,73 @@ <!-- Facebook --> <a class="button" href="https://www.facebook.com/sharer/sharer.php?u={{ .Permalink }}"> - <span class="icon"><i class="fa fa-facebook"></i></span> + <span class="icon"><i class="fab fa-facebook"></i></span> </a> <!-- Twitter --> <a class="button" href="https://twitter.com/intent/tweet?url={{ .Permalink }}&text={{ .Title }}{{ with .Site.Social.twitter}}&via=@{{.}}{{ end }}"> - <span class="icon"><i class="fa fa-twitter"></i></span> + <span class="icon"><i class="fab fa-twitter"></i></span> </a> <!-- Hacker News --> <a class="button" href="https://news.ycombinator.com/submitlink?u={{ .Permalink }}"> - <span class="icon"><i class="fa fa-hacker-news"></i></span> + <span class="icon"><i class="fab fa-hacker-news"></i></span> </a> <!-- Reddit --> <a class="button" href="https://reddit.com/submit?url={{ .Permalink }}&title={{ .Title }}"> - <span class="icon"><i class="fa fa-reddit"></i></span> + <span class="icon"><i class="fab fa-reddit"></i></span> </a> <!-- Google+ --> <a class="button" href="https://plus.google.com/share?url={{ .Permalink }}"> - <span class="icon"><i class="fa fa-google-plus"></i></span> + <span class="icon"><i class="fab fa-google-plus"></i></span> </a> <!-- Linkedin --> <a class="button" href="https://www.linkedin.com/shareArticle?url={{ .Permalink }}&title={{ .Title }}"> - <span class="icon"><i class="fa fa-linkedin"></i></span> + <span class="icon"><i class="fab fa-linkedin"></i></span> </a> <!-- Tumblr --> <a class="button" href="https://www.tumblr.com/widgets/share/tool?canonicalUrl={{ .Permalink }}&title={{ .Title }}&caption={{ with .Params.description }}{{.}}{{ end }}"> - <span class="icon"><i class="fa fa-tumblr"></i></span> + <span class="icon"><i class="fab fa-tumblr"></i></span> </a> <!-- Pinterest --> <a class="button" href="https://pinterest.com/pin/create/bookmarklet/?media={{ with .Params.image }}{{.}}{{ else }}{{ if (fileExists (print "/static" .Site.Data.defaults.icons.logo)) }}{{ .Site.Data.defaults.icons.logo }}{{ end }}{{ end }}&url={{ .Permalink }}&description={{ .Title }}"> - <span class="icon"><i class="fa fa-pinterest"></i></span> + <span class="icon"><i class="fab fa-pinterest"></i></span> </a> <!-- Whatsapp --> <a class="button" href="whatsapp://send?text={{ .Permalink }}"> - <span class="icon"><i class="fa fa-whatsapp"></i></span> + <span class="icon"><i class="fab fa-whatsapp"></i></span> </a> <!-- Skype --> <a class="button" href="https://web.skype.com/share?url={{ .Permalink }}"> - <span class="icon"><i class="fa fa-skype"></i></span> + <span class="icon"><i class="fab fa-skype"></i></span> </a> <!-- Viber --> <!-- <a class="button" --> <!-- href="viber://forward?text={{ .Permalink }}"> --> - <!-- <span class="icon"><i class="fa fa-viber"></i></span> --> + <!-- <span class="icon"><i class="fab fa-viber"></i></span> --> <!-- </a> --> <!-- Blogger --> <!-- <a class="button" --> <!-- href="https://www.blogger.com/blog-this.g?u={{ .Permalink }}&n={{ .Title }}&t={{ with .Params.description }}{{.}}{{ end }}"> --> - <!-- <span class="icon"><i class="fa fa-blogger"></i></span> --> + <!-- <span class="icon"><i class="fab fa-blogger"></i></span> --> <!-- </a> --> </span> </div> diff --git a/layouts/shortcodes/message.html b/layouts/shortcodes/message.html index f5fe2a4..47518b3 100644 --- a/layouts/shortcodes/message.html +++ b/layouts/shortcodes/message.html @@ -10,13 +10,13 @@ {{ . }} <span class="icon is-small"> {{- if eq ($.Scratch.Get "class") "is-danger" }} - <i class="fa fa-exclamation-circle"></i> + <i class="fas fa-minus-circle"></i> {{- else if eq ($.Scratch.Get "class") "is-warning" }} - <i class="fa fa-warning"></i> + <i class="fas fa-exclamation-triangle"></i> {{- else if eq ($.Scratch.Get "class") "is-info" }} - <i class="fa fa-info-circle"></i> + <i class="fas fa-info"></i> {{- else if eq ($.Scratch.Get "class") "is-success" }} - <i class="fa fa-check-square"></i> + <i class="fas fa-check"></i> {{- end }} </span> </div> |