-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add generating millions of PDFs blog post
- Loading branch information
Showing
12 changed files
with
675 additions
and
278 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "Sarat Chandra", | ||
"title": "Software Engineer", | ||
"homepage": "https://sarat.dev/", | ||
"github": "https://github.com/iamd3vil", | ||
"avatar": "https://avatars.githubusercontent.com/u/10434498?v=4", | ||
"twitter": "https://twitter.com/iamd3vil" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
{{ partial "header.html" . }} | ||
|
||
{{ if eq .Params.banner "yes" }} | ||
<div class="banner"> | ||
<img src="{{ .Params.image }}"> | ||
</div> | ||
{{ end }} | ||
|
||
<div class="content-wrap wrap"> | ||
{{ if isset .Params "author" }} | ||
{{ partial "author.html" . }} | ||
|
||
{{ if eq .Params.banner "yes" }} | ||
<div class="banner"> | ||
<img src="{{ .Params.image }}"> | ||
</div> | ||
{{ end }} | ||
|
||
<div class="content-wrap wrap"> | ||
{{ if isset .Params "authors" }} | ||
{{ partial "author.html" . }} | ||
{{ end }} | ||
<div class="content"> | ||
{{ .Content }} | ||
|
||
<div class="tags"> | ||
{{ if ne .Type "page" }} | ||
{{ if gt .Params.tags 0 }} | ||
<ul class="flat"> | ||
{{ range .Params.tags }} | ||
<li><a href="{{ " /tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li> | ||
{{ end }} | ||
<div class="content"> | ||
{{ .Content }} | ||
|
||
<div class="tags"> | ||
{{ if ne .Type "page" }} | ||
{{ if gt .Params.tags 0 }} | ||
<ul class="flat"> | ||
{{ range .Params.tags }} | ||
<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li> | ||
{{ end }} | ||
</ul> | ||
{{ end }} | ||
{{ end }} | ||
</div> | ||
</div> | ||
</div> | ||
</ul> | ||
{{ end }} | ||
{{ end }} | ||
</div> | ||
</div> | ||
{{ partial "footer.html" . }} | ||
</div> | ||
</div> | ||
</div> | ||
{{ partial "footer.html" . }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
<div class="author-tiny"> | ||
{{ if .Params.author }} | ||
{{ $author := .Params.author }} | ||
{{ with index .Site.Data.authors $author }} | ||
|
||
|
||
<img src="{{ .avatar }}" class="avatar" alt="{{ .name }}" /> | ||
|
||
|
||
<a href="{{ $.Site.BaseURL }}/authors/{{ $author }}" class="name">{{ .name }}</a> | ||
<span class="desig">{{ .title }}</span> | ||
|
||
{{ end }} | ||
{{ if .Params.authors }} <!-- Use the new authors array --> | ||
{{ range .Params.authors }} <!-- Iterate over each author in the array --> | ||
{{ $author := . }} <!-- Assign the current author to a variable --> | ||
{{ with index $.Site.Data.authors $author }} <!-- Access author details from the data directory --> | ||
<div class="author-tiny-individual"> | ||
<span class="avatar"><img src="{{ .avatar }}" alt="{{ .name }}" /></span> | ||
<div class="author-tiny-meta"> | ||
<div class="author-tiny-details"> | ||
<a href="{{ $.Site.BaseURL }}/authors/{{ $author }}" class="name">{{ .name }}</a> | ||
<div class="desig">{{ .title }}</div> | ||
</div> | ||
</div> | ||
</div> | ||
{{ end }} | ||
</div> | ||
{{ end }} | ||
{{ end }} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,41 @@ | ||
<div class="author"> | ||
{{ if .Params.author }} | ||
{{ $author := .Params.author }} | ||
{{ with index .Site.Data.authors $author }} | ||
<span class="avatar"><img src="{{ .avatar }}" alt="{{ .name }}" /></span> | ||
<div class="meta"> | ||
<div> | ||
<a href="{{ $.Site.BaseURL }}/authors/{{ $author }}" class="name">{{ .name }}</a> | ||
<div class="desig">{{ .title }}</div> | ||
</div> | ||
|
||
<div class="urls"> | ||
{{ if .homepage }} | ||
<a href="{{ .homepage }}"> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="2" x2="22" y1="12" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/> | ||
</svg> | ||
</a>{{ end }} | ||
{{ if .github }} | ||
<a href="{{ .github }}"> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | ||
<path d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"/><path d="M9 18c-4.51 2-5-2-7-2"/> | ||
</svg> | ||
</a> | ||
{{ end }} | ||
</div> | ||
{{ if .Params.authors }} <!-- Use the new authors array --> | ||
{{ range .Params.authors }} <!-- Iterate over each author in the array --> | ||
{{ $author := . }} <!-- Assign the current author to a variable --> | ||
{{ with index $.Site.Data.authors $author }} <!-- Access author details from the data directory --> | ||
<div class="author-individual"> | ||
<span class="avatar"><img src="{{ .avatar }}" alt="{{ .name }}" /></span> | ||
<div class="meta"> | ||
<div class="author-details"> | ||
<a href="{{ $.Site.BaseURL }}/authors/{{ $author }}" class="name">{{ .name }}</a> | ||
<div class="desig">{{ .title }}</div> | ||
</div> | ||
{{ end }} | ||
<div class="urls"> | ||
{{ if .homepage }} | ||
<a href="{{ .homepage }}" class="social-link"> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" | ||
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | ||
<circle cx="12" cy="12" r="10" /> | ||
<line x1="2" x2="22" y1="12" y2="12" /> | ||
<path | ||
d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" /> | ||
</svg> | ||
</a> | ||
{{ end }} | ||
{{ if .github }} | ||
<a href="{{ .github }}" class="social-link"> | ||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" | ||
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"> | ||
<path | ||
d="M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4" /> | ||
<path d="M9 18c-4.51 2-5-2-7-2" /> | ||
</svg> | ||
</a> | ||
{{ end }} | ||
</div> | ||
</div> | ||
</div> | ||
{{ end }} | ||
{{ end }} | ||
{{ end }} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.