示例文章

基本段落

书中自有黄金屋,书中自有颜如玉
💡
生活的意义并不是与他人争高下,而在于享受努力实现目标的过程,结果只是对自己行动的嘉奖。
将进酒
李白〔唐代〕
君不见黄河之水天上来,奔流到海不复回。
君不见高堂明镜悲白发,朝如青丝暮成雪。
人生得意须尽欢,莫使金樽空对月。
天生我材必有用,千金散尽还复来。
烹羊宰牛且为乐,会须一饮三百杯。
岑夫子,丹丘生,将进酒,杯莫停。
与君歌一曲,请君为我倾耳听。
钟鼓馔玉不足贵,但愿长醉不愿醒。
古来圣贤皆寂寞,惟有饮者留其名。
陈王昔时宴平乐,斗酒十千恣欢谑。
主人何为言少钱,径须沽取对君酌。
五花马、千金裘,呼儿将出换美酒,与尔同销万古愁。

特殊段落
1.代码

Bash 安装zsh

$ sudo apt install zsh

配置ohmyzsh

$ sh -c “$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)”

配置ohmyzsh插件

zsh-autosuggestions

$ git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

zsh-syntax-highlighting

$ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

// 启用插件
$ vim .zshrc
plugins=(git z zsh-autosuggestions zsh-syntax-highlighting)
Bash
其他更多语言
2.公式
数学公式

化学方程
2

H
2
O

2

H
2
+
O
2
2HX
2


O

2HX
2


+OX
2

其他更多公式

  1. 图表
    公司架构
    商务
    研发
    设计
    运营
    产品
    Mermaid
    思维导图
  2. PDF嵌入
    How I got married totailwindcssKlaus Fischerklaus@supersimple.at@klausinger
    Goal
    Motivate 3 peopleto try tailwind!
    How is the motivation happening? (Agenda)1. What is tailwind?2. What problems does it solve?3. How did I get convinced?4. Quickstart5. Future & Improvements
  3. What is tailwind?A utility-firstCSS frameworkfor rapidly buildingcustom designs.
    WTF Utility-first
    HighandDRY

    soDRY

  4. What problemsdoes tailwind solve?
    Scope: Think less when styling‐ Classes instead of CSS properties<span class=”text-primary”>Importante!</span>.text-primary {color: red;line-height: 1.25;}<span class=”text-redleading-tight”>Importante!</span>
    Responsive utility classes‐ Variants supercharge your classes<span class=”text-lgmd:text-xlhover:text-redmd:hover:text-blue”>Importante!</span>
    Establish flexible design systems‐ Declare your design system/styleguide in tailwind.config.js‐ Atoms → Components‐ Build combos for repeating elements (e.g. forms)<input type=”text” class=”tw-input”>.tw-input {@apply px-4 py-3 border border-gray-400 appearance-none;}
    It’s CSS only!‐ No JS components → Use it with your favorite jQueryversion JS framework 😉‐ Do one thing and do it well‐ Less cognitive connection between CSS and JS, easieronboarding‐ More utility-based CSS frameworks: tachyons, …
  5. How did I get convinced?
    History lesson!‐ Bootstrap :( there has to be something better!‐ uikit 2 → uikit 3‐ Utility based → tachyons?○ 👍 Minimalism, typo 👎 Maintenance‐ Stick with uikit 3
    “We really should try that new thing!”
    Make a sustainable choiceI won’t regret.
    Sustainable choice, huh?‐ Perf: Generate ALL the classes → purgecss‐ Low risk project (budget, few tech. unknowns, lowmaintenance)‐ Take the time to learn‐ Encourage enthusiasm‐ Decide afterwards
    “Mkay, gimme half the pill and a way out.”
    Technical integration‐ Symfony Boilerplate + Storyblok‐ SSR with PHP + twig‐ SCSS (uikit)‐ ES6, Vue.js, webpack‐ Gulp
    →PostCSS
    Why PostCSS?‐ more modular than scss‐ postcss-preset-env (!!!)‐ CSS custom properties a.k.a. CSS Variables, imports,nesting
    Workflow‐ Half a day to make it work‐ VSCode plugin as cheatsheet‐ Designs → extract design system → typo, colors, spacings‐ tailwind.config.js overrides‐ Start building!
  6. tailwindcss Quickstart
    tailwindcss Quickstart‐ Start plain or add to your setup‐ Don’t panic, use the force search! (it’s really good)‐ IDE Plugin / Cheatsheet‐ Component-based approach‐ Grid, Typography, Spacings (Sample Markdown)‐ Give yourself some time!
  7. THE FUTURE
    Future & Improvements‐ Order classes: text-red border-red md:text-lg‐ Improve combo-readability‐ Combine with JS libs (sliders, modals, … )‐ https://www.tailwindui.com/‐ Share experiences!
    Summary (finally!)
    Summary1. What is tailwind? utility-based2. What problems does it solve? scope, variants, focused3. How did I get convinced? Low risk, purgeCSS, enthusiasm4. Quickstart: pick a project, search docs, IDE plugin5. Take some time and try it!
    Hope you’ve enjoyed, try it!Klaus Fischer@klausingerWanna code tailwind or something else?klaus.fischer@netural.com
    STOP CSS NOW, TALK JSKlaus Fischer@klausingerWanna code tailwind or something else?klaus.fischer@netural.com
    5.下载附件
    下载PDF附件.pdf
    469.5KB
  8. 照片集
    照片集
  9. 内嵌网页

5.代办
家庭
洗衣
做饭
事业
开会
加班
6.折叠列表
点击展开

  1. 同步块
    Notion支持将不同页面的块进行同步,即 SyncBlock,以下是来自另一个页面的块:
    【sync-block】这是一段来自示例文章-3的段落 ,通过 SyncBlock同步。
    💡
    注意 : 同步块的使用条件是源页面也要被开放共享 ,否则NotionNext将无权访问,页面上会被忽略渲染。
    notion image

多级目录
heading标题在博客中自动转为目录
二级目录1
二级内容 1
二级目录2
二级内容2
二级目录3
三级目录3.1
不同级别的heading代表不同级别的目录
三级目录3.2
高一级目录嵌套低一级目录
多级列表
事物的必然性
事物按规律变化,也有一种不可避免的性质.这种性质就叫做必然性
事物的必然性,是事物本身的性质(我们反对宿命论的是其认为这一切是受神明的支配,而不是反对事物发展中存在的不可避免的性质的事实)
第三级别列表
第三级别列表
其决定于它自己本身发展的情况和周围的条件
第三级别列表
第三级别列表
模板使用说明
若要部署你的NotionNext项目,请复制该模板,并按照模板格式创建文章:
Notion页面中,每篇文章都将有以下属性🤔:
属性
必填
说明
备注
title

文章标题

status

发布状态
(仅当状态为Published 时会被 展示)
type

页面类型 (博文Post / 单页(Page)
单页不会在博文列表显示 。
summary

内容摘要
搜索和简略显示会用到
date

发布日期
在V3.3.9之前的版本此项为必填。
category

文章分类
可以自定义
tags

文章标签
可多个,建议不要太多
slug

文章短路径
(每篇文章唯一,请勿 重复)
icon

菜单栏图标(仅当Page类型有效)
可以参考:图标库地址
password

文章加锁
需要输入密码才允许访问
评论插件
系统支持 Waline\Giscus\Valine\GitTalk\Utterance\Cusdis\Twikoo六种评论插件,并且可以同时开启,点击评论区的Tab来体验。
按照以下教程可以开启响应的评论插件