From 1903b933b3bb473f171fc743d769af28f6186abe Mon Sep 17 00:00:00 2001
From: Darshan Baral
Date: Sun, 5 Nov 2023 11:42:32 -0800
Subject: [PATCH 01/11] moved content outside
---
.../content => content}/blog/_index.md | 0
content/blog/markdown_syntax.md | 147 ++++++++++++
.../content => content}/blog/post_2.md | 0
.../content => content}/blog/post_3.md | 0
exampleSite/config.toml | 213 ------------------
exampleSite/content/blog/post_1.md | 16 --
6 files changed, 147 insertions(+), 229 deletions(-)
rename {exampleSite/content => content}/blog/_index.md (100%)
create mode 100644 content/blog/markdown_syntax.md
rename {exampleSite/content => content}/blog/post_2.md (100%)
rename {exampleSite/content => content}/blog/post_3.md (100%)
delete mode 100644 exampleSite/config.toml
delete mode 100644 exampleSite/content/blog/post_1.md
diff --git a/exampleSite/content/blog/_index.md b/content/blog/_index.md
similarity index 100%
rename from exampleSite/content/blog/_index.md
rename to content/blog/_index.md
diff --git a/content/blog/markdown_syntax.md b/content/blog/markdown_syntax.md
new file mode 100644
index 0000000..66092d9
--- /dev/null
+++ b/content/blog/markdown_syntax.md
@@ -0,0 +1,147 @@
++++
+author = "Darshan Baral"
+title = "Test Page"
+date = "2022-11-19"
+description = "Sample article showcasing formatting for HTML elements."
+tags = [
+ "markdown",
+ "css",
+ "html",
+ "themes",
+]
+categories = [
+ "themes",
+ "syntax",
+]
++++
+
+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.
+
+
+## Headings
+
+The following HTML `
`—`
` elements represent five levels of section headings.
+
+# H1
+## H2
+### H3
+#### H4
+##### H5
+
+## 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? Here is a [hyperlink](#). 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.
+> — Rob Pike[^1]
+
+
+[^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 | Markdown | In | Table |
+| ---------- | --------- | ----------------- | ---------- |
+| *italics* | **bold** | ~~strikethrough~~ | `code` |
+
+## Code Blocks
+
+#### Code block with backticks
+
+```
+html
+
+
+
+
+ Example HTML5 Document
+
+
+
Test
+
+
+```
+#### Code block indented with four spaces
+
+
+
+
+
+ Example HTML5 Document
+
+
+
Test
+
+
+
+#### Code block with Hugo's internal highlight shortcode
+{{< highlight html >}}
+
+
+
+
+ Example HTML5 Document
+
+
+
Test
+
+
+{{< /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
+ 1. First Sub-item
+ * primary
+ * secondary
+ 2. Second Sub-item
+* Item 2
+
+## Other Elements — abbr, sub, sup, kbd, mark
+
+GIF is a bitmap image format.
+
+H2O
+
+Xn + Yn = Zn
+
+Press CTRL+ALT+Delete to end the session.
+
+Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures.
+
diff --git a/exampleSite/content/blog/post_2.md b/content/blog/post_2.md
similarity index 100%
rename from exampleSite/content/blog/post_2.md
rename to content/blog/post_2.md
diff --git a/exampleSite/content/blog/post_3.md b/content/blog/post_3.md
similarity index 100%
rename from exampleSite/content/blog/post_3.md
rename to content/blog/post_3.md
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
deleted file mode 100644
index 0ddfb9a..0000000
--- a/exampleSite/config.toml
+++ /dev/null
@@ -1,213 +0,0 @@
-baseURL = "https://www.example.org/"
-languageCode = "en-us"
-theme = "aafu"
-
-[build]
- writeStats = true
-
-[params]
- title = "Aafu theme"
- author = "Darshan Baral"
- description = "Website title"
- copyright = "short copyright message"
-
- [params.theme]
- # Available themes are 'light', 'dark', 'ocean', and 'pinkish'
- mainTheme = "ocean"
- # setting false below will hide 'aafu by darshan' displayed under the profile pic
- showAttribute = true
- singlePage = false
-
- [params.favicons]
- use = true
- metas = '''
-
-
-
-
-
-
- '''
-
- # Profile section
- [params.profile]
- name = "First Last, Abbr."
- tagline = "Title"
- location = "City Name, ST"
- photo = "profile.jpg"
-
- # Section for links to social websites
- [params.social]
- title = "Links"
-
- [[params.social.list]]
- icon = "fab fa-linkedin-in"
- url = "#"
- title = "LinkedIn"
- [[params.social.list]]
- icon = "fab fa-stack-overflow"
- url = "#"
- title = "StackOverflow"
- [[params.social.list]]
- icon = "fab fa-github"
- url = "#"
- title = "GitHub"
- [[params.social.list]]
- icon = "fab fa-twitter"
- url = "#"
- title = "Twitter"
- [[params.social.list]]
- icon = "fab fa-orcid"
- url = "#"
- title = "Orcid"
- [[params.social.list]]
- icon = "ai ai-google-scholar"
- url = "#"
- title = "Google Scholar"
- [[params.social.list]]
- icon = "fab fa-researchgate"
- url = "#"
- title = "ResearchGate"
-
- #Specify what is showin in the Accordion
- [[params.showInAccordion]]
- item = "aboutme"
- expand = true # true for the section that is initially expanded
- [[params.showInAccordion]]
- item = "experience"
- [[params.showInAccordion]]
- item = "education"
- [[params.showInAccordion]]
- item = "publication"
- [[params.showInAccordion]]
- item = "project"
- [[params.showInAccordion]]
- item = "skill"
- [[params.showInAccordion]]
- item = "hobby"
-
- [params.aboutme]
- title = "About Me"
- icon = "fas fa-user"
- description = "This is a demo of the `aafu` theme. It has `light`, `dark`, `ocean`, and `pinkish` themes."
-
- # Experience section
- [params.experience]
- title = "Experiences"
- icon = "fas fa-briefcase"
-
- [[params.experience.list]]
- position = "Job Title"
- dates = "2019 - *Present*"
- company = "Company Name"
- details = "Printed from desktop. Sent [emails](#). Called people using telephone. Drank water from office cooler. Ate donuts on people's birthdays."
- [[params.experience.list]]
- position = "Job Title"
- dates = "2018 - 2019"
- url = "#"
- company = "Company Name"
-
- # Education section
- [params.education]
- title = "Education"
- icon = "fas fa-graduation-cap"
-
- [[params.education.list]]
- degree = "Ph.D. in Subject"
- college = "University of State-City"
- dates = "2013 - 2018"
- thesis_title = "Effect of humans on other humans: a study of human behavior."
- thesis_url = "#"
- [[params.education.list]]
- degree = "M.S. in Subject"
- college = "University of State-City"
- dates = "2013 - 2018"
- thesis_title = "Effect of humans on other humans: a study of human behavior."
- thesis_url = "#"
- [[params.education.list]]
- degree = "B.S. in Subject"
- college = "University of State-City"
- dates = "2004 - 2009"
-
- # Publication section
- [params.publication]
- title = "Publications"
- icon = "fas fa-book"
- #The order below determines the order in which the items appear in "Publications" section
- format = ["date", "authors", "title", "journal"]
- #If you don't want to group publications, comment the line below by adding # at the beginning
- types = ["Journal Articles", "Proceedings"]
-
- [[params.publication.list]]
- title = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
- authors = "F Last, F Second, P secondary"
- date = "2018"
- journal = "Journal of Field 52 (16), 9033-9044"
- url = "#"
- type = "Journal Articles"
-
- [[params.publication.list]]
- title = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
- authors = "F Last, F Second, P secondary"
- date = "2018"
- journal = "Journal of Field 52 (16), 9033-9044"
- url = "#"
- type = "Journal Articles"
-
- [[params.publication.list]]
- title = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
- authors = "F Last, F Second, P secondary"
- date = "2018"
- journal = "Journal of Field 52 (16), 9033-9044"
- url = "#"
- type = "Proceedings"
-
- # Project section
- [params.project]
- title = "Projects"
- icon = "fas fa-project-diagram"
-
- [[params.project.list]]
- title = "Project 1"
- url = "#"
- description = "Description of the project"
- [[params.project.list]]
- title = "Project 2"
- url = "#"
- description = "Description of the project"
- [[params.project.list]]
- title = "Project 3"
- url = "#"
- description = "Description of the project"
- [[params.project.list]]
- title = "Project 4"
- url = "#"
- description = "Description of the project"
-
- # Skill section
- [params.skill]
- title = "Skills"
- panelId = "skill-panel"
- icon = "fas fa-cogs"
-
- [[params.skill.list]]
- skill = "Skill 1, Skill 2"
- skillrating = 90
- [[params.skill.list]]
- skill = "Skill 3"
- skillrating = 80
- [[params.skill.list]]
- skill = "Skill 4"
- skillrating = 50
-
- # Hobby section
- [params.hobby]
- title = "Hobbies"
- icon = "fas fa-gamepad"
-
- [[params.hobby.list]]
- hobby = "Cooking"
- [[params.hobby.list]]
- hobby = "Hiking"
- [[params.hobby.list]]
- hobby = "Baking"
\ No newline at end of file
diff --git a/exampleSite/content/blog/post_1.md b/exampleSite/content/blog/post_1.md
deleted file mode 100644
index cdcc4db..0000000
--- a/exampleSite/content/blog/post_1.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-title: "vestibulum vitae dictum aliqua phasellus magnis at"
-date: 2018-05-23
-tags: ["aliquam incididunt", "notes", "velit"]
-categories: ["aliquam auctor", "do"]
-description: "vulputate sem sapien felis ullamcorper risus mi eu metus integer posuere fermentum"
-draft: false
----
-
-# eu velit magna aliqua hendrerit
-
-Cursus non odio nam suspendisse mollis tempus tincidunt, cursus praesent facilisi elementum etiam rhoncus tempor. At penatibus ultrices nulla phasellus mi quis luctus felis ultricies. Urna tempus ac consequat sem sed curabitur justo, quam suspendisse cursus aenean integer tellus consectetur. Sed bibendum hendrerit volutpat fames libero nisl dui, nunc vivamus augue posuere luctus scelerisque ultrices. Do pretium consectetur vestibulum lacinia eget do semper, varius viverra scelerisque madssa semper venenatis cras. Ac pharetra interdum rhoncus eleifend libero bolestie ligula justo.
-
-Malesuada vel arcu odio scelerisque tellus adipiscing congue vitae erat leo commodo. Rhoncus amet cras curabitur non augue aenean eu nibh nisl orci lorem. Augue rhoncus euismod leo nam netus viverra interdum lectus do quam. Consequat dolor metus urna ultricies mi aliquet dolore dictum. Facilisi facilisis et eiusmod mus orci consectetur dolore ultricies placerat porttitor sed. Est labore hendrerit id malesuada interdum quisque mollis mattis ut.
-
-Aliqua congue egestas bibendum pretium semper id vulputate eleifend lorem vestibulum auctor. Euismod eleifend eiusmod at vel suspendisse donec commodo sit volutpat do. Iaculis accimsan ipsum suscipit labore mattis sollicitudin sit eiusmod turpis. Nisi pulvinar vulputate scelerisque feugiat posuere a dui faucibus. Nam ultrices magnis netus sed faucibus aliqua interdum laoreet consectetur eleifend. Malesuada elit enim ullamcorper commodo eget pretium penatibus vitae vestibulum iaculis.
\ No newline at end of file
From 75622ad53566ccf95d22116d639fa7a69b43daf8 Mon Sep 17 00:00:00 2001
From: Darshan Baral
Date: Sun, 5 Nov 2023 11:42:43 -0800
Subject: [PATCH 02/11] updated packages
---
package.json | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/package.json b/package.json
index 75c78e9..deda697 100644
--- a/package.json
+++ b/package.json
@@ -15,13 +15,13 @@
"license": "MIT",
"devDependencies": {
"@fullhuman/postcss-purgecss": "^5.0.0",
- "postcss-import": "^15.0.0",
- "tailwindcss": "^3.2.4",
- "@tailwindcss/forms": "^0.5.3",
- "@tailwindcss/typography": "^0.5.8",
- "autoprefixer": "^10.4.13",
- "postcss": "^8.4.19",
- "postcss-cli": "^10.0.0"
+ "postcss-import": "^15.1.0",
+ "tailwindcss": "^3.3.5",
+ "@tailwindcss/forms": "^0.5.6",
+ "@tailwindcss/typography": "^0.5.10",
+ "autoprefixer": "^10.4.16",
+ "postcss": "^8.4.31",
+ "postcss-cli": "^10.1.0"
},
"dependencies": {}
}
From fcd0054acc2d0fbfe35752ead6bc15356af6a60a Mon Sep 17 00:00:00 2001
From: Darshan Baral
Date: Sun, 5 Nov 2023 11:45:01 -0800
Subject: [PATCH 03/11] added config
---
config.toml | 210 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 210 insertions(+)
create mode 100644 config.toml
diff --git a/config.toml b/config.toml
new file mode 100644
index 0000000..25c8da7
--- /dev/null
+++ b/config.toml
@@ -0,0 +1,210 @@
+baseURL = "/"
+languageCode = "en-us"
+
+
+[build]
+ writeStats = true
+
+
+[params]
+ title = "Aafu theme"
+ author = "Darshan Baral"
+ description = "Website title"
+ copyright = "powered by [hugo](https://gohugo.io/) & deployed on [netlify](https://www.netlify.com/)"
+
+ [params.theme]
+ mainTheme = "dark"
+ showAttribute = true # setting false below will hide 'aafu by darshan' displayed under the profile pic
+ singlePage = false
+
+ [params.favicons]
+ use = true
+ metas = '''
+
+
+
+
+
+
+ '''
+
+ # Profile section
+ [params.profile]
+ name = "First Last, Abbr."
+ tagline = "Title"
+ location = "City Name, ST"
+ photo = "profile.jpg"
+
+ # Section for links to social websites
+ [params.social]
+ title = "Links"
+
+ [[params.social.list]]
+ icon = "fab fa-linkedin-in"
+ url = "#"
+ title = "LinkedIn"
+ [[params.social.list]]
+ icon = "fab fa-stack-overflow"
+ url = "#"
+ title = "StackOverflow"
+ [[params.social.list]]
+ icon = "fab fa-github"
+ url = "#"
+ title = "GitHub"
+ [[params.social.list]]
+ icon = "fab fa-twitter"
+ url = "#"
+ title = "Twitter"
+ [[params.social.list]]
+ icon = "fab fa-orcid"
+ url = "#"
+ title = "Orcid"
+ [[params.social.list]]
+ icon = "ai ai-google-scholar"
+ url = "#"
+ title = "Google Scholar"
+ [[params.social.list]]
+ icon = "fab fa-researchgate"
+ url = "#"
+ title = "ResearchGate"
+
+ #Specify what is showin in the Accordion
+ [[params.showInAccordion]]
+ item = "aboutme"
+ expand = true # true for the section that is initially expanded
+ [[params.showInAccordion]]
+ item = "experience"
+ [[params.showInAccordion]]
+ item = "education"
+ [[params.showInAccordion]]
+ item = "publication"
+ [[params.showInAccordion]]
+ item = "project"
+ [[params.showInAccordion]]
+ item = "skill"
+ [[params.showInAccordion]]
+ item = "hobby"
+
+ [params.aboutme]
+ title = "About Me"
+ icon = "fas fa-user"
+ description = "This is a demo of the `aafu` theme. It has `light` and `dark` theme."
+
+ # Experience section
+ [params.experience]
+ title = "Experiences"
+ icon = "fas fa-briefcase"
+
+ [[params.experience.list]]
+ position = "Job Title"
+ dates = "2019 - *Present*"
+ company = "Company Name"
+ details = "Printed from desktop. Sent [emails](#). Called people using telephone. Drank water from office cooler. Ate donuts on people's birthdays."
+ [[params.experience.list]]
+ position = "Job Title"
+ dates = "2018 - 2019"
+ url = "#"
+ company = "Company Name"
+
+ # Education section
+ [params.education]
+ title = "Education"
+ icon = "fas fa-graduation-cap"
+
+ [[params.education.list]]
+ degree = "Ph.D. in Subject"
+ college = "University of State-City"
+ dates = "2013 - 2018"
+ thesis_title = "Effect of humans on other humans: a study of human behavior."
+ thesis_url = "#"
+ [[params.education.list]]
+ degree = "M.S. in Subject"
+ college = "University of State-City"
+ dates = "2013 - 2018"
+ thesis_title = "Effect of humans on other humans: a study of human behavior."
+ thesis_url = "#"
+ [[params.education.list]]
+ degree = "B.S. in Subject"
+ college = "University of State-City"
+ dates = "2004 - 2009"
+
+ # Publication section
+ [params.publication]
+ title = "Publications"
+ icon = "fas fa-book"
+ format = ["date", "title", "authors", "journal"]
+ types = ["Journal Articles", "Proceedings"]
+
+ [[params.publication.list]]
+ title = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
+ authors = "F Last, F Second, P secondary"
+ date = "2018"
+ journal = "Journal of Field 52 (16), 9033-9044"
+ url = "#"
+ type = "Journal Articles"
+
+ [[params.publication.list]]
+ title = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
+ authors = "F Last, F Second, P secondary"
+ date = "2018"
+ journal = "Journal of Field 52 (16), 9033-9044"
+ url = "#"
+ type = "Journal Articles"
+
+ [[params.publication.list]]
+ title = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
+ authors = "F Last, F Second, P secondary"
+ date = "2018"
+ journal = "Journal of Field 52 (16), 9033-9044"
+ url = "#"
+ type = "Proceedings"
+
+ # Project section
+ [params.project]
+ title = "Projects"
+ icon = "fas fa-project-diagram"
+
+ [[params.project.list]]
+ title = "Project 1"
+ url = "#"
+ description = "Description of the project"
+ [[params.project.list]]
+ title = "Project 2"
+ url = "#"
+ description = "Description of the project"
+ [[params.project.list]]
+ title = "Project 3"
+ url = "#"
+ description = "Description of the project"
+ [[params.project.list]]
+ title = "Project 4"
+ url = "#"
+ description = "Description of the project"
+
+ # Skill section
+ [params.skill]
+ title = "Skills"
+ panelId = "skill-panel"
+ icon = "fas fa-cogs"
+
+ [[params.skill.list]]
+ skill = "Skill 1, Skill 2"
+ skillrating = 90
+ [[params.skill.list]]
+ skill = "Skill 3"
+ skillrating = 80
+ [[params.skill.list]]
+ skill = "Skill 4"
+ skillrating = 50
+
+ # Hobby section
+ [params.hobby]
+ title = "Hobbies"
+ icon = "fas fa-gamepad"
+
+ [[params.hobby.list]]
+ hobby = "Cooking"
+ [[params.hobby.list]]
+ hobby = "Hiking"
+ [[params.hobby.list]]
+ hobby = "Baking"
\ No newline at end of file
From 1bf240b2ec722fd15c1fb6467c448adc5143e429 Mon Sep 17 00:00:00 2001
From: Darshan Baral
Date: Sun, 10 Dec 2023 11:19:40 -0800
Subject: [PATCH 04/11] not using as theme anymore
---
.gitignore | 3 +
.hugo_build.lock | 0
assets/postcss.config.js | 25 -
config.toml | 210 ---
config.yaml | 168 ++
hugo.json | 30 +
hugo_stats.json | 230 +++
layouts/partials/head.html | 29 +-
package-lock.json | 661 +++++---
postcss.config.js | 44 +
...s_a995b36d9961143c482b057158971e8c.content | 1409 -----------------
....css_a995b36d9961143c482b057158971e8c.json | 1 -
static/js/accordion.js | 2 +
.../tailwind.config.js => tailwind.config.js | 0
theme.toml | 2 +-
15 files changed, 893 insertions(+), 1921 deletions(-)
create mode 100644 .hugo_build.lock
delete mode 100644 assets/postcss.config.js
delete mode 100644 config.toml
create mode 100644 config.yaml
create mode 100644 hugo.json
create mode 100644 hugo_stats.json
create mode 100644 postcss.config.js
delete mode 100644 resources/main.css_a995b36d9961143c482b057158971e8c.content
delete mode 100644 resources/main.css_a995b36d9961143c482b057158971e8c.json
rename assets/tailwind.config.js => tailwind.config.js (100%)
diff --git a/.gitignore b/.gitignore
index 5b04c74..6894c83 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,5 @@
.idea
node_modules/
+resources
+assets/style.css
+*.toml_
\ No newline at end of file
diff --git a/.hugo_build.lock b/.hugo_build.lock
new file mode 100644
index 0000000..e69de29
diff --git a/assets/postcss.config.js b/assets/postcss.config.js
deleted file mode 100644
index 74d38db..0000000
--- a/assets/postcss.config.js
+++ /dev/null
@@ -1,25 +0,0 @@
-const themeDir = __dirname + './../';
-
-const purgecss = require('@fullhuman/postcss-purgecss')({
- // see https://gohugo.io/hugo-pipes/postprocess/#css-purging-with-postcss
- content: [
- './hugo_stats.json',
- themeDir + '/hugo_stats.json',
- 'exampleSite/hugo_stats.json',
- ],
- safelist : [ /type/ ],
- defaultExtractor: (content) => {
- let els = JSON.parse(content).htmlElements;
- return els.tags.concat(els.classes, els.ids);
- }
-})
-
-module.exports = {
- plugins: [
- require('tailwindcss')(themeDir + '/assets/tailwind.config.js'),
- require('autoprefixer')({
- path: [themeDir]
- }),
- ...(process.env.HUGO_ENVIRONMENT === 'production' ? [purgecss] : [])
- ]
-}
diff --git a/config.toml b/config.toml
deleted file mode 100644
index 25c8da7..0000000
--- a/config.toml
+++ /dev/null
@@ -1,210 +0,0 @@
-baseURL = "/"
-languageCode = "en-us"
-
-
-[build]
- writeStats = true
-
-
-[params]
- title = "Aafu theme"
- author = "Darshan Baral"
- description = "Website title"
- copyright = "powered by [hugo](https://gohugo.io/) & deployed on [netlify](https://www.netlify.com/)"
-
- [params.theme]
- mainTheme = "dark"
- showAttribute = true # setting false below will hide 'aafu by darshan' displayed under the profile pic
- singlePage = false
-
- [params.favicons]
- use = true
- metas = '''
-
-
-
-
-
-
- '''
-
- # Profile section
- [params.profile]
- name = "First Last, Abbr."
- tagline = "Title"
- location = "City Name, ST"
- photo = "profile.jpg"
-
- # Section for links to social websites
- [params.social]
- title = "Links"
-
- [[params.social.list]]
- icon = "fab fa-linkedin-in"
- url = "#"
- title = "LinkedIn"
- [[params.social.list]]
- icon = "fab fa-stack-overflow"
- url = "#"
- title = "StackOverflow"
- [[params.social.list]]
- icon = "fab fa-github"
- url = "#"
- title = "GitHub"
- [[params.social.list]]
- icon = "fab fa-twitter"
- url = "#"
- title = "Twitter"
- [[params.social.list]]
- icon = "fab fa-orcid"
- url = "#"
- title = "Orcid"
- [[params.social.list]]
- icon = "ai ai-google-scholar"
- url = "#"
- title = "Google Scholar"
- [[params.social.list]]
- icon = "fab fa-researchgate"
- url = "#"
- title = "ResearchGate"
-
- #Specify what is showin in the Accordion
- [[params.showInAccordion]]
- item = "aboutme"
- expand = true # true for the section that is initially expanded
- [[params.showInAccordion]]
- item = "experience"
- [[params.showInAccordion]]
- item = "education"
- [[params.showInAccordion]]
- item = "publication"
- [[params.showInAccordion]]
- item = "project"
- [[params.showInAccordion]]
- item = "skill"
- [[params.showInAccordion]]
- item = "hobby"
-
- [params.aboutme]
- title = "About Me"
- icon = "fas fa-user"
- description = "This is a demo of the `aafu` theme. It has `light` and `dark` theme."
-
- # Experience section
- [params.experience]
- title = "Experiences"
- icon = "fas fa-briefcase"
-
- [[params.experience.list]]
- position = "Job Title"
- dates = "2019 - *Present*"
- company = "Company Name"
- details = "Printed from desktop. Sent [emails](#). Called people using telephone. Drank water from office cooler. Ate donuts on people's birthdays."
- [[params.experience.list]]
- position = "Job Title"
- dates = "2018 - 2019"
- url = "#"
- company = "Company Name"
-
- # Education section
- [params.education]
- title = "Education"
- icon = "fas fa-graduation-cap"
-
- [[params.education.list]]
- degree = "Ph.D. in Subject"
- college = "University of State-City"
- dates = "2013 - 2018"
- thesis_title = "Effect of humans on other humans: a study of human behavior."
- thesis_url = "#"
- [[params.education.list]]
- degree = "M.S. in Subject"
- college = "University of State-City"
- dates = "2013 - 2018"
- thesis_title = "Effect of humans on other humans: a study of human behavior."
- thesis_url = "#"
- [[params.education.list]]
- degree = "B.S. in Subject"
- college = "University of State-City"
- dates = "2004 - 2009"
-
- # Publication section
- [params.publication]
- title = "Publications"
- icon = "fas fa-book"
- format = ["date", "title", "authors", "journal"]
- types = ["Journal Articles", "Proceedings"]
-
- [[params.publication.list]]
- title = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
- authors = "F Last, F Second, P secondary"
- date = "2018"
- journal = "Journal of Field 52 (16), 9033-9044"
- url = "#"
- type = "Journal Articles"
-
- [[params.publication.list]]
- title = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
- authors = "F Last, F Second, P secondary"
- date = "2018"
- journal = "Journal of Field 52 (16), 9033-9044"
- url = "#"
- type = "Journal Articles"
-
- [[params.publication.list]]
- title = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
- authors = "F Last, F Second, P secondary"
- date = "2018"
- journal = "Journal of Field 52 (16), 9033-9044"
- url = "#"
- type = "Proceedings"
-
- # Project section
- [params.project]
- title = "Projects"
- icon = "fas fa-project-diagram"
-
- [[params.project.list]]
- title = "Project 1"
- url = "#"
- description = "Description of the project"
- [[params.project.list]]
- title = "Project 2"
- url = "#"
- description = "Description of the project"
- [[params.project.list]]
- title = "Project 3"
- url = "#"
- description = "Description of the project"
- [[params.project.list]]
- title = "Project 4"
- url = "#"
- description = "Description of the project"
-
- # Skill section
- [params.skill]
- title = "Skills"
- panelId = "skill-panel"
- icon = "fas fa-cogs"
-
- [[params.skill.list]]
- skill = "Skill 1, Skill 2"
- skillrating = 90
- [[params.skill.list]]
- skill = "Skill 3"
- skillrating = 80
- [[params.skill.list]]
- skill = "Skill 4"
- skillrating = 50
-
- # Hobby section
- [params.hobby]
- title = "Hobbies"
- icon = "fas fa-gamepad"
-
- [[params.hobby.list]]
- hobby = "Cooking"
- [[params.hobby.list]]
- hobby = "Hiking"
- [[params.hobby.list]]
- hobby = "Baking"
\ No newline at end of file
diff --git a/config.yaml b/config.yaml
new file mode 100644
index 0000000..bfef29f
--- /dev/null
+++ b/config.yaml
@@ -0,0 +1,168 @@
+baseURL: /
+languageCode: en-us
+build:
+ writeStats: true
+params:
+ title: Aafu theme
+ author: Darshan Baral
+ description: Website title
+ copyright: >-
+ powered by [hugo](https://gohugo.io/) & deployed on
+ [netlify](https://www.netlify.com/)
+ theme:
+ mainTheme: dark
+ showAttribute: true
+ singlePage: false
+ favicons:
+ use: true
+ metas: |2-
+
+
+
+
+
+
+
+ profile:
+ name: "First Last, Abbr."
+ tagline: Title
+ location: "City Name, ST"
+ photo: profile.jpg
+ social:
+ title: Links
+ list:
+ - icon: fab fa-linkedin-in
+ url: "#"
+ title: LinkedIn
+ - icon: fab fa-stack-overflow
+ url: "#"
+ title: StackOverflow
+ - icon: fab fa-github
+ url: "#"
+ title: GitHub
+ - icon: fab fa-twitter
+ url: "#"
+ title: Twitter
+ - icon: fab fa-orcid
+ url: "#"
+ title: Orcid
+ - icon: ai ai-google-scholar
+ url: "#"
+ title: Google Scholar
+ - icon: fab fa-researchgate
+ url: "#"
+ title: ResearchGate
+ showInAccordion:
+ - item: aboutme
+ expand: true
+ - item: experience
+ - item: education
+ - item: publication
+ - item: project
+ - item: skill
+ - item: hobby
+ aboutme:
+ title: About Me
+ icon: fas fa-user
+ description: This is a demo of the `aafu` theme. It has `light` and `dark` theme.
+ experience:
+ title: Experiences
+ icon: fas fa-briefcase
+ list:
+ - position: Job Title
+ dates: 2019 - *Present*
+ company: Company Name
+ details: >-
+ Printed from desktop. Sent [emails](#). Called people using telephone.
+ Drank water from office cooler. Ate donuts on people's birthdays.
+ - position: Job Title
+ dates: 2018 - 2019
+ url: "#"
+ company: Company Name
+ education:
+ title: Education
+ icon: fas fa-graduation-cap
+ list:
+ - degree: Ph.D. in Subject
+ college: University of State-City
+ dates: 2013 - 2018
+ thesis_title: "Effect of humans on other humans: a study of human behavior."
+ thesis_url: "#"
+ - degree: M.S. in Subject
+ college: University of State-City
+ dates: 2013 - 2018
+ thesis_title: "Effect of humans on other humans: a study of human behavior."
+ thesis_url: "#"
+ - degree: B.S. in Subject
+ college: University of State-City
+ dates: 2004 - 2009
+ publication:
+ title: Publications
+ icon: fas fa-book
+ format:
+ - date
+ - title
+ - authors
+ - journal
+ types:
+ - Journal Articles
+ - Proceedings
+ list:
+ - title: >-
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
+ eiusmod tempor incididunt ut labore et dolore magna aliqua.
+ authors: "F Last, F Second, P secondary"
+ date: "2018"
+ journal: "Journal of Field 52 (16), 9033-9044"
+ url: "#"
+ type: Journal Articles
+ - title: >-
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
+ eiusmod tempor incididunt ut labore et dolore magna aliqua.
+ authors: "F Last, F Second, P secondary"
+ date: "2018"
+ journal: "Journal of Field 52 (16), 9033-9044"
+ url: "#"
+ type: Journal Articles
+ - title: >-
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
+ eiusmod tempor incididunt ut labore et dolore magna aliqua.
+ authors: "F Last, F Second, P secondary"
+ date: "2018"
+ journal: "Journal of Field 52 (16), 9033-9044"
+ url: "#"
+ type: Proceedings
+ project:
+ title: Projects
+ icon: fas fa-project-diagram
+ list:
+ - title: Project 1
+ url: "#"
+ description: Description of the project
+ - title: Project 2
+ url: "#"
+ description: Description of the project
+ - title: Project 3
+ url: "#"
+ description: Description of the project
+ - title: Project 4
+ url: "#"
+ description: Description of the project
+ skill:
+ title: Skills
+ panelId: skill-panel
+ icon: fas fa-cogs
+ list:
+ - skill: "Skill 1, Skill 2"
+ skillrating: 90
+ - skill: Skill 3
+ skillrating: 80
+ - skill: Skill 4
+ skillrating: 50
+ hobby:
+ title: Hobbies
+ icon: fas fa-gamepad
+ list:
+ - hobby: Cooking
+ - hobby: Hiking
+ - hobby: Baking
diff --git a/hugo.json b/hugo.json
new file mode 100644
index 0000000..6517989
--- /dev/null
+++ b/hugo.json
@@ -0,0 +1,30 @@
+{
+ "build": {
+ "buildStats": {
+ "disableClasses": false,
+ "disableIDs": false,
+ "disableTags": false,
+ "enable": false
+ },
+ "cacheBusters": [
+ {
+ "source": "assets/.*\\.(js|ts|jsx|tsx)",
+ "target": "(js|scripts|javascript)"
+ },
+ {
+ "source": "assets/.*\\.(css|sass|scss)$",
+ "target": "(css|styles|scss|sass)"
+ },
+ {
+ "source": "(postcss|tailwind)\\.config\\.js",
+ "target": "(css|styles|scss|sass)"
+ },
+ {
+ "source": "assets/.*\\.(.*)$",
+ "target": "$1"
+ }
+ ],
+ "noJSConfigInAssets": false,
+ "useResourceCacheWhen": "fallback"
+ }
+}
diff --git a/hugo_stats.json b/hugo_stats.json
new file mode 100644
index 0000000..6feddd0
--- /dev/null
+++ b/hugo_stats.json
@@ -0,0 +1,230 @@
+{
+ "htmlElements": {
+ "tags": [
+ "a",
+ "blockquote",
+ "body",
+ "code",
+ "del",
+ "div",
+ "em",
+ "footer",
+ "h1",
+ "h2",
+ "h3",
+ "h4",
+ "h5",
+ "head",
+ "header",
+ "hr",
+ "html",
+ "i",
+ "img",
+ "li",
+ "link",
+ "main",
+ "meta",
+ "ol",
+ "p",
+ "pre",
+ "script",
+ "strong",
+ "sup",
+ "table",
+ "tbody",
+ "td",
+ "th",
+ "thead",
+ "title",
+ "tr",
+ "ul"
+ ],
+ "classes": [
+ "50%",
+ "80%",
+ "90%",
+ "accordion",
+ "active",
+ "ai",
+ "ai-google-scholar",
+ "bg-blue-500",
+ "bg-gray-200",
+ "bg-gray-300",
+ "border",
+ "border-b",
+ "border-black",
+ "border-gray-300",
+ "border-t",
+ "chevron",
+ "col-span-2",
+ "col-span-3",
+ "content",
+ "cursor-pointer",
+ "d-flex",
+ "dark",
+ "dark:bg-dark",
+ "dark:bg-darker",
+ "dark:bg-yellow-700",
+ "dark:border-gray-300",
+ "dark:border-gray-700",
+ "dark:hover:bg-darker",
+ "dark:hover:bg-gray-700",
+ "dark:hover:bg-gray-800",
+ "dark:hover:text-yellow-500",
+ "dark:prose-invert",
+ "dark:text-gray-400",
+ "dark:text-gray-600",
+ "dark:text-yellow-300",
+ "drop-shadow-md",
+ "fa-book",
+ "fa-briefcase",
+ "fa-chevron-circle-left",
+ "fa-chevron-circle-right",
+ "fa-chevron-right",
+ "fa-cogs",
+ "fa-gamepad",
+ "fa-github",
+ "fa-graduation-cap",
+ "fa-linkedin-in",
+ "fa-orcid",
+ "fa-project-diagram",
+ "fa-researchgate",
+ "fa-stack-overflow",
+ "fa-sun",
+ "fa-twitter",
+ "fa-user",
+ "fab",
+ "fas",
+ "flex",
+ "flex-col",
+ "flex-row",
+ "flex-wrap",
+ "font-italic",
+ "foo",
+ "footnote-backref",
+ "footnote-ref",
+ "footnotes",
+ "gap-2",
+ "grid",
+ "grid-cols-1",
+ "grow",
+ "h-100",
+ "h-full",
+ "h-screen",
+ "highlight",
+ "hover:bg-gray-200",
+ "hover:bg-gray-300",
+ "hover:bg-gray-400",
+ "hover:no-underline",
+ "hover:text-blue-700",
+ "indent-8",
+ "items-center",
+ "justify-around",
+ "justify-between",
+ "justify-center",
+ "justify-content-center",
+ "justify-start",
+ "list-categories",
+ "list-tags",
+ "list-unstyled",
+ "m-0",
+ "m-auto",
+ "markdownify",
+ "max-w-4xl",
+ "max-w-none",
+ "mb-0",
+ "mb-1",
+ "mb-2",
+ "mb-3",
+ "mb-4",
+ "mb-6",
+ "md:grid-cols-5",
+ "metadata",
+ "metadata-panel",
+ "metadata-tags",
+ "metadata-value",
+ "ml-2",
+ "ml-4",
+ "mr-4",
+ "mr-9",
+ "mt-0",
+ "mt-1",
+ "mt-4",
+ "mx-2",
+ "my-0",
+ "my-2",
+ "nav",
+ "nav-menu",
+ "no-underline",
+ "overflow-hidden",
+ "p-2",
+ "p-4",
+ "panel",
+ "pl-0",
+ "prose",
+ "prose-stone",
+ "pt-2",
+ "px-2",
+ "py-2",
+ "py-6",
+ "relative",
+ "rounded",
+ "rounded-full",
+ "row",
+ "sm",
+ "sm:mr-0",
+ "standard",
+ "taxa",
+ "taxa-container-div",
+ "text-2xl",
+ "text-blue-500",
+ "text-center",
+ "text-gray-300",
+ "text-left",
+ "text-lg",
+ "text-sm",
+ "theme-toggle",
+ "top-h1",
+ "w-100",
+ "w-full"
+ ],
+ "ids": [
+ "blockquote-with-attribution",
+ "blockquote-without-attribution",
+ "blockquotes",
+ "code-block-indented-with-four-spaces",
+ "code-block-with-backticks",
+ "code-block-with-hugos-internal-highlight-shortcode",
+ "code-blocks",
+ "donec-lacinia-eleifend-sem-a",
+ "fn:1",
+ "fnref:1",
+ "h1",
+ "h2",
+ "h3",
+ "h4",
+ "h5",
+ "headings",
+ "inline-markdown-within-tables",
+ "list-types",
+ "nested-list",
+ "non-tempor-mauris-elementum-semper",
+ "ordered-list",
+ "other-elements--abbr-sub-sup-kbd-mark",
+ "panel-item-0",
+ "panel-item-1",
+ "panel-item-2",
+ "panel-item-3",
+ "panel-item-4",
+ "panel-item-5",
+ "panel-item-6",
+ "panel-item-7",
+ "panel-item-8",
+ "paragraph",
+ "skill-panel",
+ "skill-percent",
+ "tables",
+ "unordered-list"
+ ]
+ }
+}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index ada8279..4fefcc4 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -15,14 +15,18 @@
href="//fonts.googleapis.com/css?family=Didact+Gothic%7CRoboto:400%7CRoboto+Mono"
/>
-
- {{ if .Site.IsServer }}
- {{ $styles := resources.Get "main.css" | postCSS (dict "config" "./assets/postcss.config.js") }}
-
- {{ else }}
-
- {{ end }}
-
+
+{{ $css := resources.Get "main.css" }}
+{{ $css = $css | resources.PostCSS }}
+{{ if hugo.IsProduction }}
+{{ $css = $css | minify | fingerprint | resources.PostProcess }}
+{{ end }}
+
+
+
+ {{/* {{ with resources.Get "../assets/style.css" }}
+
+ {{ end }} */}}