$names:  "Regular", "Bold";

@mixin source-han-serif($locale, $weight: 400, $name: nth($names, $weight / 100)) {

	@font-face {
		font-family: "Source Han Serif Web " + $locale;
		font-weight: $weight;
		unicode-range: U+11??, U+2E00-9FFF, U+A960-A97F, U+AC00-D7FF, U+F900-FAFF, U+FE1?, U+FE30-FE6F, U+FF00-FFEF, U+2????;
		src: url("https://zihaolu.github.io/assets/font/SourceHanSerif#{$locale}-#{$name}.woff2") format("woff2"),
		url("https://zihaolu.github.io/assets/font/SourceHanSerif#{$locale}-#{$name}.woff") format("woff"),
		url("https://zihaolu.github.io/assets/font/SourceHanSerif#{$locale}-#{$name}.otf") format("opentype");
	}
}

@mixin font-serif($font-family-fallback: serif) {
  font-family: Merriweather, Georgia, "Times New Roman", Times, source-han("Serif"), "Source Han Serif Web CN", "Source Han Serif Web TW", serif;
}

@mixin font-monospace($font-family-fallback: monospace) {
  font-family: Courier, Monaco, $font-family-fallback;
}

@function font-size($factor: 1.0) {
  @return $font-size * $factor;
}

$names:  "Regular", "Bold";

@mixin source-han-serif($locale, $weight: 400, $name: nth($names, $weight / 100)) {

	@font-face {
		font-family: "Source Han Serif Web " + $locale;
		font-weight: $weight;
		unicode-range: U+11??, U+2E00-9FFF, U+A960-A97F, U+AC00-D7FF, U+F900-FAFF, U+FE1?, U+FE30-FE6F, U+FF00-FFEF, U+2????;
		src: url("https://zihaolu.github.io/assets/font/SourceHanSerif#{$locale}-#{$name}.woff2") format("woff2"),
		url("https://zihaolu.github.io/assets/font/SourceHanSerif#{$locale}-#{$name}.woff") format("woff"),
		url("https://zihaolu.github.io/assets/font/SourceHanSerif#{$locale}-#{$name}.otf") format("opentype");
	}
}
Revert "Set Source Han Serif Webfont"
Revert "Set Source Han Serif Webfont"

This reverts commit 10c841161ee7b77777fcda106981e644ddb8726d.
