mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2025-10-09 10:11:14 +00:00
Font-swap on font-awesome and image compression
This commit is contained in:
parent
1964f176d2
commit
e437fcdd1a
9 changed files with 26 additions and 19 deletions
|
@ -64,15 +64,5 @@
|
|||
<!-- {{- template "_internal/twitter_cards.html" . -}} -->
|
||||
{{- partial "external/twitter_cards.html" . -}}
|
||||
|
||||
<script src="https://polyfill.io/v3/polyfill.js"></script>
|
||||
|
||||
<!-- MathJax -->
|
||||
{{- if or .Params.math .Site.Params.math -}}
|
||||
{{ partial "mathjax_support.html" . }}
|
||||
{{- end -}}
|
||||
|
||||
{{ partial "citation.html" . }}
|
||||
|
||||
{{- $script := resources.Get "js/script.js" -}}
|
||||
<script src="{{ $script.Permalink }}" async></script>
|
||||
</head>
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
<h2 class="p-name"><a class="author u-url" rel="me" href="{{ .Site.BaseURL }}">{{ .Site.Params.Author }}</a></h2>
|
||||
{{ $profile_image := resources.Get (printf "img/%s" .Site.Params.avatar) }}
|
||||
{{ $profile_width := 75 }}
|
||||
{{ $profile_image := $profile_image.Resize (printf "%dx" $profile_width) }}
|
||||
<img class="avatarMask u-photo" width="{{ $profile_width }}" src="{{ $profile_image.RelPermalink }}" alt="Photo of {{ .Site.Params.Author }}">
|
||||
{{ $profile_image := $profile_image.Resize (printf "%dx webp q75" $profile_width) }}
|
||||
<img class="avatarMask u-photo" width="{{ $profile_width }}" height="{{ $profile_width }}" src="{{ $profile_image.RelPermalink }}" alt="Photo of {{ .Site.Params.Author }}">
|
||||
<div style="display: none">
|
||||
<!-- email / description (for h-card) -->
|
||||
<a class="u-email" href="mailto://{{ .Site.Params.email }}"></a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue