Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/urjaacharya/redgood.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrja Acharya <urja.acharya@huskers.unl.edu>2020-05-23 23:44:46 +0300
committerUrja Acharya <urja.acharya@huskers.unl.edu>2020-05-23 23:44:46 +0300
commite85caeeda5220ab7a7595e9734419f8c1de56e86 (patch)
treec5088e58b76113dea19542054300cdfd42599184
Initial Commit
-rw-r--r--LICENSE20
-rw-r--r--archetypes/default.md2
-rw-r--r--exampleSite/config.toml27
-rw-r--r--exampleSite/content/archive/_index.md5
-rw-r--r--exampleSite/content/pinnedPosts/_index.md5
-rw-r--r--exampleSite/content/post/_index.md6
-rw-r--r--exampleSite/content/post/emoji-support.md48
-rw-r--r--exampleSite/content/post/markdown-syntax.md154
-rw-r--r--exampleSite/content/post/math-typesetting.mmark46
-rw-r--r--exampleSite/content/post/placeholder-text.md58
-rw-r--r--exampleSite/content/post/rich-content.md42
-rw-r--r--images/screenshot.pngbin0 -> 267212 bytes
-rw-r--r--images/tn.pngbin0 -> 217094 bytes
-rw-r--r--layouts/404.html3
-rw-r--r--layouts/_default/baseof.html12
-rw-r--r--layouts/_default/list.html6
-rw-r--r--layouts/_default/single.html7
-rw-r--r--layouts/_default/taxonomy.html6
-rw-r--r--layouts/index.html41
-rw-r--r--layouts/partials/footer.html53
-rw-r--r--layouts/partials/head.html25
-rw-r--r--layouts/partials/header.html37
-rw-r--r--layouts/partials/homeIcon.html15
-rw-r--r--layouts/partials/listPage.html12
-rw-r--r--layouts/partials/taxa.html19
-rw-r--r--layouts/section/archive.html10
-rw-r--r--layouts/section/pinnedPosts.html9
-rw-r--r--layouts/section/recent.html37
-rw-r--r--static/css/main.css310
-rw-r--r--static/css/pagination.css33
-rw-r--r--theme.toml15
31 files changed, 1063 insertions, 0 deletions
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..f146874
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2020 Urja Acharya
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/archetypes/default.md b/archetypes/default.md
new file mode 100644
index 0000000..ac36e06
--- /dev/null
+++ b/archetypes/default.md
@@ -0,0 +1,2 @@
++++
++++
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
new file mode 100644
index 0000000..8d32bfd
--- /dev/null
+++ b/exampleSite/config.toml
@@ -0,0 +1,27 @@
+baseURL = "http://example.org/"
+languageCode = "en-us"
+title = "redgood"
+theme = "redgood"
+
+[markup.goldmark.renderer]
+unsafe = true
+
+[params]
+author = "Urja Acharya"
+description = "redgood is a clean minimal javascript-less theme for blogs"
+
+[params.theme]
+dateFormat = "2006-01-02"
+copyrightInFooter = true
+footerText = "Short [text](#) **in** *footer*"
+
+[params.about]
+profileImage = "https://images.pexels.com/photos/1274922/pexels-photo-1274922.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"
+narrative = "I am dshfsdj flaksdjf lsjfasl dkfjlsdkfj lasdkfj. lasdkfj asdlkjf adlskf jlsakdf jasldkjfa **sdjfosdafjl** aksdfjsdfjk alskdjf. oasdif jioasdfj asdiof *jasdlkfj* asdf asdfu asdijfl kaejkljrwlk jwlkejrwejr ssad."
+
+[params.social]
+email = "#"
+linkedin = "#"
+fb = "#"
+twitter = "#"
+github = "#"
diff --git a/exampleSite/content/archive/_index.md b/exampleSite/content/archive/_index.md
new file mode 100644
index 0000000..fa8cd5f
--- /dev/null
+++ b/exampleSite/content/archive/_index.md
@@ -0,0 +1,5 @@
+---
+title: "All Posts"
+weight: 3001
+hideFromHome: true
+--- \ No newline at end of file
diff --git a/exampleSite/content/pinnedPosts/_index.md b/exampleSite/content/pinnedPosts/_index.md
new file mode 100644
index 0000000..c70e123
--- /dev/null
+++ b/exampleSite/content/pinnedPosts/_index.md
@@ -0,0 +1,5 @@
+---
+title: "Pinned Posts"
+weight: 3000
+hideFromHome: true
+--- \ No newline at end of file
diff --git a/exampleSite/content/post/_index.md b/exampleSite/content/post/_index.md
new file mode 100644
index 0000000..7c6bd54
--- /dev/null
+++ b/exampleSite/content/post/_index.md
@@ -0,0 +1,6 @@
++++
+aliases = ["posts","articles","blog","showcase","docs"]
+title = "Posts"
+author = "Hugo Authors"
+tags = ["index"]
++++
diff --git a/exampleSite/content/post/emoji-support.md b/exampleSite/content/post/emoji-support.md
new file mode 100644
index 0000000..51f2e42
--- /dev/null
+++ b/exampleSite/content/post/emoji-support.md
@@ -0,0 +1,48 @@
++++
+author = "Hugo Authors"
+title = "Emoji Support"
+date = "2019-03-05"
+description = "Guide to emoji usage in Hugo"
+tags = [
+ "emoji",
+]
+pinned = true
++++
+
+Emoji can be enabled in a Hugo project in a number of ways.
+<!--more-->
+The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes).
+
+To enable emoji globally, set `enableEmoji` to `true` in your site’s [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g.
+
+
+<p><span class="nowrap"><span class="emojify">πŸ™ˆ</span> <code>:see_no_evil:</code></span> <span class="nowrap"><span class="emojify">πŸ™‰</span> <code>:hear_no_evil:</code></span> <span class="nowrap"><span class="emojify">πŸ™Š</span> <code>:speak_no_evil:</code></span></p>
+<br>
+
+The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes.
+
+***
+
+**N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g.
+
+{{< highlight html >}}
+.emoji {
+font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols;
+}
+{{< /highlight >}}
+
+{{< css.inline >}}
+<style>
+.emojify {
+ font-family: Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols;
+ font-size: 2rem;
+ vertical-align: middle;
+}
+@media screen and (max-width:650px) {
+ .nowrap {
+ display: block;
+ margin: 25px 0;
+}
+}
+</style>
+{{< /css.inline >}} \ No newline at end of file
diff --git a/exampleSite/content/post/markdown-syntax.md b/exampleSite/content/post/markdown-syntax.md
new file mode 100644
index 0000000..cba3ba1
--- /dev/null
+++ b/exampleSite/content/post/markdown-syntax.md
@@ -0,0 +1,154 @@
++++
+author = "Hugo Authors"
+title = "Markdown Syntax Guide"
+date = "2019-03-11"
+description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements."
+tags = [
+ "markdown",
+ "css",
+ "html",
+ "themes",
+]
+categories = [
+ "themes",
+ "syntax",
+]
+series = ["Themes Guide"]
+aliases = ["migrate-from-jekyl"]
+pinned = true
++++
+
+This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme.
+<!--more-->
+
+## Headings
+
+The following HTML `<h1>`β€”`<h6>` elements represent six levels of section headings. `<h1>` is the highest section level while `<h6>` is the lowest.
+
+# H1
+## H2
+### H3
+#### H4
+##### H5
+###### H6
+
+## Paragraph
+
+Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat.
+
+Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat.
+
+## Blockquotes
+
+The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations.
+
+#### Blockquote without attribution
+
+> Tiam, ad mint andaepu dandae nostion secatur sequo quae.
+> **Note** that you can use *Markdown syntax* within a blockquote.
+
+#### Blockquote with attribution
+
+> Don't communicate by sharing memory, share memory by communicating.</p>
+> β€” <cite>Rob Pike[^1]</cite>
+
+
+[^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015.
+
+## Tables
+
+Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box.
+
+ Name | Age
+--------|------
+ Bob | 27
+ Alice | 23
+
+#### Inline Markdown within tables
+
+| Inline&nbsp;&nbsp;&nbsp; | Markdown&nbsp;&nbsp;&nbsp; | In&nbsp;&nbsp;&nbsp; | Table |
+| ---------- | --------- | ----------------- | ---------- |
+| *italics* | **bold** | ~~strikethrough~~&nbsp;&nbsp;&nbsp; | `code` |
+
+## Code Blocks
+
+#### Code block with backticks
+
+```
+html
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>Example HTML5 Document</title>
+</head>
+<body>
+ <p>Test</p>
+</body>
+</html>
+```
+#### Code block indented with four spaces
+
+ <!DOCTYPE html>
+ <html lang="en">
+ <head>
+ <meta charset="UTF-8">
+ <title>Example HTML5 Document</title>
+ </head>
+ <body>
+ <p>Test</p>
+ </body>
+ </html>
+
+#### Code block with Hugo's internal highlight shortcode
+{{< highlight html >}}
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <title>Example HTML5 Document</title>
+</head>
+<body>
+ <p>Test</p>
+</body>
+</html>
+{{< /highlight >}}
+
+## List Types
+
+#### Ordered List
+
+1. First item
+2. Second item
+3. Third item
+
+#### Unordered List
+
+* List item
+* Another item
+* And another item
+
+#### Nested list
+
+* Item
+ 1. First Sub-item
+ 2. Second Sub-item
+
+## Miscellaneous `HTML` Tags β€” `abbr`, `sub`, `sup`, `kbd`, `mark`
+
+For `HTML` in markdown to be rendered, add following to the `config` file:
+
+```
+[markup.goldmark.renderer]
+ unsafe= true
+```
+
+<abbr title="Graphics Interchange Format">GIF</abbr> is a bitmap image format.
+
+H<sub>2</sub>O
+
+X<sup>n</sup> + Y<sup>n</sup> = Z<sup>n</sup>
+
+Press <kbd>CTRL</kbd>+<kbd>ALT</kbd>+<kbd>Delete</kbd> to end the session.
+
+Most <mark>salamanders</mark> are nocturnal, and hunt for insects, worms, and other small creatures. \ No newline at end of file
diff --git a/exampleSite/content/post/math-typesetting.mmark b/exampleSite/content/post/math-typesetting.mmark
new file mode 100644
index 0000000..7f421ae
--- /dev/null
+++ b/exampleSite/content/post/math-typesetting.mmark
@@ -0,0 +1,46 @@
+---
+author: Hugo Authors
+title: Math Typesetting
+date: 2019-03-08
+description: A brief guide to setup KaTeX
+markup: mmark
+math: true
+---
+
+Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries.
+<!--more-->
+
+In this example we will be using [KaTeX](https://katex.org/)
+
+- Create a partial under `/layouts/partials/math.html`
+- Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally.
+- Include the partial in your templates like so:
+
+```
+{{ if or .Params.math .Site.Params.math }}
+{{ partial "math.html" . }}
+{{ end }}
+```
+- To enable KaTex globally set the parameter `math` to `true` in a project's configuration
+- To enable KaTex on a per page basis include the parameter `math: true` in content files.
+
+**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html)
+{{< math.inline >}}
+{{ if or .Page.Params.math .Site.Params.math }}
+<!-- KaTeX -->
+<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.1/dist/katex.min.css" integrity="sha384-dbVIfZGuN1Yq7/1Ocstc1lUEm+AT+/rCkibIcC/OmWo5f0EA48Vf8CytHzGrSwbQ" crossorigin="anonymous">
+<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.1/dist/katex.min.js" integrity="sha384-2BKqo+exmr9su6dir+qCw08N2ZKRucY4PrGQPPWU1A7FtlCGjmEGFqXCv5nyM5Ij" crossorigin="anonymous"></script>
+<script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>
+{{ end }}
+{{</ math.inline >}}
+
+### Examples
+
+Inline math: $$ \varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887… $$
+
+Block math:
+
+$$
+ \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
+$$
+
diff --git a/exampleSite/content/post/placeholder-text.md b/exampleSite/content/post/placeholder-text.md
new file mode 100644
index 0000000..378b995
--- /dev/null
+++ b/exampleSite/content/post/placeholder-text.md
@@ -0,0 +1,58 @@
++++
+author = "Hugo Authors"
+title = "Placeholder Text"
+date = "2019-03-09"
+description = "Lorem Ipsum Dolor Si Amet"
+tags = [
+ "markdown",
+ "text",
+]
++++
+
+Lorem est tota propiore conpellat pectoribus de
+pectora summo. <!--more-->Redit teque digerit hominumque toris verebor lumina non cervice
+subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc
+caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis
+lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum.
+
+1. Exierant elisi ambit vivere dedere
+2. Duce pollice
+3. Eris modo
+4. Spargitque ferrea quos palude
+
+Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus
+silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria
+tractus malis.
+
+1. Comas hunc haec pietate fetum procerum dixit
+2. Post torum vates letum Tiresia
+3. Flumen querellas
+4. Arcanaque montibus omnes
+5. Quidem et
+
+# Vagus elidunt
+
+<svg class="canon" xmlns="http://www.w3.org/2000/svg" overflow="visible" viewBox="0 0 496 373" height="373" width="496"><g fill="none"><path stroke="#000" stroke-width=".75" d="M.599 372.348L495.263 1.206M.312.633l494.95 370.853M.312 372.633L247.643.92M248.502.92l246.76 370.566M330.828 123.869V1.134M330.396 1.134L165.104 124.515"></path><path stroke="#ED1C24" stroke-width=".75" d="M275.73 41.616h166.224v249.05H275.73zM54.478 41.616h166.225v249.052H54.478z"></path><path stroke="#000" stroke-width=".75" d="M.479.375h495v372h-495zM247.979.875v372"></path><ellipse cx="498.729" cy="177.625" rx=".75" ry="1.25"></ellipse><ellipse cx="247.229" cy="377.375" rx=".75" ry="1.25"></ellipse></g></svg>
+
+[The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon)
+
+## Mane refeci capiebant unda mulcebat
+
+Victa caducifer, malo vulnere contra
+dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere
+furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis.
+
+Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli
+Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare
+Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert
+ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae
+vulnus haerentia iuste et exercebat, sui et.
+
+Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem
+Propoetides **parte**.
+
+{{< css.inline >}}
+<style>
+.canon { background: white; width: 100%; height: auto;}
+</style>
+{{< /css.inline >}}
diff --git a/exampleSite/content/post/rich-content.md b/exampleSite/content/post/rich-content.md
new file mode 100644
index 0000000..5ff41d7
--- /dev/null
+++ b/exampleSite/content/post/rich-content.md
@@ -0,0 +1,42 @@
++++
+author = "Hugo Authors"
+title = "Rich Content"
+date = "2019-03-10"
+description = "A brief description of Hugo Shortcodes"
+tags = [
+ "shortcodes",
+ "privacy",
+]
++++
+
+Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugo-s-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds.
+<!--more-->
+---
+
+## Instagram Simple Shortcode
+
+{{< instagram_simple BGvuInzyFAe hidecaption >}}
+
+<br>
+
+---
+
+## YouTube Privacy Enhanced Shortcode
+
+{{< youtube ZJthWmvUzzc >}}
+
+<br>
+
+---
+
+## Twitter Simple Shortcode
+
+{{< twitter_simple 1085870671291310081 >}}
+
+<br>
+
+---
+
+## Vimeo Simple Shortcode
+
+{{< vimeo_simple 48912912 >}}
diff --git a/images/screenshot.png b/images/screenshot.png
new file mode 100644
index 0000000..cb16ada
--- /dev/null
+++ b/images/screenshot.png
Binary files differ
diff --git a/images/tn.png b/images/tn.png
new file mode 100644
index 0000000..abe920d
--- /dev/null
+++ b/images/tn.png
Binary files differ
diff --git a/layouts/404.html b/layouts/404.html
new file mode 100644
index 0000000..ae3ad77
--- /dev/null
+++ b/layouts/404.html
@@ -0,0 +1,3 @@
+{{ define "main" }}
+Not Found
+{{ end }} \ No newline at end of file
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..68fff46
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="{{ .Site.LanguageCode }}">
+ {{- partial "head.html" . -}}
+ <body>
+ {{- partial "header.html" . -}}
+ <main>
+ {{- block "main" . }}
+ {{- end }}
+ </main>
+ {{- partial "footer.html" . -}}
+ </body>
+</html>
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..eb7c0cd
--- /dev/null
+++ b/layouts/_default/list.html
@@ -0,0 +1,6 @@
+{{ define "main" }}
+<h1>{{ .Title }}</h1>
+{{ range (.Paginator 10).Pages }}
+{{ partial "listPage" . }}
+{{ end }}
+{{ end }} \ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..917c4f9
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,7 @@
+{{ define "main" }}
+<div class="front-matter">
+ <h1>{{ .Title }}</h1>
+ <p>{{ dateFormat .Site.Params.theme.dateFormat .Date }} &middot; {{ .Site.Params.author }}</p>
+</div>
+{{ .Content }}
+{{ end }}
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
new file mode 100644
index 0000000..ea0c32f
--- /dev/null
+++ b/layouts/_default/taxonomy.html
@@ -0,0 +1,6 @@
+{{ define "main" }}
+<h1>#{{ .Title }}</h1>
+{{ range (.Paginator 10).Pages.ByDate.Reverse }}
+{{ partial "listPage" . }}
+{{ end }}
+{{ end }}
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..696613d
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,41 @@
+{{ define "main" }}
+{{ range ((where .Site.Pages "Params.pinned" true).ByDate.Reverse) | first 1 }}
+<h3>
+ <a href="{{ .Permalink }}" aria-label="site title">{{ .Title }}</a>
+</h3>
+<div class="pinned-post home-page-card">
+ <p>{{ .Summary | plainify | truncate 250 }}</p>
+ <div class="home-page-card-links">
+ <a href="{{ .Permalink }}" aria-label="click to read the pinned post">
+ Read More
+ </a>
+ </div>
+ <div class="home-page-card-links">
+ <a href="{{ `pinnedposts` | relURL }}">All Pinned</a>
+ </div>
+</div>
+{{ end }}
+
+<h3>Recent Posts</h3>
+<div class="recent-posts home-page-card">
+ {{ range ((where .Site.Pages "Kind" "page").ByDate.Reverse) | first 6 }}
+ {{ partial "listPage" . }}
+ {{ end }}
+ <div class="home-page-card-links">
+ <a href="{{ `archive` | relURL }}" aria-label="link to all posts"
+ >All Posts</a
+ >
+ </div>
+</div>
+
+<h3>Sections</h3>
+<div class="site-sections home-page-card">
+ {{ range .Site.Sections }}
+ {{ if not .Params.hideFromHome }}
+ <p>
+ <a href="{{ .Permalink }}" aria-label="site sections">{{ .Title }}</a> - {{ len .Pages}} Articles
+ </p>
+ {{ end }} {{ end }}
+</div>
+{{ partial "taxa" (dict "taxo" .Site.Taxonomies "mysite" .) }}
+{{ end }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..2b45773
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,53 @@
+<footer>
+ {{ if eq .Kind "section" }}
+ <div>
+ {{ template "_internal/pagination.html" . }}
+ </div>
+ {{ end }} {{ if eq .Kind "page" }}
+ <div class="prev-next">
+ {{- if .PrevInSection }}
+ <a
+ class="active"
+ href="{{ .PrevInSection.Permalink | relURL }}"
+ aria-label="Previous Article"
+ >Previous</a
+ >
+ {{- else }}
+ <div class="disabled">N/A</div>
+ {{- end }}
+ <a href="#" aria-label="to top">Top</a>
+ {{- if .NextInSection }}
+ <a
+ class="active"
+ href="{{ .NextInSection.Permalink | relURL }}"
+ aria-label="Next Article"
+ >Next</a
+ >
+ {{- else }}
+ <div class="disabled">N/A</div>
+ {{- end }}
+ </div>
+ {{ end }}
+
+ <div class="footer">
+ <p>
+ {{ if .Site.Params.theme.copyrightInFooter }}
+ &copy;
+ {{end}}
+ {{ dateFormat "2006" now }} {{ .Site.Params.author }}.
+ {{ .Site.Params.theme.footerText | markdownify }}.
+ </p>
+ <p>
+ <a href="#">
+ {{- print "redgood" -}}
+ </a>
+ by
+ <a
+ href="https://www.urjaacharya.com/"
+ aria-label="link to urja acharya site"
+ >
+ {{- print "urja" -}}
+ </a>
+ </p>
+ </div>
+</footer>
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
new file mode 100644
index 0000000..de1d306
--- /dev/null
+++ b/layouts/partials/head.html
@@ -0,0 +1,25 @@
+<head>
+ <title>
+ {{ .Site.Title }}
+ {{ if and (not .IsHome) (.Title) }}
+ - {{ .Title }}
+ {{ end }}
+ </title>
+ <meta name="theme-color" content="" />
+ <meta charset="utf-8" />
+ <meta content="width=device-width, initial-scale=1.0" name="viewport" />
+ <meta name="description" content="{{ .Site.Params.description }}" />
+ <meta name="author" content="{{ .Site.Params.author }}" />
+
+ <link rel="stylesheet" href="{{ `/css/main.css` | relURL }}" />
+ <link rel="stylesheet" href="{{ `/css/pagination.css` | relURL }}" />
+ <link rel="stylesheet" href="{{ `/css/prevnext.css` | relURL }}" />
+ <link
+ href="https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;600&display=swap"
+ rel="stylesheet"
+ />
+ <link
+ href="https://fonts.googleapis.com/css2?family=Inconsolata&display=swap"
+ rel="stylesheet"
+ />
+</head>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..7fa7621
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,37 @@
+<header>
+ <div class="header-image-container">
+ <div class="header-image">
+ <img src="{{ .Site.Params.about.profileImage | relURL }}" alt="profile image of {{ .Site.Params.author }}"/>
+ </div>
+ </div>
+ <div class="header-info">
+ {{ if not .IsHome }}
+ <a class="home-icon" href="{{ `/` | relURL }}" aria-label="home page">
+ {{ partial "homeIcon" . }}
+ </a>
+ {{ else }}
+ <h1 class="site-title">{{- .Site.Title -}}</h1>
+ {{ end }}
+
+ <p>
+ <span class="site-title home-{{ .IsHome }}">
+ {{ if not .IsHome }} {{ .Site.Title }} {{ end }}
+ </span>
+ {{ .Site.Params.about.narrative | markdownify }}
+ </p>
+
+ <div class="social-info">
+ {{ range $key, $val := .Site.Params.social }}
+ <small>
+ <a
+ class="social-link"
+ href="{{ $val }}"
+ aria-label="social media links"
+ >
+ {{- $key -}}
+ </a>
+ </small>
+ {{ end }}
+ </div>
+ </div>
+</header>
diff --git a/layouts/partials/homeIcon.html b/layouts/partials/homeIcon.html
new file mode 100644
index 0000000..e13affe
--- /dev/null
+++ b/layouts/partials/homeIcon.html
@@ -0,0 +1,15 @@
+<svg
+ aria-hidden="true"
+ focusable="false"
+ data-prefix="fas"
+ data-icon="home"
+ class="svg-inline--fa fa-home fa-w-18"
+ role="img"
+ xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 576 512"
+>
+ <path
+ fill="currentColor"
+ d="M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"
+ ></path></svg
+>
diff --git a/layouts/partials/listPage.html b/layouts/partials/listPage.html
new file mode 100644
index 0000000..5751345
--- /dev/null
+++ b/layouts/partials/listPage.html
@@ -0,0 +1,12 @@
+<div class="list-page-data">
+ <time class="list-page-date">
+ {{- dateFormat .Site.Params.theme.dateFormat .Date }}
+ </time>
+ <a
+ class="archive-table-link"
+ href="{{ .Permalink }}"
+ aria-label="{{ .Title }}"
+ >
+ {{ .Title }}
+ </a>
+</div>
diff --git a/layouts/partials/taxa.html b/layouts/partials/taxa.html
new file mode 100644
index 0000000..719d362
--- /dev/null
+++ b/layouts/partials/taxa.html
@@ -0,0 +1,19 @@
+{{ $scratch := newScratch }}
+{{ $scratch.Delete "custom" }}
+{{ range $name, $value := .taxo }}
+{{ $scratch.Add "custom" (slice (dict "Name" $name "Value" $value "Num" (len $value))) }}
+{{ end }}
+
+{{ range sort ($scratch.Get "custom") ".Num" "desc" }}
+{{ $taxaTypeName := .Name }}
+<h3>
+ {{ $taxaTypeName | humanize }}
+</h3>
+{{ $this_taxa := index $.taxo .Name }}
+<div class="taxa-container home-page-card">
+ {{ range $this_taxa.ByCount }}
+ {{ $taxaValueName := .Page.Title }}
+ <a class="taxa" href="{{ .Page.Permalink }}" aria-label="site taxonomies">{{ .Page.Title }}</a>
+ {{ end }}
+</div>
+{{ end }}
diff --git a/layouts/section/archive.html b/layouts/section/archive.html
new file mode 100644
index 0000000..686e8bb
--- /dev/null
+++ b/layouts/section/archive.html
@@ -0,0 +1,10 @@
+{{ define "main" }}
+<h1>{{ .Title }}</h1>
+{{$paginator := .Paginate (where .Site.Pages "Kind" "page").ByDate.Reverse 50 }}
+<div class="archive-table">
+ {{ range $paginator.Pages }}
+ {{ partial "listPage" . }}
+ {{ end }}
+</div>
+
+{{ end }}
diff --git a/layouts/section/pinnedPosts.html b/layouts/section/pinnedPosts.html
new file mode 100644
index 0000000..df67ed7
--- /dev/null
+++ b/layouts/section/pinnedPosts.html
@@ -0,0 +1,9 @@
+{{ define "main" }}
+<h1>{{ .Title }}</h1>
+{{$paginator := .Paginate (where .Site.Pages "Params.pinned" true).ByDate.Reverse 5 }}
+{{ range $paginator.Pages }}
+<h3><a href="{{ .Permalink }}" aria-label="{{ .Title }}">{{ .Title }}</a></h3>
+<time>{{ dateFormat .Site.Params.theme.dateFormat .Date }}</time>
+<p>{{ .Summary | truncate 200 }}</p>
+{{ end }}
+{{ end }} \ No newline at end of file
diff --git a/layouts/section/recent.html b/layouts/section/recent.html
new file mode 100644
index 0000000..3cd624e
--- /dev/null
+++ b/layouts/section/recent.html
@@ -0,0 +1,37 @@
+
+
+<!DOCTYPE html>
+<html lang="{{ .Site.LanguageCode }}">
+ <head>
+ <title>
+ Recent Posts
+ </title>
+ <meta content="width=device-width, initial-scale=1.0" name="viewport" />
+ <meta name="description" content="Recent Posts" />
+ <meta name="author" content="{{ .Site.Params.author }}" />
+
+ <link rel="stylesheet" href="{{ `/css/main.css` | relURL }}" />
+ <link rel="stylesheet" href="{{ `/css/pagination.css` | relURL }}" />
+ <link
+ href="https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;600&display=swap"
+ rel="stylesheet"
+ />
+ <link
+ href="https://fonts.googleapis.com/css2?family=Inconsolata&display=swap"
+ rel="stylesheet"
+ />
+ </head>
+ <body>
+ {{$paginator := .Paginate (where .Site.Pages "Kind" "page").ByDate.Reverse 3 }}
+ <main>
+ {{ range $paginator.Pages }}
+ {{ partial "listPage" . }}
+ {{ end }}
+ <div>
+ {{ template "_internal/pagination.html" . }}
+ </div>
+
+ </main>
+
+ </body>
+</html>
diff --git a/static/css/main.css b/static/css/main.css
new file mode 100644
index 0000000..8fd8b7f
--- /dev/null
+++ b/static/css/main.css
@@ -0,0 +1,310 @@
+:root {
+ --bg: whitesmoke;
+ --bgDark: #b3b3b3;
+ --bgLight: white;
+ --mainText: rgb(0, 0, 0);
+ --secondaryText: rgb(105, 105, 105);
+ --primary: #a3001b;
+ --highlight: #b6ffb6;
+ --shadow: black;
+}
+html {
+ font-size: 18px;
+ overflow-y: scroll;
+ background-color: var(--bg);
+ box-sizing: border-box;
+}
+body {
+ font-family: "Quicksand", sans-serif;
+ font-weight: 400;
+ max-width: 960px;
+ margin: auto;
+ font-size: 1.2em;
+ color: var(--mainText);
+ border-radius: 5px;
+ min-height: 100vh;
+ display: flex;
+ flex-direction: column;
+ padding: 0 10px;
+}
+main {
+ flex: 1;
+}
+p {
+ margin: 1em 0 0.25em 0;
+ line-height: 1.5em;
+}
+a {
+ color: var(--primary);
+ text-decoration: none;
+}
+a:hover {
+ text-decoration: underline;
+}
+header {
+ background-color: var(--primary);
+ margin-top: 5px;
+ min-height: 275px;
+ display: flex;
+ flex-direction: row;
+ justify-content: start;
+ flex-wrap: wrap;
+}
+header img {
+ height: 100%;
+}
+.header-info {
+ padding: 10px;
+ width: calc(100% - 300px);
+ display: flex;
+ flex-direction: column;
+ justify-content: space-between;
+}
+.header-info p {
+ color: var(--bg);
+ margin: 0.25em 0 1em 0;
+ line-height: 1.5em;
+ font-size: 0.9em;
+ font-weight: 300;
+}
+.header-image-container {
+ height: 275px;
+ width: 275px;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ box-sizing: border-box;
+}
+.header-image {
+ height: 230px;
+ width: 230px;
+ border-radius: 50%;
+ overflow: hidden;
+ display: flex;
+ justify-content: center;
+ box-shadow: 3px 3px 5px 3px black;
+}
+@media only screen and (max-width: 600px) {
+ header {
+ justify-content: center;
+ }
+ .header-info {
+ width: 100%;
+ }
+}
+footer {
+ margin-top: 3em;
+ margin-bottom: 5px;
+}
+.footer {
+ text-align: center;
+ background-color: var(--primary);
+ color: var(--bg);
+ padding: 1em 5px;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ min-height: 80px;
+ font-size: 0.9em;
+ font-weight: 300;
+}
+footer p {
+ margin: 0;
+}
+.footer a {
+ color: var(--bg);
+ text-decoration: underline;
+ font-weight: 600;
+}
+pre,
+code {
+ font-family: "Inconsolata", monospace;
+ font-size: 1em;
+}
+kbd {
+ background-color: var(--bgLight);
+ border-radius: 5px;
+ padding: 4px;
+ margin: 0 3px;
+}
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ font-weight: 600;
+ margin: 1em 0 0.5em 0;
+}
+h1 {
+ font-size: 2.1em;
+}
+h2 {
+ font-size: 1.9em;
+}
+h3 {
+ font-size: 1.7em;
+}
+h4 {
+ font-size: 1.5em;
+}
+h5 {
+ font-size: 1.3em;
+}
+h6 {
+ font-size: 1.1em;
+}
+.site-title {
+ font-size: 2.5em;
+ color: var(--bg);
+ margin: 0;
+ text-shadow: 3px 3px var(--shadow);
+}
+.site-title.home-false {
+ display: block;
+ font-size: 1.5em;
+ font-weight: 600;
+ margin-bottom: 0.5em;
+ text-decoration: underline;
+ text-shadow: 2px 2px var(--shadow);
+}
+.front-matter {
+ border-bottom: solid 3px var(--primary);
+}
+pre {
+ padding: 15px;
+ border-radius: 5px;
+ border: solid 1px;
+ background-color: #272822;
+ color: white;
+}
+blockquote {
+ border-left: solid 5px var(--secondaryText);
+ padding: 0.5em;
+ background-color: var(--bgLight);
+ border-radius: 2px;
+ box-shadow: 1px 1px 4px 1px var(--shadow);
+}
+blockquote p {
+ margin: 0;
+}
+mark {
+ background-color: var(--highlight);
+}
+table {
+ border-collapse: collapse;
+ text-align: left;
+}
+th,
+td {
+ border: solid 1px var(--primary);
+ padding: 5px;
+}
+svg {
+ height: 1em;
+ width: 1em;
+}
+.home-icon {
+ font-size: 1.5em;
+ color: var(--bg);
+ border-radius: 5px;
+}
+.home-icon svg {
+ padding: 0.25em;
+ border-radius: 5px;
+}
+.home-icon svg {
+ box-shadow: inset 0 0 2px var(--shadow);
+ transition: box-shadow 0.1s;
+}
+.home-icon svg:hover {
+ box-shadow: inset 0 0 6px var(--shadow);
+}
+.home-icon svg:active {
+ box-shadow: inset 0 0 10px var(--shadow);
+}
+.social-link {
+ color: var(--bg);
+ margin-right: 0.25em;
+ font-weight: 600;
+}
+.social-link::before {
+ content: "@";
+ font-family: "Inconsolata", monospace;
+}
+.archive-table {
+ width: 100%;
+}
+.home-page-card {
+ background-color: var(--bgLight) !important;
+ padding: 15px;
+ border-radius: 5px;
+ box-shadow: 1px 1px 2px 1px var(--shadow);
+}
+.home-page-card > p:last-child {
+ margin-bottom: 0;
+}
+.home-page-card > p:first-child {
+ margin-top: 0;
+}
+.home-page-card-links {
+ margin-top: 1em;
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ display: inline-block;
+}
+.home-page-card-links a {
+ background-color: var(--primary);
+ color: var(--bg);
+ margin-right: 10px;
+ padding: 5px 5px;
+ border-radius: 5px;
+ box-shadow: 3px 3px 5px 1px var(--shadow);
+ transition: box-shadow 0.2s;
+}
+.home-page-card-links > a:hover {
+ box-shadow: 1px 1px 5px 1px var(--shadow);
+ text-decoration: none;
+}
+.home-page-card-links > a:active {
+ box-shadow: 0px 0px 1px 1px var(--shadow);
+}
+.taxa-container {
+ display: flex;
+ flex-wrap: wrap;
+ padding: 5px 11px;
+}
+.taxa::before {
+ content: "#";
+}
+.taxa {
+ margin: 0.4em 0.4em 0.4em 0;
+ padding: 4px;
+}
+.prev-next {
+ display: flex;
+ flex-direction: row;
+ justify-content: space-around;
+ margin-bottom: 3em;
+}
+.prev-next > div,
+.prev-next > a {
+ font-size: 1.2em;
+ padding: 0 0.5em;
+ border-radius: 5px;
+}
+.list-page-data {
+ display: flex;
+ margin-bottom: 0.5em;
+}
+.list-page-date {
+ text-align: right;
+ padding-right: 1em;
+ min-width: 5em;
+}
+main img {
+ max-width: 100%;
+ margin: 1em auto;
+}
diff --git a/static/css/pagination.css b/static/css/pagination.css
new file mode 100644
index 0000000..85311bb
--- /dev/null
+++ b/static/css/pagination.css
@@ -0,0 +1,33 @@
+ul.pagination {
+ display: flex;
+ flex-direction: row;
+ justify-content: center;
+ align-items: center;
+ list-style-type: none;
+}
+li.page-item {
+ padding: 10px;
+}
+li.page-item {
+ border-top: 1px solid var(--primary);
+ border-bottom: 1px solid var(--primary);
+ border-left: 1px solid var(--primary);
+ background-color: var(--bg);
+}
+li.page-item.disabled a {
+ color: var(--inactiveColor);
+}
+li.page-item.active {
+ background-color: var(--primary);
+}
+li.page-item.active a {
+ color: var(--bg);
+ font-weight: 600;
+}
+li.page-item:first-child {
+ border-radius: 10px 0 0 10px;
+}
+li.page-item:last-child {
+ border-radius: 0 10px 10px 0;
+ border-right: 1px solid var(--primary);
+}
diff --git a/theme.toml b/theme.toml
new file mode 100644
index 0000000..ad92e1e
--- /dev/null
+++ b/theme.toml
@@ -0,0 +1,15 @@
+# theme.toml template for a Hugo theme
+# See https://github.com/gohugoio/hugoThemes#themetoml for an example
+
+name = "redgood"
+license = "MIT"
+licenselink = "https://github.com/yourname/yourtheme/blob/master/LICENSE"
+description = "Clean minimal javascript-less theme for blogs."
+homepage = "http://example.com/"
+tags = ["personal", "blog",]
+features = ["clean", "responsive", "minimal", "no javascript"]
+min_version = "0.71.0"
+
+[author]
+ name = "Urja Acharya"
+ homepage = "https://www.urjaacharya.com/"