[WordPress] 外掛分享: Blog To HTML

首頁外掛目錄 › Blog To HTML
WordPress 外掛 Blog To HTML 的封面圖片
50+
安裝啟用
★★★★★
5/5 分(3 則評價)
2204 天前
最後更新
問題解決
WordPress 4.6+ v1.91 上架:2017-09-26

內容簡介

Blog to HTML 可以讓您將您的部落格匯出成一份 HTML 文件,並且容易轉換成一本電子書。所有部落格文章和圖片將按照由舊至新的日期順序匯出。僅輸出文章內容,不包括頁面、小部件區域、標題、頁腳等。您可以選擇匯出多個類別。

當檔案生成時,您可以使用瀏覽器查看它,或將其保存到本地電腦以便以後使用。或者,您可以指定電子郵件地址,並通過電子郵件將生成的檔案作為壓縮附件發送。每個檔案都有一個獨特的名稱,因此您可以擁有多個版本的輸出。HTML 元素具有獨特的 CSS 類,以允許您進一步樣式化輸出。保留文章輸出中嵌入的任何 HTML 元素。所有文章都會被匯出;沒有浮水印或限制功能。

這個外掛的主要目的是輕鬆輸出您的部落格(與圖片)以一種容易轉換成電子書格式的方式。例如,亞馬遜的 Kindle Direct Publishing 將接受一個 HTML 檔案,您可以在其中添加其他的元數據(封面圖片等)。每個文章標題有一個 H1,發布日期有一個 H2,因此這些標籤可以用於制作目錄。您可能需要添加您網站獨特格式的任何其他 CSS 規則。

您可以將 HTML 檔案匯入 Calibre 或任何 HTML 編輯器中,以進一步格式化並創建您的電子書。或將 HTML 檔案直接提交給您的電子書發布商。

生成的 HTML 檔案包含一些 HTML 標記的 CSS,並在 HTML 檔案的頂部定義。

body {color:#000 !important;background-color:#fff !important; } /* 確保文字可見 */
.blog2html_h1 {} /* H1 類 */
.blog2html_h2 {} /* H2 類 */
.blog2html_div {} /* DIV 類 */
.blog2html_p {} /* P 類 */
.blog2html_img {} /* IMG 類 */
.blog2html_caption {} /* CAPTION 類 */
.blog2html_image_div {} /* DIV 包圍多個 IMG */
.blog2html_a {} /* A 類 */
以下區塊用於幫助圖片彼此位置設置
figure.blog2html_figure {
/*用於正確對齊圖片,無論內容高度如何:*/
vertical-align: top;
display: inline-block;
/*用於水平居中圖片和標題*/
text-align: center;
/*容器的寬度還意味著圖片周圍有邊距*/
width: 120px;
}

您可以根據需要設置這些 CSS 值。圖片的最大寬度為 400 像素,但您可以使用自定義 CSS 覆蓋它。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.91) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Blog To HTML」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Blog to HTML allows you to export your blog into an HTML document that can be easily converted into an ebook. 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. Any HTML elements embedded in your post output is retained. 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). 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. You may need to add any additional CSS rules for your site’s unique formatting.
You can import the HTML file into Calibre or any HTML editor to further format and create your ebook. Or submit the HTML file directly to your ebook publisher.
The generated HTML file includes some CSS for various HTML tags, and are defined at the top of the HTML file.

body {color:#000 !important;background-color:#fff !important; } /* to make sure the text is visible */
.blog2html_h1 {} /* H1 class */
.blog2html_h2 {} /* H2 class */
.blog2html_div {} /* DIV class */
.blog2html_p {} /* P class */
.blog2html_img {} /* IMG class */
.blog2html_caption {} /* CAPTION class */
.blog2html_image_div {} /* DIV around multiple IMG */
.blog2html_a {} /* A class */
This next block is to help images position next to each other
figure.blog2html_figure {
/* To correctly align image, regardless of content height: /
vertical-align: top;
display: inline-block;
/ To horizontally center images and caption /
text-align: center;
/ The width of the container also implies margin around the images. */
width: 120px;
}

You can set those CSS values according to your needs. Images are set to a max-width of 400px, although you can override that with custom CSS.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon