Initial Commit
This commit is contained in:
commit
553dced539
|
@ -0,0 +1,2 @@
|
|||
static/media/**/* filter=lfs diff=lfs merge=lfs -text
|
||||
*.db filter=lfs diff=lfs merge=lfs -text
|
|
@ -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
|
Binary file not shown.
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
title: "{{ replace .Name "-" " " | title }}"
|
||||
date: {{ .Date }}
|
||||
draft: true
|
||||
---
|
||||
|
|
@ -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"
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
date: 2022-09-21T17:14:04+05:30
|
||||
---
|
||||
|
||||
Hi! I am Pranav Karawale. Website will be updated soon.
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Articles
|
||||
---
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Likes
|
||||
---
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Notes
|
||||
---
|
|
@ -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>
|
|
@ -0,0 +1,11 @@
|
|||
{{- define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
{{ .Render ( printf "preview/%s" .Params.Kind ) }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{- end }}
|
|
@ -0,0 +1,6 @@
|
|||
<div>
|
||||
{{ partial "post-start" . }}
|
||||
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
|
||||
<p>{{ .Summary }}</p>
|
||||
{{ partial "post-end" .}}
|
||||
</div>
|
|
@ -0,0 +1,7 @@
|
|||
<div>
|
||||
{{ partial "post-start" . }}
|
||||
<p>
|
||||
Liked <a href="{{ .Param " like-of" }}">{{ .Param "like-of" }}</a>
|
||||
</p>
|
||||
{{ partial "post-end" .}}
|
||||
</div>
|
|
@ -0,0 +1,8 @@
|
|||
<div>
|
||||
<p>{{ .Content }}</p>
|
||||
<p><a href="{{ .Permalink }}">{{ .PublishDate }}
|
||||
{{- if ne .PublishDate .Lastmod }}
|
||||
; last updated {{ .Lastmod }}
|
||||
{{- end }}
|
||||
</a></p>
|
||||
</div>
|
|
@ -0,0 +1,4 @@
|
|||
{{- define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
{{ .Content }}
|
||||
{{- end }}
|
|
@ -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 }}
|
|
@ -0,0 +1,3 @@
|
|||
{{- define "main" }}
|
||||
{{ .Content }}
|
||||
{{- end }}
|
|
@ -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 }}
|
|
@ -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>
|
|
@ -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 */ -}}
|
|
@ -0,0 +1,7 @@
|
|||
{{ if .Param "like-of" }}
|
||||
Like of {{ .Param "like-of" }}
|
||||
{{ else if .Param "title" }}
|
||||
{{ .Param "title" }}
|
||||
{{ else if .Plain }}
|
||||
{{ .Plain }}
|
||||
{{ end }}
|
|
@ -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 }}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue