summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2018-09-15 15:45:52 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2018-09-15 15:45:52 -0700
commit85bfd7e2e5cfc5cc00a10abc66eaf8bf4a741254 (patch)
tree06fd3c3c614bc26d0d616855e824272408e364f1
parente179131de1ee31e8e734d239caca314de6131388 (diff)
downloadjournal-85bfd7e2e5cfc5cc00a10abc66eaf8bf4a741254.tar.gz
journal-85bfd7e2e5cfc5cc00a10abc66eaf8bf4a741254.tar.xz
read title from macro
-rw-r--r--journal.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/journal.c b/journal.c
index 9feea10..851cf23 100644
--- a/journal.c
+++ b/journal.c
@@ -4,6 +4,7 @@
#include <string.h>
#include <time.h>
+#define TITLE "david's journal"
#define ENTRY_DIR "entries"
#define MAX_ENTRIES 1024
@@ -80,10 +81,10 @@ int main()
"<meta name='viewport' content='width=device-width, initial-scale=1'>\n"
"<link href='https://fonts.googleapis.com/css?family=Source+Serif+Pro:400,700' rel='stylesheet'>\n"
"<link href='style.css' rel='stylesheet'>\n"
- "<title>david's journal</title>\n"
+ "<title>"TITLE"</title>\n"
"</head>\n"
"<body>\n"
- "<h1>david's journal</h1>\n");
+ "<h1>"TITLE"</h1>\n");
for (int i = 0; i < num_entries; ++i) {
print_entry(entries[i]);