Giter Site home page Giter Site logo

Comments (6)

kadefor avatar kadefor commented on May 9, 2024

I think the metadata format could be changed to ":title:" "📅" ... because they are "docinfo" in restructuredtext.

from nikola.

tshepang avatar tshepang commented on May 9, 2024

@ralsina to avoid surprising new users, rather offer it by default; in any case, is there a reason why nikola still supports separate metadata files after the change to make it optional?

from nikola.

ralsina avatar ralsina commented on May 9, 2024

On 06/22/2012 11:16 PM, Tshepang Lekhonkhobe wrote:

to avoid surprising new users, rather offer it by default; in any case, is there a reason why nikola still supports separate metadata files after the change to make it optional?

Yes, the 1200 posts in my site I don't want to fix ;-)

from nikola.

ralsina avatar ralsina commented on May 9, 2024

On 06/22/2012 11:15 PM, Kade For wrote:

I think the metadata format could be changed to ":title:" "📅" ... because they are "docinfo" in restructuredtext.

But docinfo is visible.

from nikola.

kadefor avatar kadefor commented on May 9, 2024

But docinfo is visible.

maybe we can use docutils.core.publish_parts as 'parts'.

the docinfo as meta is in parts['docinfo'], and the post's body is parts['body'] that don't include the docinfo.

from nikola.

ralsina avatar ralsina commented on May 9, 2024

Done as part of the plugin support.

The new "nikola new_post" command works like this:

Usage: nikola new_post [options]

Options:
  -h, --help            show this help message and exit
  -p, --page            Create a page instead of a blog post.
  -t TITLE, --title=TITLE
                        Title for the page/post.
  --tags=TAGS           Comma-separated tags for the page/post.
  -1                    Create post with embedded metadata (single file
                        format).
  -f POST_FORMAT, --format=POST_FORMAT
                        Format for post (rest or markdown)

from nikola.

Related Issues (20)

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.