Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
2023-07-14 UPDATE patch
- Loading branch information
1 parent
919bb26
commit a28db18
Showing
5 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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,15 @@ | ||
| module Jekyll | ||
| class RenderTimeTag < Liquid::Tag | ||
|
|
||
| def initialize(tag_name, text, tokens) | ||
| super | ||
| @text = text | ||
| end | ||
|
|
||
| def render(context) | ||
| "#{@text} #{{ Time.now | date_to_xmlschema }}" | ||
| end | ||
| end | ||
| end | ||
|
|
||
| Liquid::Template.register_tag('render_time', Jekyll::RenderTimeTag) |
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