-
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.
Added support for headings and hyperlinks
- Loading branch information
Showing
10 changed files
with
44 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
@ToString | ||
public class Data { | ||
|
||
private String uri; | ||
private Target target; | ||
|
||
} |
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 @@ | ||
<p class="h{heading} px-5">{value}</p> |
1 change: 1 addition & 0 deletions
1
component/src/main/resources/templates/blog/blog-hyperlink.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 @@ | ||
<a href="{hyperlink}" class="link-underline link-underline-opacity-0" target="_blank">{value}</a> |
2 changes: 1 addition & 1 deletion
2
component/src/main/resources/templates/blog/blog-list-item.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<li> | ||
{item.value} | ||
{#include blog/blog-text blocks=blocks}{/include} | ||
</li> |
9 changes: 1 addition & 8 deletions
9
component/src/main/resources/templates/blog/blog-paragraph.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 |
---|---|---|
@@ -1,10 +1,3 @@ | ||
<div class="py-3 px-5 fs-5"> | ||
{#for block in blocks} | ||
{#when block.node} | ||
{#is TEXT} | ||
{#include blog/blog-marks marks=block.marks value=block.value}{/} | ||
{#else} | ||
{block.value} | ||
{/when} | ||
{/for} | ||
{#include blog/blog-text blocks=blocks}{/include} | ||
</div> |
10 changes: 10 additions & 0 deletions
10
component/src/main/resources/templates/blog/blog-text.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,10 @@ | ||
{#for block in blocks} | ||
{#when block.node} | ||
{#is HYPERLINK} | ||
{#include blog/blog-hyperlink hyperlink=block.value value=block.blocks[0].value}{/include} | ||
{#is TEXT} | ||
{#include blog/blog-marks marks=block.marks value=block.value}{/include} | ||
{#else} | ||
{block.value} | ||
{/when} | ||
{/for} |
2 changes: 1 addition & 1 deletion
2
component/src/main/resources/templates/blog/blog-unordered-list.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<ul class="ms-5 py-3 fs-5"> | ||
{#for block in blocks} | ||
{#include blog/blog-list-item item=block.blocks[0].blocks[0] /} | ||
{#include blog/blog-list-item blocks=block.blocks[0].blocks}{/include} | ||
{/for} | ||
</ul> |
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