Added last updated directive
This commit is contained in:
parent
8739d829b4
commit
7e62a5158f
|
@ -79,6 +79,7 @@
|
||||||
(let ((cleanline (md4tj-clean-multiline line)))
|
(let ((cleanline (md4tj-clean-multiline line)))
|
||||||
;; If this is a signal to include another file
|
;; If this is a signal to include another file
|
||||||
(cond ((string-match "^@@INCLUDE" line) (md4tj-parse-to-string (nth 1 (split-string line))))
|
(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
|
;; If this is some other signal, ignore
|
||||||
((string-match "^@@" line) "")
|
((string-match "^@@" line) "")
|
||||||
;; Otherwise, process as normal
|
;; Otherwise, process as normal
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
<html lang="en-us">
|
<html lang="en-us">
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="test_css.css">
|
<link rel="stylesheet" href="test_css.css">
|
||||||
<title>Test webpage</title>
|
<title>Test webpage</title>
|
||||||
|
|
||||||
|
@ -45,5 +46,6 @@ int main() {
|
||||||
</code>
|
</code>
|
||||||
</pre>
|
</pre>
|
||||||
<br/>
|
<br/>
|
||||||
|
Last updated: Wed Jan 4 10:43:05 2023
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -26,4 +26,5 @@ int main() {
|
||||||
printf("%s\n", "Hello World!");
|
printf("%s\n", "Hello World!");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@@LASTUPDATED
|
Loading…
Reference in New Issue