Skip to content

Commit

Permalink
fix: fonts-src.scss & drop outdated code
Browse files Browse the repository at this point in the history
  • Loading branch information
reuixiy committed Feb 15, 2020
1 parent ffc6aa7 commit ebccc0f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
13 changes: 8 additions & 5 deletions assets/scss/_common/fonts-src.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
font-display: swap;
font-weight: inherit;
font-style: inherit;
src: url("/fonts/glyph-correction.eot");
src: url("/fonts/glyph-correction.eot?#iefix") format('embedded-opentype'),
url("/fonts/glyph-correction.woff2") format('woff2'),
url("/fonts/glyph-correction.woff") format('woff'),
url("/fonts/glyph-correction.ttf") format('truetype');
src: url('/fonts/glyph-correction.woff2') format('woff2'),
url('/fonts/glyph-correction.woff') format('woff'),
url('/fonts/glyph-correction.ttf') format('truetype'),
url('/fonts/glyph-correction.eot') format('embedded-opentype');
unicode-range: U+00B7, U+2014, U+2022, U+2026;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
}
10 changes: 3 additions & 7 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<head{{ if .Site.Params.openGraph }} prefix="og: http://ogp.me/ns# article: http://ogp.me/ns/article#"{{ end }}>
<meta charset="UTF-8" />

{{ hugo.Generator }}

{{- with .Site.Params.defaultTheme | default "light" -}}
{{- if eq . "light" -}}
<meta name="theme-color" content="{{ $.Site.Params.themeColor }}" />
Expand Down Expand Up @@ -51,18 +53,12 @@

<!-- Responsive Web Design -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=yes" />
<!-- Old Old IE -->
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
<!-- Avoid Automatic Format Detection -->
<meta name="format-detection" content="telephone=no, date=no, address=no, email=no" />
<!-- Avoid Transcoding -->
<meta http-equiv="Cache-Control" content="no-transform" />
<!-- Avoid Baidu Mobile Search Transcoding -->
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!-- Dual-core Browser -->
<meta name="renderer" content="webkit" />

{{ hugo.Generator }}

{{ partial "components/title.html" . }}
{{- $title := .Scratch.Get "title" -}}
Expand All @@ -87,7 +83,7 @@
{{- $keywordsFrontMatter := (strings.TrimSuffix ", " ($.Scratch.Get "keywordsFrontMatter")) -}}
{{- $keywords := $keywordsFrontMatter | default $keywordsPost | default $keywordsSite | default $keywordsDefault -}}
<meta name="keywords" content="{{ $keywords }}" />

<!-- Favicon, Icons, Web App -->
{{- $favicon := "favicon.ico" -}}
{{- $safariMaskIcon := "icons/safari-pinned-tab.svg" -}}
Expand Down

0 comments on commit ebccc0f

Please sign in to comment.