Initial Commit
This commit is contained in:
commit
553dced539
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
static/media/**/* filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.db filter=lfs diff=lfs merge=lfs -text
|
25
.gitignore
vendored
Normal file
25
.gitignore
vendored
Normal file
|
@ -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
|
BIN
.lilac/lilac.db
(Stored with Git LFS)
Normal file
BIN
.lilac/lilac.db
(Stored with Git LFS)
Normal file
Binary file not shown.
6
archetypes/default.md
Normal file
6
archetypes/default.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
title: "{{ replace .Name "-" " " | title }}"
|
||||||
|
date: {{ .Date }}
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
|
18
config.toml
Normal file
18
config.toml
Normal file
|
@ -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"
|
5
content/_index.md
Normal file
5
content/_index.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
date: 2022-09-21T17:14:04+05:30
|
||||||
|
---
|
||||||
|
|
||||||
|
Hi! I am Pranav Karawale. Website will be updated soon.
|
3
content/articles/_index.md
Normal file
3
content/articles/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
title: Articles
|
||||||
|
---
|
3
content/likes/_index.md
Normal file
3
content/likes/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
title: Likes
|
||||||
|
---
|
3
content/notes/_index.md
Normal file
3
content/notes/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
title: Notes
|
||||||
|
---
|
28
layouts/_default/baseof.html
Normal file
28
layouts/_default/baseof.html
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
|
{{- range $rel, $href := .Site.Params.indieweb }}
|
||||||
|
<link rel="{{ $rel }}" href="{{ $href }}">
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- block "head" . }}{{ end }}
|
||||||
|
|
||||||
|
{{- $title := partial "title" . }}
|
||||||
|
<title>
|
||||||
|
{{ if $title }}
|
||||||
|
{{- $title -}} - {{ .Site.Title }}
|
||||||
|
{{ else }}
|
||||||
|
{{ .Site.Title }}
|
||||||
|
{{ end }}
|
||||||
|
</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<main>
|
||||||
|
{{- block "main" . }}{{ end }}
|
||||||
|
</main>
|
||||||
|
</body>
|
||||||
|
</html>
|
11
layouts/_default/list.html
Normal file
11
layouts/_default/list.html
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{{- define "main" }}
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
|
{{ .Content }}
|
||||||
|
<ul>
|
||||||
|
{{ range .Pages }}
|
||||||
|
<li>
|
||||||
|
{{ .Render ( printf "preview/%s" .Params.Kind ) }}
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
{{- end }}
|
6
layouts/_default/preview/article.html
Normal file
6
layouts/_default/preview/article.html
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<div>
|
||||||
|
{{ partial "post-start" . }}
|
||||||
|
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
|
||||||
|
<p>{{ .Summary }}</p>
|
||||||
|
{{ partial "post-end" .}}
|
||||||
|
</div>
|
7
layouts/_default/preview/like.html
Normal file
7
layouts/_default/preview/like.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<div>
|
||||||
|
{{ partial "post-start" . }}
|
||||||
|
<p>
|
||||||
|
Liked <a href="{{ .Param " like-of" }}">{{ .Param "like-of" }}</a>
|
||||||
|
</p>
|
||||||
|
{{ partial "post-end" .}}
|
||||||
|
</div>
|
8
layouts/_default/preview/note.html
Normal file
8
layouts/_default/preview/note.html
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<div>
|
||||||
|
<p>{{ .Content }}</p>
|
||||||
|
<p><a href="{{ .Permalink }}">{{ .PublishDate }}
|
||||||
|
{{- if ne .PublishDate .Lastmod }}
|
||||||
|
; last updated {{ .Lastmod }}
|
||||||
|
{{- end }}
|
||||||
|
</a></p>
|
||||||
|
</div>
|
4
layouts/_default/single.html
Normal file
4
layouts/_default/single.html
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{{- define "main" }}
|
||||||
|
<h1>{{ .Title }}</h1>
|
||||||
|
{{ .Content }}
|
||||||
|
{{- end }}
|
44
layouts/articles/single.html
Normal file
44
layouts/articles/single.html
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
{{- define "head" }}
|
||||||
|
<meta name="description" content="{{ .Summary }}">
|
||||||
|
{{ end }}
|
||||||
|
{{- define "main" }}
|
||||||
|
{{- $me := .Site.Params.Me -}}
|
||||||
|
<article class="h-entry">
|
||||||
|
<header>
|
||||||
|
<h1 class="p-name">{{ .Title }}</h1>
|
||||||
|
<aside>
|
||||||
|
<p>
|
||||||
|
By <a class="p-author h-card" href="{{ .Site.BaseURL}}">
|
||||||
|
{{ $me.Name }}
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
<time class="dt-published"
|
||||||
|
datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">
|
||||||
|
{{ .Date.Format "02 January, 2006" }}
|
||||||
|
</time>
|
||||||
|
{{ if .Lastmod | and (.Lastmod.After .Date) }}
|
||||||
|
, edited <time
|
||||||
|
class="dt-updated"
|
||||||
|
datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z" }}">
|
||||||
|
{{ .Lastmod.Format "02 January, 2006" }}
|
||||||
|
</time>
|
||||||
|
{{ end }}
|
||||||
|
<details>
|
||||||
|
<summary>Table of Contents</summary>
|
||||||
|
{{ .TableOfContents }}
|
||||||
|
</details>
|
||||||
|
<p>
|
||||||
|
Tagged:
|
||||||
|
{{- range $tag := .Param "tags" -}}
|
||||||
|
<a href="/tags/{{ $tag }}">
|
||||||
|
#<span class="p-category">{{ $tag }}</span>
|
||||||
|
</a>
|
||||||
|
{{- end -}}
|
||||||
|
</p>
|
||||||
|
</aside>
|
||||||
|
</header>
|
||||||
|
<section class="e-content">
|
||||||
|
{{ .Content }}
|
||||||
|
</section>
|
||||||
|
</article>
|
||||||
|
{{- end }}
|
3
layouts/index.html
Normal file
3
layouts/index.html
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{{- define "main" }}
|
||||||
|
{{ .Content }}
|
||||||
|
{{- end }}
|
11
layouts/likes/single.html
Normal file
11
layouts/likes/single.html
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{{- define "main" }}
|
||||||
|
{{ partial "post-start" . }}
|
||||||
|
<article class="h-entry">
|
||||||
|
<p>
|
||||||
|
Liked <a class="u-like-of" href="{{ .Param "like-of" }}">
|
||||||
|
{{ .Param "like-of" }}
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
</article>
|
||||||
|
{{ partial "post-end" . }}
|
||||||
|
{{- end }}
|
21
layouts/partials/post-end.html
Normal file
21
layouts/partials/post-end.html
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{{- /* Continued from post-start.html */ -}}
|
||||||
|
<a href="{{ .Permalink }}">
|
||||||
|
Published on <time datetime="{{ .Date.Format "2006-01-02T15:04:05Z" }}">
|
||||||
|
{{ .Date.Format "02 January, 2006" }}
|
||||||
|
</time>
|
||||||
|
{{ if .Lastmod | and (.Lastmod.After .Date) }}
|
||||||
|
, edited <time datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z" }}">
|
||||||
|
{{ .Lastmod.Format "02 January, 2006" }}
|
||||||
|
</time>
|
||||||
|
{{ end }}
|
||||||
|
</a>
|
||||||
|
<ul>
|
||||||
|
{{ range $tag := .Param "tags" }}
|
||||||
|
<li>
|
||||||
|
<a href="/tags/{{ $tag }}">
|
||||||
|
#<span class="p-category">{{ $tag }}</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</div>
|
10
layouts/partials/post-start.html
Normal file
10
layouts/partials/post-start.html
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{{- $me := .Site.Params.Me -}}
|
||||||
|
|
||||||
|
<div class="h-entry">
|
||||||
|
<div class="h-card">
|
||||||
|
<img src="{{ $me.photo }}" height="48" width="48" alt="A close-up photo of my face.">
|
||||||
|
<a href="{{ .Site.BaseURL }}" class="u-name u-url">
|
||||||
|
{{ $me.Name }}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{{- /* Continued in ./post-end.html */ -}}
|
7
layouts/partials/title.html
Normal file
7
layouts/partials/title.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{{ if .Param "like-of" }}
|
||||||
|
Like of {{ .Param "like-of" }}
|
||||||
|
{{ else if .Param "title" }}
|
||||||
|
{{ .Param "title" }}
|
||||||
|
{{ else if .Plain }}
|
||||||
|
{{ .Plain }}
|
||||||
|
{{ end }}
|
15
post.tmpl
Normal file
15
post.tmpl
Normal file
|
@ -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 }}
|
BIN
static/media/20220925120538.webp
(Stored with Git LFS)
Normal file
BIN
static/media/20220925120538.webp
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
static/media/20220925203906.webp
(Stored with Git LFS)
Normal file
BIN
static/media/20220925203906.webp
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
static/media/20220925204626.webp
(Stored with Git LFS)
Normal file
BIN
static/media/20220925204626.webp
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
static/media/20220925205007.webp
(Stored with Git LFS)
Normal file
BIN
static/media/20220925205007.webp
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
static/media/20220925205357.webp
(Stored with Git LFS)
Normal file
BIN
static/media/20220925205357.webp
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
static/media/20220925205424.webp
(Stored with Git LFS)
Normal file
BIN
static/media/20220925205424.webp
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
static/media/20221006070534.jpe
(Stored with Git LFS)
Normal file
BIN
static/media/20221006070534.jpe
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
static/media/20221006071127.jpe
(Stored with Git LFS)
Normal file
BIN
static/media/20221006071127.jpe
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
static/media/20221006071206.jpe
(Stored with Git LFS)
Normal file
BIN
static/media/20221006071206.jpe
(Stored with Git LFS)
Normal file
Binary file not shown.
Loading…
Reference in a new issue