summaryrefslogtreecommitdiff
path: root/pages.c
AgeCommit message (Collapse)AuthorFilesLines
2020-01-19line break inside cdata..Daniel Jones1-1/+1
2020-01-19add line break to imagesDaniel Jones1-1/+1
2020-01-19rss feed: first image in each post shown in CDATA tagDaniel Jones1-6/+65
2020-01-18pretty sure we should be checking for \n hereDaniel Jones1-1/+1
2020-01-17small clean of unneeded code and some logicDaniel Jones1-14/+2
2020-01-12make valgrind happyDaniel Jones1-2/+2
2020-01-12finished rss generationDaniel Jones1-2/+22
added rss button to template
2020-01-12further work implementing rss feedDaniel Jones1-2/+137
currently broken
2020-01-11make createfile() take a template argumentDaniel Jones1-7/+34
also begin rss page generation
2020-01-06Merge branch 'master' of ↵Daniel Jones1-2/+2
ssh://danieljon.es:6669/home/daniel/git/websitegenerator
2020-01-06remove unnecessary printf'sDaniel Jones1-2/+0
2020-01-06pagebar generation: don't add .html to link (proper)Daniel Jones1-2/+2
2020-01-06pagebar generation: don't asdd .html to linkDaniel Jones1-2/+2
2020-01-06generate blog postsDaniel Jones1-13/+135
now we generate blog posts properly
2020-01-02start generating page (blog navigation) barDaniel Jones1-1/+37
really needs to be cleaned up though
2020-01-02replaced strcat()'s with snprintf()Daniel Jones1-23/+6
2020-01-02direct post pages generate nowDaniel Jones1-12/+45
2019-12-31added array of posts to ignoreDaniel Jones1-0/+12
2019-12-31further reduce sizeDaniel Jones1-16/+8
2019-12-31remove all the copypastaingDaniel Jones1-160/+35
2019-12-31start generating postsDaniel Jones1-27/+99
currently gets every file in the posts directory, sorts them and temporarily creates empty txt files in output/posts. lots to do still.
2019-12-30generate most pages except postsDaniel Jones1-4/+201
2019-12-28implement gettime()Daniel Jones1-6/+12
2019-12-28removed ugly createtmpfile() hackDaniel Jones1-29/+47
now instead use a struct that either has a filename or string to write into the file. do whichever is appropriate
2019-12-27moved some code around and finished basic page generationDaniel Jones1-14/+55
it is far too hacky though, createtmpfile() is an ugly hack that cannot stay. the problem is replaceinpage() and the functions it calls expects a file name that it opens, i cannot just pass it a string. i need to figure out a better solution
2019-12-26added ability to write to an offset in a fileDaniel Jones1-0/+87
2019-12-26don't use tempfile()Daniel Jones1-12/+5
instead we create a temp file in the cwd and rename it to the desired output file name and location
2019-12-25first commitDaniel Jones1-0/+238