title: Weekly 2020-12-0x03description: [hackettyu’weekly]
RT






Share
一组图片
国内开发资源镜像一览
Documents
OAI OpenAPI 原则
Note
mkdocs-material
https://squidfunk.github.io/mkdocs-material/reference/formatting/
!!! “formatting”
```md
Text can be {—deleted—} and replacement text {}. This can also be
combined into {} operation. {Highlighting} is also
possible {>>and comments can be added inline<<}.
{==Formatting can also be applied to blocks, by putting the opening and closingtags on separate lines and adding new lines between the tags and the content.==}
!!! "formatting"<br />
Text can be {--deleted--} and replacement text {}. This can also be<br />
combined into {} operation. {Highlighting} is also<br />
possible {>>and comments can be added inline<<}.
{==
Formatting can also be applied to blocks, by putting the opening and closing tags on separate lines and adding new lines between the tags and the content.
==}
> [https://squidfunk.github.io/mkdocs-material/reference/meta-tags/#customization](https://squidfunk.github.io/mkdocs-material/reference/meta-tags/#customization)
=== "Open Graph"
{% block extrahead %}
{% set title = config.site_name %}
{% if page and page.meta and page.meta.title %}
{% set title = title ~ " - " ~ page.meta.title %}
{% elif page and page.title and not page.is_homepage %}
{% set title = title ~ " - " ~ page.title | striptags %}
{% endif %}
<meta property="og:type" content="website" />
<meta property="og:title" content="{{ title }}" />
<meta property="og:description" content="{{ config.site_description }}" />
<meta property="og:url" content="{{ page.canonical_url }}" />
<meta property="og:image" content="<url>" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
{% endblock %}
=== "Twitter Cards"
{% block extrahead %}
{% set title = config.site_name %}
{% if page and page.meta and page.meta.title %}
{% set title = title ~ " - " ~ page.meta.title %}
{% elif page and page.title and not page.is_homepage %}
{% set title = title ~ " - " ~ page.title | striptags %}
{% endif %}
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="<username>" />
<meta name="twitter:creator" content="<username>" />
<meta name="twitter:title" content="{{ title }}" />
<meta name="twitter:description" content="{{ config.site_description }}" />
<meta name="twitter:image" content="<url>" />
{% endblock %}
```
