diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | layouts/base.lua | 1 | ||||
-rw-r--r-- | site_root/about.lua | 4 | ||||
-rw-r--r-- | site_root/blog/announcing_honeysuckle.lua | 48 | ||||
-rw-r--r-- | site_root/blog/refactor-argent.lua | 24 | ||||
-rw-r--r-- | site_root/cgit.css | 172 | ||||
-rw-r--r-- | site_root/favicon.svg | 159 | ||||
-rw-r--r-- | site_root/index.lua | 4 | ||||
-rw-r--r-- | site_root/style.css | 18 |
9 files changed, 399 insertions, 32 deletions
@@ -1,2 +1,3 @@ *~ public/ +publish.sh diff --git a/layouts/base.lua b/layouts/base.lua index aae2081..def4183 100644 --- a/layouts/base.lua +++ b/layouts/base.lua @@ -26,6 +26,7 @@ return function(html, page_tbl) <!doctype html> <html> <meta charset="utf-8"> + <link rel="icon" type="image/svg+xml" href="/favicon.svg"> <title>%s</title> <link rel="stylesheet" href="/style.css"> </html> diff --git a/site_root/about.lua b/site_root/about.lua index ea832e1..9f87357 100644 --- a/site_root/about.lua +++ b/site_root/about.lua @@ -3,10 +3,12 @@ about me ======== hey! i'm kate (aka sanine) and i like to write code, hack circuits, and grow plants. -i mostly use this site for documenting and sharing various projects. +i mostly use this site for documenting and sharing various projects, with the exception +of my game engine honey, which [has its own website](https://honey3d.org). i also (very occasionally) make games!! you can see them [over on itch.io](https://sanine.itch.io/). if you need to get in contact with me, you can send me an email at `kate AT sanine DOT net`. + i hope you're having a good day. <3 ]] diff --git a/site_root/blog/announcing_honeysuckle.lua b/site_root/blog/announcing_honeysuckle.lua index 5fb97fb..f078585 100644 --- a/site_root/blog/announcing_honeysuckle.lua +++ b/site_root/blog/announcing_honeysuckle.lua @@ -3,35 +3,35 @@ return { layout='blog', date='2021-05-23', markdown=[[ -As I’ve been working on various projects for the past couple of years -I have continued to find that a combination of C and Lua is my favorite -way to write code. The ongoing development of [my game engine honey](https://honey3d.org/) -uses that pair and I’m planning on using it (whenever I get around to it) for my [dream -atlas project](https://sanine.net/projects/dream-atlas). But, and I’ll be the first -to admit this, the C API is a little clunky. -I don’t generally mind that all too much (after all, one of my favorite things about -both C and Lua is that they’re languages you can carry around in your head, and having -a very explicit API means you only need to understand the fundamental concepts to use it) +as i’ve been working on various projects for the past couple of years +i have continued to find that a combination of c and lua is my favorite +way to write code. the ongoing development of [my game engine honey](https://honey3d.org/) +uses that pair and i’m planning on using it (whenever i get around to it) for my [dream +atlas project](https://sanine.net/projects/dream-atlas). but, and i’ll be the first +to admit this, the c api is a little clunky. +i don’t generally mind that all too much (after all, one of my favorite things about +both c and lua is that they’re languages you can carry around in your head, and having +a very explicit api means you only need to understand the fundamental concepts to use it) but it does mean that dev work goes a bit slower. -I did a good bit of work streamlining the process of writing Lua bindings in C when -tinkering with honey and ever since then I’ve found myself peeking back at that code -and re-implementing it in other projects. A colleague of mine once said that the time +i did a good bit of work streamlining the process of writing lua bindings in c when +tinkering with honey and ever since then i’ve found myself peeking back at that code +and re-implementing it in other projects. a colleague of mine once said that the time to write a library is when you’ve done something once, you’re doing it now, and you -re pretty sure you’ll do it again, and I think I’ve quite handily cleared that condition -So! I’m splitting that code out and refactoring it into its own library which, due -to its historical roots, I’ve chosen to call honeysuckle. +re pretty sure you’ll do it again, and i think i’ve quite handily cleared that condition +so! i’m splitting that code out and refactoring it into its own library which, due +to its historical roots, i’ve chosen to call honeysuckle. -honeysuckle is still under development – the API is a bit different from the one I +honeysuckle is still under development – the api is a bit different from the one i came up with when working on honey and imo is easier to use – but when it’s ready -it will provide a whole host of helpful functions that make integrating Lua scripting -into C applications simple and fast. I am (attempting) to employ readme-driven development -so I’ve written up a readme for honeysuckle. Any feedback on the proposed API and -features would be much appreciated! As of writing, honeysuckle is planned to include -functions for parsing arguments to C functions from Lua, creating and processing tables -throwing and handling Lua errors, using the Lua registry, and creating printf-formatted strings. +it will provide a whole host of helpful functions that make integrating lua scripting +into c applications simple and fast. i am (attempting) to employ readme-driven development +so i’ve written up a readme for honeysuckle. any feedback on the proposed api and +features would be much appreciated! as of writing, honeysuckle is planned to include +functions for parsing arguments to c functions from lua, creating and processing tables +throwing and handling lua errors, using the lua registry, and creating printf-formatted strings. -I’ve already created a repository for honeysuckle. There’s just a README in there -for now, but that will probably have changed even just later today, since I’m planning +i’ve already created a repository for honeysuckle. there’s just a readme in there +for now, but that will probably have changed even just later today, since i’m planning on working on it more this afternoon. :p ]]} diff --git a/site_root/blog/refactor-argent.lua b/site_root/blog/refactor-argent.lua new file mode 100644 index 0000000..6b7ca4d --- /dev/null +++ b/site_root/blog/refactor-argent.lua @@ -0,0 +1,24 @@ +local md = [[ +hey there! you might be noticing that things look a little... different around here. +that's because i've refactored this site to use my custom static site generator, [argent]. +i used to use jekyll, but i wanted to be able to do more *direct programming* in building my +pages, and i wanted to be able to do that in lua. i tried looking at some of the other +static site generators out there using lua (and python too) but so many of them rely on +packages that no longer exist, or language features from seven versions ago, or similar +types of problems, that i wanted to have a site generator that *just works*. + +so i wrote one! i called it argent because (a) it sounds kinda cool and (b) argent, as a +silver-white color, is used in heraldry to represent the moon, and i like the oblique reference +to lua. it relies on posix filesystem calls (sorry windows users, you'll need msys or something +to run it) but otherwise is totally standalone -- it packages its own lua interpreter, so language +version (ideally) will never change. + +[argent]: /git/argent +]] + +return { + title = 'refactor: argent', + date = '2022-01-13', + layout = 'blog', + markdown = md, +} diff --git a/site_root/cgit.css b/site_root/cgit.css new file mode 100644 index 0000000..0f9e5a3 --- /dev/null +++ b/site_root/cgit.css @@ -0,0 +1,172 @@ +:root { + --light: #eee; + --dark: #1c1c1c; + --highlight: #ff3a21 +} + +body { + color: var(--light); + background: var(--dark); + font-family: monospace; + font-size: 16px; +} + +#navigation { + text-align: center; +} + +.centered { + text-align: center; +} + +#content { + width: 600px; + max-width: 100%; + margin: auto; +} + +a { + color: var(--highlight); +} + +a:hover { + color: var(--dark); + background: var(--highlight); + text-decoration: none; +} + +ul { + list-style: none; +} + +li:before { + content: '* '; +} + +code { + background: black; + padding: 0 6px; + border-radius: 4px; +} + + +/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + * + * cgit-specific css + * + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + */ + +div#cgit { + width: 700px; + max-width: 100%; + margin: auto; +} + +div#cgit table#header { + width: 100%; + margin-bottom: 1em; +} + +div#cgit table#header tbody tr td.logo a { + display: none; +} + +div#cgit table#header td.form { + text-align: right; + vertical-align: bottom; + padding-right: 1em; + padding-bottom: 2px; + white-space: nowrap; +} + +div#cgit table.tabs { + border-bottom: solid 3px var(--highlight); + border-collapse: collapse; + margin-top: 2em; + margin-bottom: 0; + width: 100%; +} + +div#cgit table.tabs td { + padding: 0px 1em; + vertical-align: bottom; +} + +div#cgit table.tabs td a { + padding: 2px 0.75em; + text-decoration: none; +} + +div#cgit table.tabs td a.active { + color: var(--dark); + background-color: var(--highlight); +} + + +div#cgit table.tabs td.form { + text-align: right; +} + +div#cgit table.tabs td.form form { + padding-bottom: 2px; + white-space: nowrap; +} + + +div#cgit div.content { + margin: 0px; + padding: 2em 0; + border-bottom: solid 3px var(--light); +} + +div#cgit select, input { + font-family: monospace; +} + + +div#cgit table.list { + width: 100%; + border: none; + border-collapse: collapse; +} + +div#cgit table.list tr { + background: white; +} + +div#cgit table.list tr.logheader { + background: #eee; +} + +div#cgit table.list tr:nth-child(even) { + background: #151515; +} + +div#cgit table.list tr:nth-child(odd) { + background: var(--dark); +} + + +div#cgit table.blob td.hashes, +div#cgit table.blob td.lines { + margin: 0; padding: 0 0 0 0.5em; + vertical-align: top; + background-color: #151515; +} + +div#cgit table.blob td.lines code { + background-color: #151515; +} + +div#cgit span.decoration { + margin: 0 1em; +} + +div#cgit span.decoration a::before { + content: "["; +} + +div#cgit span.decoration a::after { + content: "]"; +} diff --git a/site_root/favicon.svg b/site_root/favicon.svg new file mode 100644 index 0000000..5cc89a7 --- /dev/null +++ b/site_root/favicon.svg @@ -0,0 +1,159 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + xmlns:osb="http://www.openswatchbook.org/uri/2009/osb" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + sodipodi:docname="favicon.svg" + inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)" + id="svg8" + version="1.1" + viewBox="0 0 134.54229 102.24026" + height="102.24026mm" + width="134.54228mm"> + <defs + id="defs2"> + <inkscape:path-effect + effect="bend_path" + id="path-effect6901" + is_visible="true" + bendpath="m 22.531576,151.82465 c 78.130874,-55.092779 132.927974,-54.475149 173.772444,0" + prop_scale="0.81307337" + scale_y_rel="false" + vertical="false" + bendpath-nodetypes="cc" /> + <inkscape:path-effect + effect="bend_path" + id="path-effect6239" + is_visible="true" + bendpath="M 63.768809,151.1466 C 156.02059,75.438327 192.44532,105.31607 201.92951,146.68898" + prop_scale="1" + scale_y_rel="false" + vertical="true" + bendpath-nodetypes="cc" /> + <pattern + inkscape:collect="always" + xlink:href="#pattern6209" + id="pattern6225" + patternTransform="translate(72.408348,53.85524)" /> + <linearGradient + id="linearGradient6048" + osb:paint="solid"> + <stop + style="stop-color:#f49111;stop-opacity:1;" + offset="0" + id="stop6046" /> + </linearGradient> + <inkscape:path-effect + effect="bend_path" + id="path-effect906" + is_visible="false" + bendpath="M 63.768809,151.1466 C 114.58957,111.72345 161.90106,94.993606 197.97071,150.961" + prop_scale="0.93990134" + scale_y_rel="false" + vertical="true" + bendpath-nodetypes="cc" /> + <pattern + patternUnits="userSpaceOnUse" + width="276.67154" + height="849.51133" + patternTransform="matrix(0.26458333,0,0,0.26458333,-67.743069,122.75446)" + id="pattern6209"> + <path + inkscape:connector-curvature="0" + style="fill:#f49111;fill-opacity:1;stroke:none;stroke-width:0.37795275;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 213.24707,78.449499 -4.37431,7.513814 2.76469,8.243074 0.20228,8.759093 -6.64498,5.71026 -5.87857,6.9546 -8.9183,-1.84063 -6.16056,7.66046 -9.03196,-3.8806 2.32944,8.59858 -6.96533,5.55394 -7.52628,1.50535 -5.93273,4.86966 -8.20889,2.86881 -8.54622,-1.60566 -4.01603,7.63128 -0.25402,8.61975 -5.91053,-6.12851 -8.48794,-0.66947 2.56921,-9.66519 -8.62609,-5.06041 -5.45193,10.28349 -11.451412,-2.08286 -1.073428,-11.40594 -11.076967,-2.9238 -10.166665,3.70662 -10.819717,-0.18331 -1.490733,-11.85925 -10.491303,-5.72689 -2.982989,-10.31871 -5.69873,-9.104886 2.898085,-11.593625 11.099365,-4.428889 8.351853,-5.224743 -3.149458,-9.334488 -2.741631,-7.623156 2.09961,-7.82434 8.865396,-0.584353 3.582463,-8.130368 1.817171,-9.51961 9.682722,-0.412573 7.142026,-1.471446 5.536472,-4.74565 8.34039,-0.01134 3.60262,-7.522167 8.27377,1.172448 8.27397,-1.171011 7.59394,-5.42589 L 136.08531,1.2884031 145.40036,0 l 4.78465,8.0955213 7.86178,-2.504693 7.79377,2.7089008 7.82532,4.8095249 8.41628,-3.6787658 9.12038,2.3060028 2.53783,9.058621 1.86386,10.712012 -7.66498,7.711673 -8.02368,7.255143 1.06842,10.76451 11.02509,5.401437 11.44657,-4.438904 3.99924,10.558072 5.79219,9.691087" + id="path6054" /> + <path + inkscape:connector-curvature="0" + style="fill:#f49111;fill-opacity:1;stroke:none;stroke-width:0.37795275;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 271.46914,329.92675 -9.27536,9.91862 -11.37555,7.41679 -8.59098,11.97887 3.08311,14.41505 -14.10354,4.71809 -13.64875,-5.90608 -14.81998,4.73537 -4.99095,14.73585 -5.87352,13.86717 4.42475,14.39504 -12.23829,7.25148 -13.46455,4.58975 -1.77657,13.51748 -8.72738,10.47431 -15.39497,-3.32466 -8.96204,12.95146 -11.43307,15.92863 -14.70315,12.97126 L 94.060142,482.29844 75.226658,476.20656 59.919878,459.72503 38.098367,465.18036 33.36548,445.67289 39.196339,426.465 54.603337,416.50458 58.530266,398.5835 61.003593,380.5587 50.685335,365.5739 44.156564,350.13075 30.149469,340.91569 16.95456,330.2637 0,329.92694 l 16.148829,-9.69139 -3.786346,-18.44916 13.581415,-10.96297 16.629124,5.30226 12.202375,10.88909 16.296604,1.37503 18.724143,-0.10545 6.88207,-17.41384 18.057266,2.69662 16.9599,-6.76006 -4.94198,-20.88057 17.83607,-11.92879 5.69859,-15.78879 -8.76514,-14.31541 -12.4377,-12.99069 6.64935,-16.71051 13.72728,14.35866 19.69094,2.62227 13.23759,-13.29547 14.38569,-12.04392 7.78962,13.68378 2.89081,15.47796 9.61523,12.22976 8.05525,13.30911 2.89822,15.68387 -8.64677,13.40217 8.27326,14.30732 -6.30762,15.27614 18.16903,4.30461 2.31422,18.52804 13.93036,7.29071 15.71146,0.59955" + id="path6156" /> + <path + inkscape:connector-curvature="0" + style="fill:#f49111;fill-opacity:1;stroke:none;stroke-width:0.32043323;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 276.67154,711.96389 -9.26912,10.78477 -8.86813,11.37766 -12.50834,7.40493 -3.23299,17.85026 -6.6197,18.01387 9.60161,15.39825 8.66669,12.59074 4.43795,16.08257 -7.34655,13.99695 -7.29299,14.04744 -10.93428,-12.1454 -13.84693,4.13518 -10.50698,-4.95719 -10.99088,-2.40351 -10.03072,6.42334 -10.51675,4.81837 2.99421,-17.41179 -5.88469,-16.02504 -13.20604,2.18059 -11.21862,-9.61557 -10.46305,1.91267 -9.942,-4.78197 -9.85282,8.0914 -10.61102,-6.11856 4.64071,-15.03893 -5.6581,-14.39569 -12.359926,0.2022 -7.201103,-13.50414 5.478954,-13.04564 -2.51667,-14.59393 -12.772176,-3.72964 -0.685735,-17.54404 10.143681,-1.42072 6.10806,-10.97798 6.048885,-13.75752 11.37094,4.66545 9.94015,0.26381 9.67703,-3.06485 8.76494,-6.91389 5.3448,-11.61854 0.32066,-16.73196 9.74682,-10.41646 -8.35061,-11.60345 -0.83319,-16.10525 0.67316,-16.35658 7.60885,-12.79673 9.95644,-11.95196 12.73746,5.36844 7.88405,-13.9646 13.03949,0.33903 10.92864,8.87467 12.16215,-5.22482 7.7788,16.2435 14.33266,-1.42329 -3.21175,17.99187 8.63469,14.40968 6.07878,17.39368 -11.0283,12.22942 7.29432,12.01206 10.25303,7.10536 -0.11841,15.60314 10.57236,6.44462 -1.13295,13.83965 5.79054,11.54456" + id="path6191" /> + </pattern> + <pattern + patternUnits="userSpaceOnUse" + width="450.38135" + height="970.20466" + patternTransform="matrix(0.26458333,0,0,0.26458333,-225.72801,23.501619)" + id="pattern6231"> + <rect + y="-8.5265128e-14" + x="0" + height="970.20465" + width="450.38135" + id="rect6229" + style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:0.37795275;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + <rect + id="rect6214" + y="53.855247" + x="72.408379" + height="849.51135" + width="276.67157" + style="fill:url(#pattern6225);stroke:none;stroke-width:3.77952766" /> + </pattern> + </defs> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="1.3336547" + inkscape:cx="344.49577" + inkscape:cy="183.15645" + inkscape:document-units="mm" + inkscape:current-layer="layer1" + showgrid="false" + inkscape:snap-bbox="true" + inkscape:object-paths="false" + inkscape:snap-smooth-nodes="true" + inkscape:window-width="1918" + inkscape:window-height="1057" + inkscape:window-x="960" + inkscape:window-y="1101" + inkscape:window-maximized="0" + fit-margin-top="0" + fit-margin-left="0" + fit-margin-right="0" + fit-margin-bottom="0" /> + <metadata + id="metadata5"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1" + transform="translate(-45.484119,-91.916962)"> + <path + style="fill:#ff3a21;fill-opacity:1;stroke:none;stroke-width:0.1;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="m 21.672148,150.8037 c 5.886589,8.34394 14.900279,7.95575 24.681946,5.06972 9.830331,-2.90038 20.704355,-8.22244 30.259859,-10.5698 4.391105,3.918 9.191173,8.08068 14.228962,9.79293 2.788078,0.99068 5.600558,1.21988 8.489816,0.2431 4.434839,-1.49931 5.749819,-3.67828 5.764039,-6.74699 0.0145,-3.13873 -1.33006,-6.77265 -2.46704,-11.19654 -0.11544,-0.44919 3.41957,-1.80369 3.25021,-2.2526 5.75126,-2.16038 11.49739,-3.97685 17.46833,-5.18957 0,0 0,0 0,0 13.74764,-3.08962 24.69675,-2.25867 35.59343,-1.85911 1.30573,0.0452 2.54262,0.0753 3.70708,0.0699 1.76639,4.34845 5.57797,11.05928 8.5164,16.12413 3.16389,5.45345 6.55035,11.06526 9.32056,14.51118 3.80226,4.72969 6.06472,0.52666 6.99103,-5.76218 0.90249,-6.12709 0.0557,-13.80648 0.0557,-13.80648 0,0 7.57394,1.59476 14.11206,2.51256 6.21521,0.87247 12.22404,0.87925 7.20082,-5.49887 -3.65311,-4.63845 -9.73594,-9.9928 -17.08442,-14.17516 -7.3673,-4.19306 -15.05171,-6.64869 -21.14336,-6.70245 -0.66438,-1.14446 -1.47395,-2.34584 -2.43204,-3.58531 -7.59238,-9.61391 -23.33704,-19.933695 -44.72622,-22.922491 0,0 0,0 -1e-5,-10e-7 -9.39271,-1.238638 -18.78682,-1.174984 -27.738128,-0.118477 -9.69e-4,-0.485698 -5.488034,0.300608 -5.632407,-0.140964 -1.793851,-5.486608 -4.605076,-12.026146 -16.529913,-9.220147 -2.795944,0.657908 -6.731782,4.869031 -9.376107,10.365462 -1.643845,3.39984 -2.779355,7.18573 -3.039808,10.853408 -10.829174,7.08218 -22.875284,14.23291 -32.177953,23.6656 -8.819748,8.94303 -13.156014,18.22844 -7.292846,26.53919 z" + id="path6864" + inkscape:connector-curvature="0" + inkscape:path-effect="#path-effect6901" + inkscape:original-d="m 22.531576,151.82465 c 0,25.10949 26.915808,24.21461 45.853305,28.98479 3.507887,10.32472 8.174812,21.86378 18.309182,21.86378 11.24247,0 9.389772,-8.90922 9.389772,-19.89904 0,-0.56982 4.046135,-1.14857 3.971165,-1.73323 22.42779,-3.50127 48.06975,-10.83362 59.24858,-19.92953 8.08634,7.64687 24.27616,12.95632 33.24551,12.95632 12.28461,0 -9.50639,-22.24309 -9.50639,-22.24309 0,0 21.791,-22.24362 9.50639,-22.24362 -8.96926,0 -25.15908,5.30958 -33.24551,12.95633 -11.17883,-9.0959 -36.82079,-16.42824 -59.24858,-19.92953 0.075,-0.58465 -3.94934,-1.16384 -3.971165,-1.73323 -0.284787,-7.42997 -1.031409,-15.17758 -9.389772,-16.60413 -3.162211,-0.5397 -10.847767,8.24422 -14.355914,18.56887 -18.937497,4.77018 -49.806573,3.87582 -49.806573,28.98531 z" + transform="matrix(-0.68560751,0.41828831,0.41828831,0.68560751,131.7754,6.9256254)" + sodipodi:nodetypes="zcssccscsccsscz" /> + </g> +</svg> diff --git a/site_root/index.lua b/site_root/index.lua index cc5f699..c419830 100644 --- a/site_root/index.lua +++ b/site_root/index.lua @@ -2,7 +2,9 @@ local tk = require 'toolkit' function get_blog_links() local links = '<ul>\n' - for _, page in pairs(tk.pages('blog/')) do + local pages = tk.pages('blog/') + table.sort(pages, function(a, b) return a.date > b.date end) + for _, page in pairs(pages) do links = links .. string.format('<li><a href="%s">[%s] %s</a></li>\n', page.href, page.date, page.title) end diff --git a/site_root/style.css b/site_root/style.css index f43e73d..14b450b 100644 --- a/site_root/style.css +++ b/site_root/style.css @@ -1,6 +1,12 @@ +:root { + --light: #eee; + --dark: #1c1c1c; + --highlight: #ff3a21 +} + body { - color: #eee; - background: #1c1c1c; + color: var(--light); + background: var(--dark); font-family: monospace; font-size: 16px; } @@ -14,18 +20,18 @@ body { } #content { - width: 600px; + width: 700px; max-width: 100%; margin: auto; } a { - color: #ff3a21; + color: var(--highlight); } a:hover { - color: #1c1c1c; - background: #ff3a21; + color: var(--dark); + background: var(--highlight); text-decoration: none; } |