Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
---
2
layout: docs
3
title: "Adding images"
4
date: 2020-02-04T09:40:32+01:00
5
draft: false
6
weight: 2
7
---
8
 
9
## Images
10
 
11
Images that need to be show in the component library should be placed in a separate folder for each new page.
12
 
13
The Markdown file for this page is located here:
14
 
15
```
16
└── content
17
     └── moodle
18
         └── getting-started
19
            └── adding-images.md
20
```
21
 
22
To access images for this page create a new folder here.
23
 
24
```
25
└── static
26
     └── moodle
27
         └── getting-started
28
            └── adding-images
29
```
30
 
31
Place your images in this new folder:
32
 
33
```
34
└── static
35
     └── moodle
36
         └── getting-started
37
            └── adding-images
38
                ├── wildebeest-1200.jpg
39
                ├── kitten1.png
40
                └── kitten2.png
41
```
42
 
43
To use images use this syntax:
44
 
45
Syntax for markdown (.md) files:
46
 
47
```
48
{{</* image "wildebeest-1200.jpg" "Image of a Wildebeest" "img-fluid" */>}}
49
```
50
 
51
Rendered result on this page:
52
 
53
{{< image "wildebeest-1200.jpg" "Image of a Wildebeest" "img-fluid">}}