Added last updated directive

This commit is contained in:
j4nk 2023-01-04 10:43:27 -05:00
parent 8739d829b4
commit 7e62a5158f
3 changed files with 5 additions and 1 deletions

View File

@ -79,6 +79,7 @@
(let ((cleanline (md4tj-clean-multiline line)))
;; If this is a signal to include another file
(cond ((string-match "^@@INCLUDE" line) (md4tj-parse-to-string (nth 1 (split-string line))))
((string-match "^@@LASTUPDATED" line) (concat "Last updated: " (current-time-string)))
;; If this is some other signal, ignore
((string-match "^@@" line) "")
;; Otherwise, process as normal

View File

@ -2,6 +2,7 @@
<html lang="en-us">
<head>
<link rel="stylesheet" href="test_css.css">
<title>Test webpage</title>
@ -45,5 +46,6 @@ int main() {
</code>
</pre>
<br/>
Last updated: Wed Jan 4 10:43:05 2023
</body>
</html>

View File

@ -27,3 +27,4 @@ int main() {
return 0;
}
```
@@LASTUPDATED