Commit Graph

59 Commits

Author SHA1 Message Date
Dhananjay Balan
1aa5977af2 Fix tags format 2019-01-29 14:29:28 -05:00
Dhananjay Balan
6d9b32233b Update new post script for new tagging format 2019-01-28 17:23: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
f41c5e6a5a Experiments in owning data, part 2 2019-01-23 16:00:25 -05:00
Dhananjay Balan
8dab8ed59a Bump stack version
system ghc is now 8.6.3 but hakyll is not in any lts versions that
support (ghc 8.6.x)
2019-01-23 15:59:05 -05:00
Dhananjay Balan
88091a4040 Experiments in owning data, part 1 2019-01-20 14:13:04 -05:00
Dhananjay Balan
cd17762593 Edit 2019-01-12 20:01:58 -05:00
Dhananjay Balan
1abceb9657 Add link to feed on the footer 2019-01-12 19:59:37 -05:00
Dhananjay Balan
f90acb1140 Send body over 2019-01-12 19:57:16 -05:00
Dhananjay Balan
55b06f61ca Add an atom feed to blog 2019-01-12 19:43:27 -05:00
Dhananjay Balan
0fcacf308e Slight fix for versions 2019-01-08 19:13:31 -05:00
Dhananjay Balan
b1ce238846 Add new post 2019-01-08 19:07:48 -05:00
Dhananjay Balan
2b7012b930 Fix source code footer 2019-01-08 19:07:35 -05:00
Dhananjay Balan
d335a14b9e Builds are broken atm. 2019-01-08 16:29:20 -05:00
Dhananjay Balan
467c853f46 Update KUHS status 2019-01-08 16:28:12 -05:00
Dhananjay Balan
47e606e2bf Add deployment command 2019-01-08 15:46:39 -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
23f6fd5d76 actual build 2019-01-08 14:35:30 -05:00
Dhananjay Balan
25850197ad get sources from git.sr.ht 2019-01-08 14:26:06 -05:00
Dhananjay Balan
23d3a07da9 get sources cloned 2019-01-08 14:19:22 -05:00
Dhananjay Balan
458623cd65 Add minial build file 2019-01-08 14:13:25 -05:00
Dhananjay Balan
6ca5d842fb Remove gitlab-ci 2019-01-08 14:05:56 -05:00
Dhananjay Balan
8e2344f126 Update stack to use system-ghc 2019-01-08 14:04:05 -05:00
Dhananjay Balan
f8709d7941 fix 2018-08-05 11:35:54 +02:00
Dhananjay Balan
b8348dade6 Add freebsd notes. 2018-08-04 15:11:04 +02:00
Dhananjay Balan
756586b8de fix 2018-03-09 14:03:56 +01:00
Dhananjay Balan
2fe9bacaef fix 2018-03-09 14:00:29 +01:00
Dhananjay Balan
4920836eee I'm done. grr. 2018-03-09 13:48:00 +01:00
Dhananjay Balan
488f008bae fix 2018-03-09 13:38:21 +01:00
Dhananjay Balan
8fe538da2e remove old docs causing problems 2018-03-09 13:31:56 +01:00
Dhananjay Balan
73386ac255 Try with a new container. 2018-03-09 13:08:20 +01:00
Dhananjay Balan
52197405d6 Add stack to cache. 2018-03-08 19:54:31 +01:00
Dhananjay Balan
cf2289f09d cache stack data. 2018-03-08 19:46:09 +01:00
Dhananjay Balan
492a405819 Fix docker image version 2018-03-08 19:36:28 +01:00
Dhananjay Balan
664f285881 Added MX records 2018-03-08 19:30:22 +01:00
Dhananjay Balan
bcc6dc9364 Add kuhs blog post 2018-03-08 19:26:15 +01:00
Dhananjay Balan
8185eec5f1 Updated stack and moved to stack
stack setup
stack build
stack exec site build

for building the project.
2018-03-05 00:13:59 +01:00
Dhananjay Balan
1520371af9 Remove acme urls, becuase of change in infra 2017-08-02 12:48:59 +02:00
Dhananjay Balan
04ae21e93e Linux 4.12 commits. 2017-08-02 12:46:29 +02:00
Dhananjay Balan
f9f59c596a remove test entry 2017-08-02 12:28:32 +02:00
Dhananjay Balan
d264053e82 new script to generate blog entries 2017-08-02 12:08:57 +02:00
Dhananjay Balan
92ab27a0f9 remove me 2017-08-02 00:28:58 +02:00
Dhananjay Balan
118c54bc82 update dns 2017-08-01 18:12:09 +02:00
Dhananjay Balan
fc1973537a testing 2017-08-01 17:48:05 +02:00
Dhananjay Balan
6d985ac697 Renew ssl certs 2017-04-17 13:43:02 +02:00
Dhananjay Balan
1772d88bb7 Add gpg transition note. 2017-02-13 23:29:23 +01:00
Dhananjay Balan
8cd2b04ff1 TLS challenge 2017-02-02 20:36:48 +01:00
notmycommit
54e14ea355 Merge branch 'build_and_deploy' into 'master'
Build and publish in gitlab.

See merge request !1
2017-02-02 19:14:31 +00:00