mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
9 lines
613 B
HTML
9 lines
613 B
HTML
{% if config.extra.font != "none" %}
|
|
{% set text = config.extra.get("font", {}).text | default("Roboto") %}
|
|
{% set code = config.extra.get("font", {}).code | default("Roboto Mono") %}
|
|
{% set font = text + ':300,400,400i,700|' + code | replace(' ', '+') %}
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family={{ font }}">
|
|
<style>body,input{font-family:"{{ text }}","Helvetica Neue",Helvetica,Arial,sans-serif}code,kbd,pre{font-family:"{{ code }}","Courier New",Courier,monospace}</style>
|
|
{% endif %}
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
|