-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: expressions in markdown (#181)
* feat: assets in Markdown * feat: expressions in Markdown * feat: expressions in Markdown * feat: expressions in Markdown * feat: expressions in Markdown * feat: Twig (!) in Markdown * feat: Twig (!) in Markdown * feat: Twig (!) in Markdown
- Loading branch information
Showing
11 changed files
with
120 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: Images! | ||
slug: images | ||
publishedAt: "2022-07-20 12:35:00" | ||
image: assets/images/sigwin.svg | ||
--- | ||
|
||
This is a database lookup example: {{yassg_get('articles', '/hello-world.md').title}} | ||
|
||
This is an asset lookup: {{asset(item.image)}} | ||
|
||
![Logo]({{ asset(item.image) }}) | ||
|
29 changes: 29 additions & 0 deletions
29
tests/functional/site/fixtures/en/article/images/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<script src="https://cdn.tailwindcss.com?plugins=typography"></script> | ||
|
||
<title>Images!</title> | ||
|
||
<link rel="stylesheet" href="/sub/dir/another/assets/app.d4da4e7e.css" integrity="sha384-t9qUhz8OfBEKvYdnnNndPZAf+S5Q3p0dBnxLn+5SShoNhInHUF+Bu8WJTo+FQJYJ"> | ||
</head> | ||
<body> | ||
|
||
<main class="min-h-full flex flex-col justify-center py-12 sm:px-6 lg:px-8"> | ||
<div class="mt-8 sm:mx-auto sm:w-full sm:max-w-xl"> | ||
<div class="bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10 prose"> | ||
<h1>Images!</h1> | ||
<p>20.07.2022. 12:35</p> | ||
<p>This is a database lookup example: Hello World!</p> | ||
<p>This is an asset lookup: /sub/dir/another/assets/images/sigwin.6f9a3d5b.svg</p> | ||
<p><img src="/sub/dir/another/assets/images/sigwin.6f9a3d5b.svg" alt="Logo" /></p> | ||
|
||
</div> | ||
</div> | ||
</main> | ||
|
||
<script src="/sub/dir/another/assets/runtime.4d1205b9.js" integrity="sha384-J2jFm3DPgrcqyvls0fZlS51nUYgiBB+JLwWiU5v7vxEbLwKolmaHrRuz4BjP6qaE"></script><script src="/sub/dir/another/assets/app.9267444a.js" integrity="sha384-WbAUi92ziCGFD1kGZRzpOP8Nxymnw5vXM3szOB1JmBrCU+MVGXBRReCttizXHDdI"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<script src="https://cdn.tailwindcss.com?plugins=typography"></script> | ||
|
||
<title>Articles, page #3</title> | ||
|
||
<link rel="stylesheet" href="/sub/dir/another/assets/app.d4da4e7e.css" integrity="sha384-t9qUhz8OfBEKvYdnnNndPZAf+S5Q3p0dBnxLn+5SShoNhInHUF+Bu8WJTo+FQJYJ"> | ||
</head> | ||
<body> | ||
|
||
<main class="min-h-full flex flex-col justify-center py-12 sm:px-6 lg:px-8"> | ||
<div class="mt-8 sm:mx-auto sm:w-full sm:max-w-xl"> | ||
<div class="bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10 prose"> | ||
<h1>Articles</h1> | ||
<h2><a href="https://example.com/sub/dir/another/en/article/hello-world/">Hello World!</a></h2> | ||
<p>18.07.2022. 12:44</p> | ||
|
||
<ul> | ||
<li> | ||
<a href="https://example.com/sub/dir/another/en/articles/1/">1</a> | ||
</li> | ||
<li> | ||
<a href="https://example.com/sub/dir/another/en/articles/2/">2</a> | ||
</li> | ||
<li> | ||
3 | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</main> | ||
|
||
<script src="/sub/dir/another/assets/runtime.4d1205b9.js" integrity="sha384-J2jFm3DPgrcqyvls0fZlS51nUYgiBB+JLwWiU5v7vxEbLwKolmaHrRuz4BjP6qaE"></script><script src="/sub/dir/another/assets/app.9267444a.js" integrity="sha384-WbAUi92ziCGFD1kGZRzpOP8Nxymnw5vXM3szOB1JmBrCU+MVGXBRReCttizXHDdI"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters