Giter Site home page Giter Site logo

riaf / hugowxrexporter Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 18 KB

HugoWXRExporter is a tool for converting content created with Hugo static site generator to WordPress Extended RSS (WXR) format. This facilitates the easy migration of content from Hugo to WordPress.

License: Apache License 2.0

Dockerfile 3.95% Python 96.05%
export hugo markdown wordpress wxr xml

hugowxrexporter's Introduction

HugoWXRExporter

Overview

HugoWXRExporter is a tool for converting content created with Hugo static site generator to WordPress Extended RSS (WXR) format. This facilitates the easy migration of content from Hugo to WordPress.

Features

  • Recursively reads Hugo markdown files
  • Parses metadata and content, converting them into WordPress WXR format
  • Utilizes Docker to eliminate environment dependencies

Environment Variables

You can customize the behavior of the script using the following environment variables:

  • HUGO_WXR_CREATOR: Set the creator name for the WXR file. Default is 'admin'.
  • HUGO_WXR_GUID: Set the base URL for GUID. The unique part of GUID will be appended to this base URL. Default is 'http://example.com/'.

Usage

Prerequisites

Docker must be installed to use this tool.

Running the Tool

Pull the public Docker image and execute the Docker container, specifying the path to your Hugo content directory and optionally setting environment variables.

docker pull ghcr.io/riaf/hugowxrexporter:latest
docker run -v /path/to/hugo/content:/app/content -e HUGO_WXR_CREATOR="YourName" -e HUGO_WXR_GUID="http://yourwebsite.com/" ghcr.io/riaf/hugowxrexporter:latest /app/content

Replace /path/to/hugo/content with the actual path to your Hugo content directory. Adjust the environment variables as needed.

License

This project is made available under the Apache License 2.0.

hugowxrexporter's People

Contributors

riaf avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.