Compare commits

...

2 Commits

Author SHA1 Message Date
j4nk d2d49f649b Merge remote-tracking branch 'origin/master' 2023-01-04 10:44:08 -05:00
j4nk 7e62a5158f Added last updated directive 2023-01-04 10:43:27 -05:00
3 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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>

View File

@ -26,4 +26,5 @@ int main() {
printf("%s\n", "Hello World!"); printf("%s\n", "Hello World!");
return 0; return 0;
} }
``` ```
@@LASTUPDATED