Skip to content

Commit fcc4a7a

Browse files
committed
Add a templating page to learn section
1 parent 23711d9 commit fcc4a7a

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
---
22
title: "Templating and data-based layouts"
3+
layout: learn
34
image:
4-
path: /images/so-simple-sample-image-4.jpg
5-
thumbnail: /images/site-logo.png
5+
path: /images/learn/web-templates.png
6+
thumbnail: /images/learn/web-templates400x225.png
67
---
78

89
Templates can have a couple of different definitions for content, depending on the size. You can make a template for an entire document or for a page. When talking about repositories you can also have a template for a repository.
@@ -46,13 +47,15 @@ productname : Opposcale
4647

4748
Any place that your source files contain these template indicators, you can rely on substitution to fill in the values.
4849

49-
`intro.md`
50+
Example snippet from a Markdown file with substitutions:
5051

51-
```
52-
See the {{ site.productname }} [User Guide]({{ site.baseurl }}user-guide) for user information.
53-
```
52+
See the [ {{ site.productname }} User Guide]({{ site.baseurl }}user-guide) for more information.
53+
54+
With the first `_config.yml` file, the output would be:
55+
"See the [Oppogrid User Guide](https://annegentle.io) for more information." and the internal cross link would go to the correct version for that site.
5456

5557
## Additional resources
5658

5759
[Learning Liquid](https://www.shopify.com/partners/blog/topics/learning-liquid)
60+
5861
[Sphinx Readthedocs theme documentation](https://sphinx-rtd-theme.readthedocs.io/)

images/learn/web-templates.png

36 KB
Loading
21.1 KB
Loading

0 commit comments

Comments
 (0)