summaryrefslogtreecommitdiff
path: root/pages.c
AgeCommit message (Collapse)AuthorFilesLines
2024-11-03post titlesDaniel Jones1-1/+29
make post titles links to the direct page as it isn't obvious the number girls are a link
2020-08-18silenced some warningsDaniel Jones1-12/+17
2020-05-25changed incorrect error messageDaniel Jones1-1/+1
2020-05-17change how file modification functions workDaniel Jones1-9/+21
we use to assume we're definitely editing something in output_dir, now we don't assume that, the caller must tell us so
2020-05-14set used to -1Daniel Jones1-1/+1
2020-05-13revert last fix, wasn't brokenDaniel Jones1-1/+0
2020-05-13set girls used array to -1 every iterationDaniel Jones1-1/+2
2020-05-13girl numbersDaniel Jones1-1/+10
added 9 10 varients of each girl, now which one is used will be random. there will not be 2 of the same girl on any post
2020-05-12girl numbersDaniel Jones1-1/+16
added ability to use small images as a blog post number count instead of a simple number. it takes each digit in the post number and places an image where the text would be
2020-02-09add flag for images in RSS feedDaniel Jones1-6/+7
2020-01-24made mobile view of pinned posts betterDaniel Jones1-1/+1
2020-01-24added pinned posts featureDaniel Jones1-5/+46
2020-01-21made the title for each direct post the posts titleDaniel Jones1-1/+27
2020-01-19rss: off-by-one for number of rss items to writeDaniel Jones1-1/+1
2020-01-19rss: fix description generationDaniel Jones1-9/+9
2020-01-19rss: check for images earlierDaniel Jones1-5/+2
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