Home - acetous/NeatBlog GitHub Wiki

Welcome to the NeatBlog wiki!

Console commands

  • ./symfony neat:update-search - Create a new index for the search engine. Use this if posts are missing or you just updated from v1.x to 2.x. Check permissions of the /data directory. The created search index at /data/post.<env>.index needs to be writeable by the webserver.
  • ./symfony themed:setup - Setup a new theme.

See ./symfony help <command> to view a help document.

FAQ

How will the post excerpt be created?

The excerpt's range starts with the beginning of the first real line of text and ends with the first linebreak. Therefore the first paragraph can be longer than the excerpt since Markdown ends a paragraph on an empty line (two linebreaks). Finding the first real line of text refers to skipping some stuff, including:

  • headings
  • images
  • lines containing HTML-tags like img, div, span

Note that the excerpt keeps all reference style links for your comfort.

The code for generating an excerpt can be found in BlogPost::getExcerpt().

⚠️ **GitHub.com Fallback** ⚠️