Browse Source

added custom css link

tags/v1.0.0
somrat 5 years ago
parent
commit
d49ef48fe8
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      layouts/partials/head.html

+ 4
- 0
layouts/partials/head.html View File

{{"<!-- Main Stylesheet -->"|safeHTML}} {{"<!-- Main Stylesheet -->"|safeHTML}}
{{ $styles := resources.Get "css/style.css" | minify}} {{ $styles := resources.Get "css/style.css" | minify}}
<link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}" media="screen"> <link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}" media="screen">
{{ "<!-- Custom CSS -->" | safeHTML }}
{{ range .Site.Params.custom_css }}
<link rel="stylesheet" href="{{ . | absURL }}">
{{ end }}


</head> </head>

Loading…
Cancel
Save