A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);
# Change YOUR_TOKEN to your prerender token | |
# Change example.com (server_name) to your website url | |
# Change /path/to/your/root to the correct value | |
server { | |
listen 80; | |
server_name example.com; | |
root /path/to/your/root; | |
index index.html; |
NOTE: this gist is outdated, refer to this repository instead - https://github.com/ghaiklor/iterm-fish-fisher-osx
To embed the contents of an SVG file into your site using NextJS 12 with the new Rust-based compiler, perform the following steps:
@svg/webpack
:$ npm install --save-dev @svgr/webpack
svgr.config.js
config file with the following contents. This will remove the width and height from the SVG but keep the viewBox for correct scaling.