跳到主要内容
[Navbar 包装器占位符]
[DocBreadcrumbs 包装器占位符 - 面包屑上方]

index

Featured image size may vary depending on the theme being used. With Astra Theme, we recommend uploading the image size of 1200 pixels (width) by 628 pixels (height): 特色图像尺寸可能会根据所使用的主题而有所不同。对于 Astra 主题,我们建议上传 1200 像素(宽)x 628 像素(高)的图像尺寸:

Setting your original image to 1200 x 628 pixels will also help avoid some cropping issues on your website and social media both. 将原始图像设置为 1200 x 628 像素也将有助于避免网站和社交媒体上的一些裁剪问题。

设置header边框

  1. style.css
.site-header {
border-bottom: 1px solid #DADDE1; /* 将 #000000 替换为您想要的颜色代码 */
}
  1. 使用 Astra Hooks:

    如果您想要更多控制,可以使用 Astra 的钩子系统:

    在您的主题的 functions.php 文件中添加以下代码:

    add_action('astra_header_before', 'add_header_border_style');
    function add_header_border_style() {
    echo '<style>
    .site-header {
    border-bottom: 1px solid #000000; /* 将 #000000 替换为您想要的颜色代码 */
    }
    </style>';
    }

温馨提示:

这是显示在“上一篇/下一篇”分页按钮上方的自定义文字。

[TOC 包装器占位符 - 目录上方]
Mario
Mario
[Footer 包装器占位符 - 位于页脚上方]

这是通过 Docusaurus Wrapping 统一添加的底部文字内容。

ddddddd