From 553dced539f1e424b724d16b97fbec08573c8a0a Mon Sep 17 00:00:00 2001 From: Pranav Karawale Date: Sat, 8 Oct 2022 14:30:00 +0530 Subject: [PATCH] Initial Commit --- .gitattributes | 2 ++ .gitignore | 25 +++++++++++++++ .lilac/lilac.db | 3 ++ archetypes/default.md | 6 ++++ config.toml | 18 +++++++++++ content/_index.md | 5 +++ content/articles/_index.md | 3 ++ content/likes/_index.md | 3 ++ content/notes/_index.md | 3 ++ layouts/_default/baseof.html | 28 +++++++++++++++++ layouts/_default/list.html | 11 +++++++ layouts/_default/preview/article.html | 6 ++++ layouts/_default/preview/like.html | 7 +++++ layouts/_default/preview/note.html | 8 +++++ layouts/_default/single.html | 4 +++ layouts/articles/single.html | 44 +++++++++++++++++++++++++++ layouts/index.html | 3 ++ layouts/likes/single.html | 11 +++++++ layouts/partials/post-end.html | 21 +++++++++++++ layouts/partials/post-start.html | 10 ++++++ layouts/partials/title.html | 7 +++++ post.tmpl | 15 +++++++++ static/media/20220925120538.webp | 3 ++ static/media/20220925203906.webp | 3 ++ static/media/20220925204626.webp | 3 ++ static/media/20220925205007.webp | 3 ++ static/media/20220925205357.webp | 3 ++ static/media/20220925205424.webp | 3 ++ static/media/20221006070534.jpe | 3 ++ static/media/20221006071127.jpe | 3 ++ static/media/20221006071206.jpe | 3 ++ 31 files changed, 270 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 .lilac/lilac.db create mode 100644 archetypes/default.md create mode 100644 config.toml create mode 100644 content/_index.md create mode 100644 content/articles/_index.md create mode 100644 content/likes/_index.md create mode 100644 content/notes/_index.md create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/preview/article.html create mode 100644 layouts/_default/preview/like.html create mode 100644 layouts/_default/preview/note.html create mode 100644 layouts/_default/single.html create mode 100644 layouts/articles/single.html create mode 100644 layouts/index.html create mode 100644 layouts/likes/single.html create mode 100644 layouts/partials/post-end.html create mode 100644 layouts/partials/post-start.html create mode 100644 layouts/partials/title.html create mode 100644 post.tmpl create mode 100644 static/media/20220925120538.webp create mode 100644 static/media/20220925203906.webp create mode 100644 static/media/20220925204626.webp create mode 100644 static/media/20220925205007.webp create mode 100644 static/media/20220925205357.webp create mode 100644 static/media/20220925205424.webp create mode 100644 static/media/20221006070534.jpe create mode 100644 static/media/20221006071127.jpe create mode 100644 static/media/20221006071206.jpe diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..5ff4430 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +static/media/**/* filter=lfs diff=lfs merge=lfs -text +*.db filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0a1db5c --- /dev/null +++ b/.gitignore @@ -0,0 +1,25 @@ +# Generated files by hugo +/public/ +/resources/_gen/ +/assets/jsconfig.json +hugo_stats.json + +# Executable may be added to repository +hugo.exe +hugo.darwin +hugo.linux + +# Temporary lock file while building +/.hugo_build.lock + +# Generated content by lilacctl +content/articles/* +content/notes/* +content/likes/* +content/checkins/* + +# Index files from generated content which should be tracked +!content/articles/_index.md +!content/notes/_index.md +!content/likes/_index.md +!content/checkins/_index.md diff --git a/.lilac/lilac.db b/.lilac/lilac.db new file mode 100644 index 0000000..382526b --- /dev/null +++ b/.lilac/lilac.db @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1782c7d926a9b4fc11c0c23351e7316b7109ca23447090b8695095789da615e9 +size 20480 diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..00e77bd --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,6 @@ +--- +title: "{{ replace .Name "-" " " | title }}" +date: {{ .Date }} +draft: true +--- + diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..b3c0a6e --- /dev/null +++ b/config.toml @@ -0,0 +1,18 @@ +baseURL = 'https://karawale.in/staging' +languageCode = 'en-us' +title = 'Pranav Karawale' + +[taxonomies] +tag = 'tags' + +[Params.indieweb] +micropub = 'https://karawale.in/lilac/micropub' +authorization_endpoint = 'https://indieauth.com/auth' +token_endpoint = 'https://tokens.indieauth.com/token' +me = 'https://github.com/retronav' + +[Params.me] +name = "Pranav Karawale" +photo = "https://picsum.photos/48" +nickname = "retronav" +note = "Myself. Clarify more about me" diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..aca1ee4 --- /dev/null +++ b/content/_index.md @@ -0,0 +1,5 @@ +--- +date: 2022-09-21T17:14:04+05:30 +--- + +Hi! I am Pranav Karawale. Website will be updated soon. \ No newline at end of file diff --git a/content/articles/_index.md b/content/articles/_index.md new file mode 100644 index 0000000..0436c00 --- /dev/null +++ b/content/articles/_index.md @@ -0,0 +1,3 @@ +--- +title: Articles +--- \ No newline at end of file diff --git a/content/likes/_index.md b/content/likes/_index.md new file mode 100644 index 0000000..973fd3a --- /dev/null +++ b/content/likes/_index.md @@ -0,0 +1,3 @@ +--- +title: Likes +--- \ No newline at end of file diff --git a/content/notes/_index.md b/content/notes/_index.md new file mode 100644 index 0000000..b3afac6 --- /dev/null +++ b/content/notes/_index.md @@ -0,0 +1,3 @@ +--- +title: Notes +--- \ No newline at end of file diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..8b9b920 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,28 @@ + + + + + + + + {{- range $rel, $href := .Site.Params.indieweb }} + + {{- end }} + + {{- block "head" . }}{{ end }} + + {{- $title := partial "title" . }} + + {{ if $title }} + {{- $title -}} - {{ .Site.Title }} + {{ else }} + {{ .Site.Title }} + {{ end }} + + + +
+ {{- block "main" . }}{{ end }} +
+ + diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..2232403 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,11 @@ +{{- define "main" }} +

{{ .Title }}

+ {{ .Content }} + +{{- end }} \ No newline at end of file diff --git a/layouts/_default/preview/article.html b/layouts/_default/preview/article.html new file mode 100644 index 0000000..1f54fdd --- /dev/null +++ b/layouts/_default/preview/article.html @@ -0,0 +1,6 @@ +
+ {{ partial "post-start" . }} +

{{ .Title }}

+

{{ .Summary }}

+ {{ partial "post-end" .}} +
diff --git a/layouts/_default/preview/like.html b/layouts/_default/preview/like.html new file mode 100644 index 0000000..0efc0e9 --- /dev/null +++ b/layouts/_default/preview/like.html @@ -0,0 +1,7 @@ +
+ {{ partial "post-start" . }} +

+ Liked {{ .Param "like-of" }} +

+ {{ partial "post-end" .}} +
diff --git a/layouts/_default/preview/note.html b/layouts/_default/preview/note.html new file mode 100644 index 0000000..ec08281 --- /dev/null +++ b/layouts/_default/preview/note.html @@ -0,0 +1,8 @@ +
+

{{ .Content }}

+

{{ .PublishDate }} + {{- if ne .PublishDate .Lastmod }} + ; last updated {{ .Lastmod }} + {{- end }} +

+
diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..3cd5662 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,4 @@ +{{- define "main" }} +

{{ .Title }}

+ {{ .Content }} +{{- end }} \ No newline at end of file diff --git a/layouts/articles/single.html b/layouts/articles/single.html new file mode 100644 index 0000000..045c1b8 --- /dev/null +++ b/layouts/articles/single.html @@ -0,0 +1,44 @@ +{{- define "head" }} + +{{ end }} +{{- define "main" }} + {{- $me := .Site.Params.Me -}} +
+
+

{{ .Title }}

+ +
+
+ {{ .Content }} +
+
+{{- end }} diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..c2b9216 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,3 @@ +{{- define "main" }} +{{ .Content }} +{{- end }} \ No newline at end of file diff --git a/layouts/likes/single.html b/layouts/likes/single.html new file mode 100644 index 0000000..b6f598c --- /dev/null +++ b/layouts/likes/single.html @@ -0,0 +1,11 @@ +{{- define "main" }} +{{ partial "post-start" . }} +
+

+ Liked + {{ .Param "like-of" }} + +

+
+{{ partial "post-end" . }} +{{- end }} diff --git a/layouts/partials/post-end.html b/layouts/partials/post-end.html new file mode 100644 index 0000000..c05f84e --- /dev/null +++ b/layouts/partials/post-end.html @@ -0,0 +1,21 @@ +{{- /* Continued from post-start.html */ -}} + + Published on + {{ if .Lastmod | and (.Lastmod.After .Date) }} + , edited + {{ end }} + + + diff --git a/layouts/partials/post-start.html b/layouts/partials/post-start.html new file mode 100644 index 0000000..94125cb --- /dev/null +++ b/layouts/partials/post-start.html @@ -0,0 +1,10 @@ +{{- $me := .Site.Params.Me -}} + +
+ +{{- /* Continued in ./post-end.html */ -}} diff --git a/layouts/partials/title.html b/layouts/partials/title.html new file mode 100644 index 0000000..1099207 --- /dev/null +++ b/layouts/partials/title.html @@ -0,0 +1,7 @@ +{{ if .Param "like-of" }} + Like of {{ .Param "like-of" }} +{{ else if .Param "title" }} + {{ .Param "title" }} +{{ else if .Plain }} + {{ .Plain }} +{{ end }} diff --git a/post.tmpl b/post.tmpl new file mode 100644 index 0000000..2d7194f --- /dev/null +++ b/post.tmpl @@ -0,0 +1,15 @@ +{{- $content := "" -}} +{{- if .Post.content -}} + {{- $content = index .Post.content.text -}} +{{- end -}} +{{- $_ := move .Post "updated" "lastmod" -}} +{{- $_ := move .Post "name" "title" -}} +{{- $_ := move .Post "type" "h" -}} +{{- $_ := delete .Post "mp-slug" -}} +{{- $_ := move .Post "category" "tags" -}} +{{- $_ := delete .Post "content" -}} +--- +{{yaml .Post}} +--- + +{{ $content }} diff --git a/static/media/20220925120538.webp b/static/media/20220925120538.webp new file mode 100644 index 0000000..28d95a5 --- /dev/null +++ b/static/media/20220925120538.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7f116d89475920287dc28ef0069e37715ef1ed8de42d170e7bc72d9ded1f533e +size 34714 diff --git a/static/media/20220925203906.webp b/static/media/20220925203906.webp new file mode 100644 index 0000000..5b95ff2 --- /dev/null +++ b/static/media/20220925203906.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:37c14ef57b56d85f7fd471d2f08d1b6bd7d2279aa2ec7742d7bd53dd07ea772e +size 26800 diff --git a/static/media/20220925204626.webp b/static/media/20220925204626.webp new file mode 100644 index 0000000..f8176fb --- /dev/null +++ b/static/media/20220925204626.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dece515ee182c84bf0676240ba5d39675375592104599b24575a66e1486a85a6 +size 2374 diff --git a/static/media/20220925205007.webp b/static/media/20220925205007.webp new file mode 100644 index 0000000..f8176fb --- /dev/null +++ b/static/media/20220925205007.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dece515ee182c84bf0676240ba5d39675375592104599b24575a66e1486a85a6 +size 2374 diff --git a/static/media/20220925205357.webp b/static/media/20220925205357.webp new file mode 100644 index 0000000..f8176fb --- /dev/null +++ b/static/media/20220925205357.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dece515ee182c84bf0676240ba5d39675375592104599b24575a66e1486a85a6 +size 2374 diff --git a/static/media/20220925205424.webp b/static/media/20220925205424.webp new file mode 100644 index 0000000..5b95ff2 --- /dev/null +++ b/static/media/20220925205424.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:37c14ef57b56d85f7fd471d2f08d1b6bd7d2279aa2ec7742d7bd53dd07ea772e +size 26800 diff --git a/static/media/20221006070534.jpe b/static/media/20221006070534.jpe new file mode 100644 index 0000000..69106e0 --- /dev/null +++ b/static/media/20221006070534.jpe @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5aa86c3b9714dc6624557ed5a781f73b3abf63edb9c30ded7bc371e0a4781f09 +size 78378 diff --git a/static/media/20221006071127.jpe b/static/media/20221006071127.jpe new file mode 100644 index 0000000..69106e0 --- /dev/null +++ b/static/media/20221006071127.jpe @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5aa86c3b9714dc6624557ed5a781f73b3abf63edb9c30ded7bc371e0a4781f09 +size 78378 diff --git a/static/media/20221006071206.jpe b/static/media/20221006071206.jpe new file mode 100644 index 0000000..69106e0 --- /dev/null +++ b/static/media/20221006071206.jpe @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5aa86c3b9714dc6624557ed5a781f73b3abf63edb9c30ded7bc371e0a4781f09 +size 78378