Skip to content

Commit

Permalink
move site.css to assets to minify site.css for a faster load time.
Browse files Browse the repository at this point in the history
  • Loading branch information
iossefy committed Dec 1, 2022
1 parent 3165a88 commit 46e58a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
File renamed without changes.
3 changes: 1 addition & 2 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
{{ partial "meta" . }}
<meta name="twitter:image" content="{{ .Site.BaseURL }}{{ .Params.meta_img | default .Site.Params.logofile }}" />
<link rel="canonical" href="{{ .Permalink }}">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/site.css" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/custom.css" />
{{ partial "styles" . }}
{{ if .Site.Params.faviconpath }}
<link rel="apple-touch-icon" sizes="180x180" href="{{ .Site.Params.faviconpath }}/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="{{ .Site.Params.faviconpath }}/favicon-32x32.png">
Expand Down
3 changes: 3 additions & 0 deletions layouts/partials/styles.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{{- $sitecss := resources.Get "css/site.css" | resources.Minify }}
<link rel="stylesheet" href="{{ $sitecss.RelPermalink }}" />
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/custom.css" />

0 comments on commit 46e58a9

Please sign in to comment.