Blog-Doc's logo
Docs GitHub logo
> Creating content

Documentation

Getting started
Creating content
Go Static!
Admin
Front-end
Development

Creating content

Gallery

How to add images and use them in Blog-Doc?

Content

Blog-Doc's gallery feature makes it easy to add or remove images from your application.

Add an image

To add an image to the Images Gallery in Blog-Doc access the administration interface and click on the Gallery link under the Images Section:

Access images gallery in Blog-Doc

Once in the Images Gallery, click on the "Browse" link to select your image(s).
You can upload as many images as you like, but be aware that the total file size of all uploaded images must not exceed 15MB.

Select images to be added in Blog-Doc's gallery Information SVG To effectively add image(s) to the gallery, you MUST click on the "Upload" button, otherwise image(s) will not be added!

Delete an image

To remove an image from the gallery:

  1. Access the administration interface
  2. Access the images gallery
  3. Click on the Delete button of the image.
  4. A modal is displayed to delete the image or not.
  5. Click on the Delete button of the modal to delete the image.
Remove an image from Blog-Doc's gallery

Use images

Inside pages and posts

Added image(s) to the gallery can be used inside pages and posts with the Markdown signature for images:

![Image title](image-source "Image alternative text")

Example of embedding an image to the content of a page or post from the gallery:

This is a Markdown content.
Embed an image from the gallery to the content of a page or post using Markdown signature for images.
![Cedar of Lebanon](/static/images/cedar-tree-of-Lebanon.jpg "Mighty Cedar Tree of Lebanon")
Continue to write your content using Markdown.

You can also use the HTML <img> tag, like you would do in a normal HTML file:

This is a Markdown content.
Embed an image from the gallery to the content of a page or post using the HTML <img> tag.
<img title="Cedar of Lebanon" src="/static/images/cedar-tree-of-Lebanon.jpg" alt="Mighty Cedar Tree of Lebanon" />
Then continue to write your content using Markdown.

You can, of course, load pictures from the Internet in addition to the gallery:

Loading an image from the Web in Markdown content.
![Cedar of Lebanon](https://tinyurl.com/483s6hr2 "Mighty Cedar Tree of Lebanon")
Loading an image from the Web using HTML in Markdown content!
<img title="Cedar of Lebanon" src="https://tinyurl.com/483s6hr2" alt="Mighty Cedar Tree of Lebanon" />

Nota Bene: Using Markdown syntax to display images is much easier!

Information SVG Blog-Doc's images are responsive by default! Just specify the title, the source and an alternative text for accessibility.

To design pages and posts

Added image(s) to the gallery can be used to make pages and posts more appealing.

While creating or updating a page or post, you can choose an image from the gallery as a featured image:

Add featured image from the gallery to a page or post in Blog-Doc

Or fetch an image from the Web as a featured image:

Add featured image from the Web to a page or post in Blog-Doc

Or don't display an image!
When you create a page or post, or change any image, you can select the following icon to display a blank/transparent background instead of an image.

No image icon

Routes images

Blog-Doc's frontend consists of five main routes, each with its own featured image.

Update the featured image for each main route in Blog-Doc

You can update the featured image for each main route by clicking on the Routes link under the Images section.