Skip to content

3. Create a blog post

Mark Downie edited this page Apr 19, 2021 · 19 revisions

After configuring DasBlog Core you can start creating, editing and publishing blog posts!

Create a post

Dasblog Core supports a basic in browser blogging experience by logging in and navigating to post creation page (...post/create).

Dasblog Core supports:

  • Adding new categories
  • Future post dates
  • Uploading and inserting images
  • Disallowing comments

You can choose between several Web post edit controls (TinyMCE, NiceEdit, Froala and a Html Text Area control) defined in the Site Admin page (.../admin/settings).

Using Open Live Writer

Of course you can also use a blogging tool like Open Live Writer to create and edit blog posts.

alt text alt text

The credentials required when adding a blog are the same ones used when logging into the site. Account setup instructions can be found here.

Publishing Code

If you are publishing multi line code snippets (xml, html, c#, etc.) or some other text that needs a strict syntax and/or specific formatting we strongly suggest using the <pre> tag .

The content of the <pre> tag will need to be HTML-escaped for each of the following characters & < >.

&   &amp;
<   &amp;lt;
>   &amp;gt;

Here is an example of XML snippet I want to display as part of my blog post:

<xml>Details</xml>

This is the HTML code I need to make that happen:

<pre>&amp;lt;xml&amp;gt;Details&amp;lt;xml&amp;gt;</pre>

Here is a C# code example I want display:

List<string> val = null;

That code becomes:

<pre>List&amp;lt;string&amp;gt; val = null;

Finally, if you also want code coloring or numbering I would suggest a code highlighter. My preferred code highlighter is EnlighterJS, an open source syntax highlighter written in pure JavaScript.

Additional questions?

If you have additional questions or concerns please submit an issue.

Clone this wiki locally