diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2018-09-15 15:45:52 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2018-09-15 15:45:52 -0700 |
commit | 85bfd7e2e5cfc5cc00a10abc66eaf8bf4a741254 (patch) | |
tree | 06fd3c3c614bc26d0d616855e824272408e364f1 /journal.c | |
parent | e179131de1ee31e8e734d239caca314de6131388 (diff) | |
download | journal-85bfd7e2e5cfc5cc00a10abc66eaf8bf4a741254.tar.gz journal-85bfd7e2e5cfc5cc00a10abc66eaf8bf4a741254.tar.xz |
read title from macro
Diffstat (limited to 'journal.c')
-rw-r--r-- | journal.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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]); |