




























Listed below are a few neat features of Bear that you probably don't know about.
You can now modify the way your dashboard looks in Customise dashboard in your account section of your dashboard.
For example, adding the following CSS:
body {
max-width: 1024px;
}
button {
padding: 10px 15px;
background-color: #eceff4;
border-radius: 10px;
border: 0;
}
will make your dashboard look like this:

You can now add filtered post lists to any content on your blog. This is covered in detail here.
**Last 3 posts**
{{ posts|limit:3 }}
Last 3 posts
You can now write mathematical notation in LaTeX in any content field. This is covered in more detail here.
**Energy conversion in the Sun** $$4 \, \text{H} \rightarrow \text{He} + 2 \, \text{e}^+ + 2 \, \nu_e + \gamma$$
Energy conversion in the Sun 4H→He+2e++2νe+γ
You can now edit your robots.txt file in Settings > Advanced settings. For example, you can block ChatGPT from accessing your blog by adding:
User-agent: GPTBot Disallow: /
The following attributes can be inserted in any blog or post content:
{{ blog_title }}
{{ blog_description }}
{{ blog_link }}
{{ blog_created_date }}
{{ blog_last_modified }} ago
{{ blog_last_posted }} ago
{{ post_title }}
{{ post_description }}
{{ post_link }}
{{ post_published_date }}
{{ post_last_modified }} ago
Eg:
This post **({{ post_title }})** was last edited **{{ post_last_modified }} ago**.
This post (Neat Bear features) was last edited 2 months, 3 weeks ago.
The following can be inserted into any content to render a full tag list along with filter links:
The following can be inserted into any content to render a link to the next or previous post in the blog list:
{{ previous_post }}
{{ next_post }}
Add links to random blog or post on Bear by using https://bearblog.dev/discover/random-blog/ and https://bearblog.dev/discover/random-post/:
[Random blog](tab:https://bearblog.dev/discover/random-blog/) [Random post](tab:https://bearblog.dev/discover/random-post/)
To make looking up tags that have already been used on the blog easier, in the ► Attributes above the post text area the tags example will be populated with tags that have been previously used on your blog.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。