[wordpress插件] Blog To HTML博客转HTML

wordpress 插件 文章 2020-03-07 07:20 482 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

Blog to HTML allows you to export your blog into an HTML document that can be easily converted into an ebook.

博客到HTML允许您将博客导出到可以轻松转换为电子书的HTML文档中。

All blog posts and pictures are exported in oldest-to-newest date order.

所有博客文章和图片均以最早到最新的日期顺序导出。

Only post content is exported;

仅发布内容。

pages, widget areas, headers, footers, etc., are not exported.

页面,窗口小部件区域,页眉,页脚等未导出。

You can optionally select multiple categories to export.

您可以选择选择多个类别进行导出。

When the file is generated, you can view it with your browser, or save it to your local computer for later use.

生成文件后,可以使用浏览器查看它,或将其保存到本地计算机上以备后用。

Or you can specify an email address and the generated file will be sent via email as a compressed attachment.

或者,您可以指定一个电子邮件地址,生成的文件将作为压缩附件通过电子邮件发送。

Each file has a unique name, so you can have multiple versions of the output.

每个文件都有一个唯一的名称,因此您可以有多个版本的输出。

HTML elements get a unique CSS class to allow you to further style the output.

HTML元素具有唯一的CSS类,可让您进一步设置输出的样式。

Any HTML elements embedded in your post output is retained.

保留在您的post输出中的所有HTML元素都将保留。

All posts are exported;

所有帖子均已导出;

there are no watermarks or limited features.

没有水印或功能受限。

This plugin’s main purpose is to easily output your blog (with pictures) in a format to easily convert to an ebook.

该插件的主要目的是轻松地以一种易于转换为电子书的格式输出您的博客(带有图片)。

For instance, Amazon’s Kindle Direct Publishing will accept an HTML file, to which you add additional meta (cover image, etc).

例如,亚马逊的Kindle Direct Publishing将接受一个HTML文件,您可以在其中添加其他元数据(封面图片等)。

Each post has an H1 for the title, and H2 for the publish date, so those tags can be used for a table of contents.

每个帖子的标题均带有H1,发布日期带有H2,因此这些标记可用于目录。

You may need to add any additional CSS rules for your site’s unique formatting.

您可能需要为网站的唯一格式添加任何其他CSS规则。

You can import the HTML file into Calibre or any HTML editor to further format and create your ebook.

您可以将HTML文件导入Caliber或任何HTML编辑器,以进一步格式化和创建电子书。

Or submit the HTML file directly to your ebook publisher.

或直接将HTML文件提交给您的电子书出版商。

The generated HTML file includes some CSS for various HTML tags, and are defined at the top of the HTML file.

生成的HTML文件包含一些用于各种HTML标签的CSS,并且在HTML文件的顶部进行了定义。

    • body {color:#000 !important;background-color:#fff !important;

    • body {color:#000!important; background-color:#fff!important;

      } /* to make sure the text is visible */

    • } / *以确保文本可见* /

    • .blog2html_h1 {} /* H1 class */
    • .blog2html_h1 {} / * H1类* /

    • .blog2html_h2 {} /* H2 class */
    • .blog2html_h2 {} / * H2类* /

    • .blog2html_div {} /* DIV class */
    • .blog2html_div {} / * DIV类* /

    • .blog2html_p {} /* P class */
    • .blog2html_p {} / * P类* /

    • .blog2html_img {} /* IMG class */
    • .blog2html_img {} / * IMG类* /

    • .blog2html_caption {} /* CAPTION class */
    • .blog2html_caption {} / * CAPTION类* /

    • .blog2html_image_div {} /* DIV around multiple IMG */
    • .blog2html_image_div {} / *围绕多个IMG的DIV * /

    • .blog2html_a {} /* A class */
    • .blog2html_a {} / *一个类* /

    • This next block is to help images position next to each other

    • 下一个步骤是帮助图像彼此相邻放置

      figure.blog2html_figure {

      Figure.blog2html_figure {

      /* To correctly align image, regardless of content height: /

      / *要正确对齐图像,而不考虑内容高度: /

      vertical-align: top;

      垂直对齐:顶部;

      display: inline-block;

      显示:inline-block;

      / To horizontally center images and caption /

      / 将图像和标题水平居中 /

      text-align: center;

      文字对齐:居中;

      / The width of the container also implies margin around the images.

      / 容器的宽度还意味着图像周围的边距。

      */

      * /

      width: 120px;

      宽度:120像素;

      }

    • }

    You can set those CSS values according to your needs.

    您可以根据需要设置这些CSS值。

    Images are set to a max-width of 400px, although you can override that with custom CSS.

    图片可以设置为最大宽度为400px,尽管您可以使用自定义CSS覆盖图片。

安装步骤

    1. Install via the Add Plugin page.

      通过“添加插件”页面安装。

      (On multisites, use the Network Admin Plugin page.) Or download the zip file, uncompress, then upload to /wp-content/plugins/ directory.

      (在多站点上,使用“网络管理插件”页面。)或下载zip文件,解压缩,然后上传到 / wp-content / plugins / 目录。

      Or download, then upload/install via the Add Plugin page.

      或下载,然后通过“添加插件”页面上载/安装。

    2. Activate the plugin through the ‘Plugins’ menu in WordPress.

      通过WordPress中的“插件”菜单激活插件。

    3. Usage information in Settings, ‘Blog To HTML Info/Usage’.

      “设置”中的“使用信息”,“博客HTML信息/用法”。

下载地址
https://downloads.wordpress.org/plugin/blog-to-html.zip
-EOF-

AI助手支持GPT4.0