diff options
author | gabrielgio <gabriel.giovanini@pm.me> | 2022-04-19 19:11:39 +0200 |
---|---|---|
committer | gabrielgio <gabriel.giovanini@pm.me> | 2022-04-19 19:11:39 +0200 |
commit | b277b6012f631173dc48291916a092ed6a28903d (patch) | |
tree | 72646f1de6e9e6d256b78afda6b46fc4ba6da858 /themes/flamingo/layouts | |
parent | 39745b50dd55e03b5c9a9e9e6ea7e1a86c5317d1 (diff) | |
download | gabrielgio.me-b277b6012f631173dc48291916a092ed6a28903d.tar.gz gabrielgio.me-b277b6012f631173dc48291916a092ed6a28903d.tar.bz2 gabrielgio.me-b277b6012f631173dc48291916a092ed6a28903d.zip |
ref: Make site faster
Some changes to make the site load faster:
* remove custom font
* romove some unused scss
* remove unused scss include
* embed css into the header
* remove FA icons
Diffstat (limited to 'themes/flamingo/layouts')
-rw-r--r-- | themes/flamingo/layouts/_default/baseof.html | 9 | ||||
-rw-r--r-- | themes/flamingo/layouts/partials/footer.html | 18 | ||||
-rw-r--r-- | themes/flamingo/layouts/partials/header.html | 2 | ||||
-rw-r--r-- | themes/flamingo/layouts/partials/post-description.html | 6 |
4 files changed, 10 insertions, 25 deletions
diff --git a/themes/flamingo/layouts/_default/baseof.html b/themes/flamingo/layouts/_default/baseof.html index f81dcf1..0be16e5 100644 --- a/themes/flamingo/layouts/_default/baseof.html +++ b/themes/flamingo/layouts/_default/baseof.html @@ -5,17 +5,16 @@ <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> - - <link rel="stylesheet" type="text/css" href="/css/all.css" /> - {{ with .Site.Params.favicon }}<link rel="icon" type="image/png" href="{{ . }}" />{{ end }} <title itemprop="name"> {{ .Title }} </title> {{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }} {{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }} - {{ $styles := resources.Get "scss/main.scss" | resources.ToCSS | minify | fingerprint}} - <link rel="stylesheet" href="{{ $styles.RelPermalink }}" media="screen"> + {{ with resources.Get "scss/main.scss" | toCSS | minify }} + <style>{{ .Content | safeCSS }}</style> + {{ end }} + {{ partial "meta" . }} </head> <body> diff --git a/themes/flamingo/layouts/partials/footer.html b/themes/flamingo/layouts/partials/footer.html index a5b6bcc..c7e0e49 100644 --- a/themes/flamingo/layouts/partials/footer.html +++ b/themes/flamingo/layouts/partials/footer.html @@ -2,23 +2,9 @@ <div class="bottom-nav"> <nav> <ul> - - <li><a href="/privacy/">privacy</a></li> - <li><a - class="brand-icon" - target="_blank" - href="https://gitlab.com/gabrielgio/gabrielgio"> - <i class="fab fa-gitlab" aria-hidden="true"></i> - </a> - </li> - <li><a - class="brand-icon" - target="_blank" - href="/index.xml"> - <i class="fa fa-rss" aria-hidden="true"></i> - </a> - </li> + <li><a href="https://gitlab.com/gabrielgio/gabrielgio">gitlab</a></li> + <li><a href="/index.xml">rss</a></li> </ul> </nav> </div> diff --git a/themes/flamingo/layouts/partials/header.html b/themes/flamingo/layouts/partials/header.html index 2ea00f3..80240ee 100644 --- a/themes/flamingo/layouts/partials/header.html +++ b/themes/flamingo/layouts/partials/header.html @@ -13,7 +13,7 @@ <li><a href="https://gitlab.com/gabrielgio/cv/-/raw/main/cv.pdf?inline=false" target="_blank"> - resume<i style="font-size: x-small" class="fas fa-external-link-alt"></i> + resume</i> </a> </li> </nav> diff --git a/themes/flamingo/layouts/partials/post-description.html b/themes/flamingo/layouts/partials/post-description.html index ae79de6..c3382ce 100644 --- a/themes/flamingo/layouts/partials/post-description.html +++ b/themes/flamingo/layouts/partials/post-description.html @@ -8,20 +8,20 @@ target="_blank" href="https://gitlab.com/gabrielgio" > - <i class="fab fa-gitlab"></i> + gitlab </a>, <a class="brand-icon" target="_blank" href="https://twitter.com/giovaninigabs"> - <i class="fab fa-twitter"></i> + twitter </a> and <a class="brand-icon" target="_blank" href="https://www.linkedin.com/in/gabriel-giovanini/"> - <i class="fab fa-linkedin-in"></i> + linkedin </a> . </p> |