Skip to content

How can I add images to any page or post? #98

Locked Answered by MrGreensWorkshop
diegoalarc asked this question in How to
Discussion options

You must be logged in to vote

Hi, check this page
https://github.com/MrGreensWorkshop/MrGreen-JekyllTheme/blob/main/_posts/2022-02-10-Examples.markdown

These are common for all pages and blog posts.

Left aligned picture

![such a lovely place](:hello.jpg)

Centered picture

![such a lovely place](:hello.jpg){:data-align="center"}

Picture paths

for picture paths you have 2 options.

  1. using auto path adder (":" is automatically replaced with /assets/img/<layout>/)
  • markdown: ![such a lovely place](:hello.jpg) (example for any page)
  • pic path: /assets/img/about/hello.jpg
  1. using absolute paths
  • markdown:![such a lovely place](/assets/img/about/hello.jpg) (example for about page)
  • pic path: /assets/img/about/hello.jpg

option…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by MrGreensWorkshop
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
How to
Labels
None yet
2 participants