mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 12:13:19 +00:00
feat: use Inter font
This commit is contained in:
1 parent
e2706d6622
commit
8f0b35eeed
4 files changed
+25
-1
No files matched your search
Binary file not shown.
@@ -283,6 +283,20 @@
|
||||
|
||||
<title>{{$title}}</title>
|
||||
|
||||
{{/* Load font theme */}}
|
||||
{{ $font_family := "Inter var" }}
|
||||
{{ $font_file := "Inter.var.woff2" }}
|
||||
{{ $font := resources.Get (printf "dist/font/%s" $font_file) }}
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: '{{$font_family}}';
|
||||
font-style: normal;
|
||||
font-weight: 100 900;
|
||||
font-display: swap;
|
||||
src: url({{ $font.RelPermalink }}) format("woff2");
|
||||
}
|
||||
</style>
|
||||
|
||||
{{/* EXTENSIBILITY HOOK: HEAD-END */}}
|
||||
{{/* Deprecated custom_head hook */}}
|
||||
{{ if templates.Exists "partials/custom_head" }}
|
||||
|
||||
@@ -28,5 +28,6 @@
|
||||
"scripts": {
|
||||
"build:blog": "npx tailwindcss -i ./assets/css/styles.css -o ../../starters/blog/assets/dist/wc.css --minify"
|
||||
},
|
||||
"browserslist": "last 2 versions",
|
||||
"version": "0.1.0"
|
||||
}
|
||||
@@ -1,3 +1,5 @@
|
||||
const defaultTheme = require('tailwindcss/defaultTheme')
|
||||
|
||||
module.exports = {
|
||||
content: ['./hugo_stats.json', './layouts/**/*.html'],
|
||||
plugins: [
|
||||
@@ -6,5 +8,12 @@ module.exports = {
|
||||
safelist: [
|
||||
'task-list',
|
||||
],
|
||||
darkMode: ['class']
|
||||
darkMode: ['class'],
|
||||
theme: {
|
||||
extend: {
|
||||
fontFamily: {
|
||||
'sans': ['"Inter var"', ...defaultTheme.fontFamily.sans],
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user