Skip to content

Commit

Permalink
Merge pull request #5 from tanmayc07/revert-4-iss3
Browse files Browse the repository at this point in the history
Revert ":bug: Update head partial to link favicon"
  • Loading branch information
tanmayc07 committed Jan 16, 2024
2 parents 9c8e390 + 4702f6c commit 5bbec41
Show file tree
Hide file tree
Showing 17 changed files with 334 additions and 0 deletions.
78 changes: 78 additions & 0 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Sample workflow for building and deploying a Hugo site to GitHub Pages
name: Deploy Hugo site to Pages

on:
# Runs on pushes targeting the default branch
push:
branches:
- main

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

# Default to bash
defaults:
run:
shell: bash

jobs:
# Build job
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.121.0
steps:
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass
run: sudo snap install dart-sass
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Build with Hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: |
hugo \
--gc \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./public

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 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

.DS_Store
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "themes/PaperMod"]
path = themes/PaperMod
url = git@github.com:adityatelange/hugo-PaperMod.git
5 changes: 5 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+++
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
date = {{ .Date }}
draft = true
+++
23 changes: 23 additions & 0 deletions assets/css/extended/home-info.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.home-info {
align-items: center;
text-align: justify;
}

.home-info img {
margin-bottom: 1%;
border-radius: 50%;
}

.header {
border-bottom: 1px solid #2e2e2e
}

::selection {
color: #444452;
background: #7bff00;
}

.name-highlight-a {
color: #000000;
background: #7bff00;
}
38 changes: 38 additions & 0 deletions assets/css/extended/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/* For the Projects Page*/
.post-content dt ~ dt, .post-content dd ~ dd {
margin-top: 1.5rem;
}

.post-content dt em {
display: block;
text-align: left;
font-size: 0.875rem;
font-weight: 400;
font-style: normal;
color: var(--secondary);
}

.post-content a,
.post-description a {
position: relative;
text-decoration: none;
box-shadow: none;
}

.post-content a::before,
.post-description a::before {
content: "";
position: absolute;
display: block;
width: 100%;
height: 2px;
bottom: 0;
left: 0;
background-color: var(--content);
transform: scaleX(0);
transition: transform 0.3s ease;
}

a:hover::before {
transform: scaleX(1);
}
25 changes: 25 additions & 0 deletions content/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: ABOUT
layout: single
# description:

showReadingTime: false
---

> “We are what we repeatedly do. Excellence, then, is not an act, but a habit.” ―Aristotle
I'm a computer programmer currently pursuing my Master's in Computer Science from SUNY Binghamton University. Previously I completed
my Bachelor's in Computer Engineering from University of Mumbai.

I'm passionate about building software programs and dabbling with new technologies to create user-focused and result-driven applications.

## Technical Skills

| Programming Languages | Web Development | Data | Tools & Others |
|-----------------------|------------------------|--------------------------|----------------------------- |
| C | Django | MySQL | Git, GitHub |
| Python | Flask | MongoDB | Docker |
| Java | Express.js | PostgreSQL | Heroku |
| Haskell | HTML, CSS, JavaScript | Pandas, NumPy | Linux, Bash scripting |
| GoLang | React.js, Bootstrap | Matplotlib | RESTful APIs |

6 changes: 6 additions & 0 deletions content/archives.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "Archive"
layout: "archives"
url: "/archives/"
summary: archives
---
25 changes: 25 additions & 0 deletions content/projects.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: Projects
layout: single
# description:
showReadingTime: false
# modified: 2023-01-29
keywords:
- Write.it
- Portfolio
---

[Write.it](https://github.com/tanmayc07/Blog-App) *Team Project*
: Write.it is a simple to use blogging platform developed using [**JavaScript's**](https://developer.mozilla.org/en-US/docs/Web/JavaScript) [**ExpressJs**](https://expressjs.com/) framework and [**MongoDb**](https://www.mongodb.com/).

[FIFA Player Analysis](https://github.com/tanmayc07/CS532_Nosql_Project) *Team Project*
: Performed Data Analysis of Fifa Player's stats for last 10 years using non-trivial NoSql queries. Web Client written in [**Python**](https://python.org) using [**Flask**](https://flask.palletsprojects.com/en/3.0.x/)

[Weather Dashboard](https://github.com/tanmayc07/WeatherDashboard) *Side Project*
: Weather Dashboard App with clean UI created using [**Django**](https://www.djangoproject.com/) and OpenWeatherMap [**API**](https://openweathermap.org/)

[Vaccine Efficiency Prediction](https://github.com/tanmayc07/WWCodeHackathon) *Team Project*
: Designed and trained a Machine Learning Algorithm for Vaccine Efficiency Prediction using B-cell epitope predictions dataset. Created the Web Client using [**StreamLit**](https://streamlit.io/)

[Portfolio](https://tanmayc.me/personal-site) *Side Project*
: The website you're currently on! Powered by [**Hugo**](https://gohugo.io/) & [**PaperMod**](https://git.io/hugopapermod) with custom CSS & content
71 changes: 71 additions & 0 deletions hugo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
baseURL: https://tanmayc.me/
languageCode: en-us
title: Tanmay Chaudhari
theme: ["PaperMod"]

enableEmoji: true

menu:
main:
- identifier: home
name: home
url: /
weight: 10
- identifier: about
name: about
url: /about
weight: 20
- identifier: projects
name: projects
url: /projects
weight: 30
- identifier: cv
name: cv
url: "https://cv-beta-seven-72.vercel.app/"
weight: 40


params:
defaultTheme: auto
homeInfoParams:
Title: 👋🏻 Hi there!
Content: "I'm <a href=\"/about\"><span class=\"name-highlight-a\">Tanmay</span></a> and it's good to have you here!"
# imageUrl: "https://i.ibb.co/hBxzX1y/DSC-0101.jpg"
imageUrl: "https://media1.giphy.com/media/Bzzb92NKwUOj0FjQOd/giphy.gif?cid=ecf05e47mqaevucni02y58st0860bthng1roofds5nawno3u&ep=v1_gifs_search&rid=giphy.gif&ct=g" # optional
imageTitle: "Random Programming gif" # optional
imageWidth: 300 # custom size
imageHeight: 200 # custom size

assets:
favicon: "https://tanmayc.me/personal-site/favicon.ico"
favicon16x16: "https://tanmayc.me/personal-site/favicon-16x16.png"
favicon32x32: "https://tanmayc.me/personal-site/favicon-32x32.png"
apple_touch_icon: "https://tanmayc.me/personal-site/apple-touch-icon.png"

# profileMode:
# enabled: true
# title: "👋🏻 Hi, I'm Tanmay!" # optional default will be site title
# subtitle: "Computer Programmer"
# imageUrl: "https://media1.giphy.com/media/Bzzb92NKwUOj0FjQOd/giphy.gif?cid=ecf05e47mqaevucni02y58st0860bthng1roofds5nawno3u&ep=v1_gifs_search&rid=giphy.gif&ct=g" # optional
# imageTitle: "Random Programming gif" # optional
# imageWidth: 300 # custom size
# imageHeight: 200 # custom size
# buttons:
# - name: Archive
# url: "/archive"
# - name: Github
# url: "https://github.com/"

socialIcons: # optional
- name: "github"
url: "https://github.com/tanmayc07"
- name: "linkedin"
url: "https://www.linkedin.com/in/hctanmay"
- name: "goodreads"
url: "https://www.goodreads.com/tanmay-reads"
- name: "email"
url: "mailto:hctanmay@gmail.com"

ShowShareButtons: true
ShareButtons: ["linkedin", "twitter"]

43 changes: 43 additions & 0 deletions layouts/partials/home_info.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{{- with site.Params.homeInfoParams }}
<article class="first-entry home-info">
{{- if .imageUrl -}}
{{- $img := "" }}
{{- if not (urls.Parse .imageUrl).IsAbs }}
{{- $img = resources.Get .imageUrl }}
{{- end }}
{{- if $img }}
{{- $processableFormats := (slice "jpg" "jpeg" "png" "tif" "bmp" "gif") -}}
{{- if hugo.IsExtended -}}
{{- $processableFormats = $processableFormats | append "webp" -}}
{{- end -}}
{{- $prod := (hugo.IsProduction | or (eq site.Params.env "production")) }}
{{- if and (in $processableFormats $img.MediaType.SubType) (eq $prod true)}}
{{- if (not (and (not .imageHeight) (not .imageWidth))) }}
{{- $img = $img.Resize (printf "%dx%d" .imageWidth .imageHeight) }}
{{- else if .imageHeight }}
{{- $img = $img.Resize (printf "x%d" .imageHeight) }}
{{ else if .imageWidth }}
{{- $img = $img.Resize (printf "%dx" .imageWidth) }}
{{ else }}
{{- $img = $img.Resize "150x150" }}
{{- end }}
{{- end }}
<img draggable="false" src="{{ $img.Permalink }}" alt="{{ .imageTitle | default "profile image" }}" title="{{ .imageTitle }}"
height="{{ .imageHeight | default 150 }}" width="{{ .imageWidth | default 150 }}" />
{{- else }}
<img draggable="false" src="{{ .imageUrl | absURL }}" alt="{{ .imageTitle | default "profile image" }}" title="{{ .imageTitle }}"
height="{{ .imageHeight | default 150 }}" width="{{ .imageWidth | default 150 }}" />
{{- end }}
{{- end }}
<header class="entry-header">
<h1>{{ .Title | markdownify }}</h1>
</header>
<div class="entry-content">
<p>{{ .Content | safeHTML }}</p>
<!-- <p>Click on about to know more.</p> -->
</div>
<footer class="entry-footer">
{{ partial "social_icons.html" (dict "align" site.Params.homeInfoParams.AlignSocialIconsTo) }}
</footer>
</article>
{{- end -}}
Binary file added static/apple-touch-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/favicon-16x16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/favicon-32x32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions static/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
1 change: 1 addition & 0 deletions themes/PaperMod
Submodule PaperMod added at a1cb04

0 comments on commit 5bbec41

Please sign in to comment.