diff --git a/Taskfile.yml b/Taskfile.yml index 9fc2bad..1976a11 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -11,9 +11,7 @@ tasks: new_post: cmds: - - hugo new --kind post-bundle posts/{{now | date "2006-01-02"}}-{{.ARTICLE_NAME}} - env: - ARTICLE_NAME: foo + - script/add {{.CLI_ARGS}} new_talk: cmds: diff --git a/archetypes/post-bundle/index.md b/archetypes/post-bundle/index.md index f0bdc79..be03a6d 100644 --- a/archetypes/post-bundle/index.md +++ b/archetypes/post-bundle/index.md @@ -1,8 +1,6 @@ --- -title: {{ replace .Name "-" " " | title }} +title: {{ slicestr (replace .Name "-" " ") 11 | title }} date: {{ dateFormat "2006-01-02" .Date }} -canonicalUrl: {{ site.BaseURL }}posts/{{ replace .Name "-" " " | title }}/ -draft: true -tags: - - +canonicalUrl: https://haseebmajid.dev/posts/{{.Name}} +tags: [] --- \ No newline at end of file diff --git a/scripts/add b/scripts/add new file mode 100755 index 0000000..1f89db6 --- /dev/null +++ b/scripts/add @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +TITLE=${1:-} + +TITLE_SLUG="$(echo -n "$TITLE" | sed -e 's/[^[:alnum:]]/-/g' | tr -s '-' | tr A-Z a-z)" +DATE="$(date +"%F")" +SLUG="$DATE-$TITLE_SLUG" + +# git checkout -b "$SLUG" +hugo new --kind post-bundle posts/$SLUG + diff --git a/static/android-chrome-192x192.png b/static/android-chrome-192x192.png new file mode 100644 index 0000000..d6d8d21 Binary files /dev/null and b/static/android-chrome-192x192.png differ diff --git a/static/android-chrome-512x512.png b/static/android-chrome-512x512.png new file mode 100644 index 0000000..1dbed3b Binary files /dev/null and b/static/android-chrome-512x512.png differ diff --git a/static/apple-touch-icon.png b/static/apple-touch-icon.png new file mode 100644 index 0000000..b4e94dc Binary files /dev/null and b/static/apple-touch-icon.png differ diff --git a/static/cover.jpg b/static/cover.jpg new file mode 100644 index 0000000..61334cb Binary files /dev/null and b/static/cover.jpg differ diff --git a/static/favicon-16x16.png b/static/favicon-16x16.png new file mode 100644 index 0000000..b476ddb Binary files /dev/null and b/static/favicon-16x16.png differ diff --git a/static/favicon-32x32.png b/static/favicon-32x32.png new file mode 100644 index 0000000..f4a27ef Binary files /dev/null and b/static/favicon-32x32.png differ diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..cdcdfa7 Binary files /dev/null and b/static/favicon.ico differ diff --git a/static/fonts/iconfont/iconfont.ttf b/static/fonts/iconfont/iconfont.ttf new file mode 100644 index 0000000..f8f81a4 Binary files /dev/null and b/static/fonts/iconfont/iconfont.ttf differ diff --git a/static/site.webmanifest b/static/site.webmanifest new file mode 100644 index 0000000..fa99de7 --- /dev/null +++ b/static/site.webmanifest @@ -0,0 +1,19 @@ +{ + "name": "", + "short_name": "", + "icons": [ + { + "src": "/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +}