Commit Graph

32 Commits

Author SHA1 Message Date
Dhananjay Balan
f922e1ffca Update the link to source code. 2024-03-28 15:33:51 +01:00
Dhananjay Balan
e756e343e9 Add a mastodon link tag 2024-03-19 14:39:38 +01:00
Dhananjay Balan
1522cc294c Link to main domain 2024-02-11 18:52:49 +01:00
Dhananjay Balan
efd8cd1137 [blogng] Serve dbalan.in from the same repo. 2024-02-11 18:36:24 +01:00
Dhananjay Balan
d432b57b56 Add a page specific css 2024-02-11 18:20:55 +01:00
Dhananjay Balan
6794bd6b4c Add a profile image and template 2024-02-11 17:58:28 +01:00
Dhananjay Balan
77faa109ee Init working on an about me page. 2024-02-11 06:27:20 +01:00
Dhananjay Balan
d5e3d1ae2c Migrate nixos deployment blog post. 2024-01-11 13:27:05 +01:00
Dhananjay Balan
d8b88c8b58 [blog] Show posts on frontpage
Slight color changes.
2024-01-07 20:45:13 +01:00
Dhananjay Balan
22bf133122 Fixup themes 2020-04-07 12:42:13 +02:00
Dhananjay Balan
5e7f600ab2 Minor formatting fixes 2019-08-04 00:16:12 +02:00
Dhananjay Balan
e1a32dbef1 Replace fonts with IBM-Plex 2019-08-04 00:00:30 +02:00
Dhananjay Balan
d39f99ae3f Add cc-by banner 2019-08-03 23:36:19 +02:00
Dhananjay Balan
305640e2c9 Add link styles and fix footer divider. 2019-08-03 23:15:42 +02:00
Dhananjay Balan
a910f0ae63 Bit more prodding 2019-08-03 18:16:25 +02:00
Dhananjay Balan
7b8e412f33 Syntax highlighting. 2019-08-03 16:52:37 +02:00
Dhananjay Balan
ee9f596ac1 Minial templating. 2019-08-03 15:56:12 +02:00
Dhananjay Balan
2f4bfc118d Initial minimal theme. 2019-08-02 22:20:23 +02:00
Dhananjay Balan
5a4058caf8 Add RC scout to footer 2019-03-09 16:59:44 -05:00
Dhananjay Balan
1df7ecf652 Serve fonts from local server and remove tufte fonts 2019-03-09 12:53:15 -05:00
Dhananjay Balan
58b20109cf Convert from old categories to tags
import sys
import yaml

with open(sys.argv[1]) as fp:
    data = fp.read()

if not data.find("---") == 0:
    # no head
    print("NO YAML HEAD FOUND")
    sys.exit(-1)

data = data[3:]
head_end = data.find("---")

head = data[0:head_end]
data = data[head_end+3:]

metadata = yaml.safe_load(head)

cats = metadata.pop('categories', None)
if cats != None:
    if type(cats) == list:
        tags = cats
    elif type(cats) == str:
        tags = cats.split()

    tags = list(map(lambda t: t.lower(), tags))

    metadata["tags"] = ", ".join(tags)
    new_data = f"---\n{yaml.dump(metadata, default_flow_style=False)}---{data}"
    # write it
    print(f"coverted: categories to tags: {tags} - {sys.argv[1]}")
    with open(sys.argv[1], "w") as fp:
        fp.write(new_data)
    sys.exit(0)

if not metadata.get("tags", None):
    metadata["tags"] = "untagged"
    new_data = f"---\n{yaml.dump(metadata, default_flow_style=False)}---{data}"
    print(f"untagged: {sys.argv[1]}")
    # write it
    with open(sys.argv[1], "w") as fp:
        fp.write(new_data)
    sys.exit(0)

print("No changes needed")
2019-01-28 17:16:27 -05:00
Dhananjay Balan
eb67654568 Implement Tags! 2019-01-28 16:42:01 -05:00
Dhananjay Balan
1abceb9657 Add link to feed on the footer 2019-01-12 19:59:37 -05:00
Dhananjay Balan
2b7012b930 Fix source code footer 2019-01-08 19:07:35 -05:00
Dhananjay Balan
02cabfc326 Remove google fonts 2019-01-08 15:22:39 -05:00
Dhananjay Balan
5a64e99c09 New theme 2019-01-08 15:14:02 -05:00
Dhananjay Balan
1c57811f1f Initial tags implementation 2017-02-01 16:38:22 +01:00
Dhananjay Balan
110cd0f63e Fix about link and spacing of headings 2017-02-01 15:58:02 +01:00
Dhananjay Balan
e05902a4c1 Fix langing page. 2017-02-01 15:48:33 +01:00
Dhananjay Balan
3241c491e5 Update about page. 2017-02-01 15:15:18 +01:00
Dhananjay Balan
b037a8dde1 Migrate to tufte-css 2017-02-01 11:52:12 +01:00
Dhananjay Balan
f1bf5b6c0d intial commit 2017-01-22 22:30:42 +01:00