Skip to content
Closed

Main #2383

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions .github/workflows/pages-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: "Build and Deploy"
on:
push:
branches:
- main
- master
paths-ignore:
- .gitignore
- README.md
- LICENSE

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

permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# submodules: true
# If using the 'assets' git submodule from Chirpy Starter, uncomment above
# (See: https://github.com/cotes2020/chirpy-starter/tree/main/assets)

- name: Setup Pages
id: pages
uses: actions/configure-pages@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3
bundler-cache: true

- name: Build site
run: bundle exec jekyll b -d "_site${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: "production"

- name: Test site
run: |
bundle exec htmlproofer _site \
\-\-disable-external \
\-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
- name: Upload site artifact
uses: actions/upload-pages-artifact@v3
with:
path: "_site${{ steps.pages.outputs.base_path }}"

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@v4
1 change: 1 addition & 0 deletions .nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

92 changes: 92 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,95 @@ This project is published under [MIT License][license].
[lib]: https://github.com/cotes2020/chirpy-static-assets
[vscode]: https://code.visualstudio.com/
[jetbrains]: https://www.jetbrains.com/?from=jekyll-theme-chirpy
<<<<<<< HEAD


# 🖼️ Feature: Dynamic Post Image Light/Dark Mode Switching

## 1. YAML Front Matter Configuration

Add the following fields to the post's YAML front matter:

```yaml
light_image:
path: /path/to/light-image.webp
lqip: data:image/webp;base64,...
alt: Alt text for light mode image
dark_image:
path: /path/to/dark-image.webp
lqip: data:image/webp;base64,...
alt: Alt text for dark mode image
```
## 2.Layout Update

Inside the `_layouts`, within the `{% if post.image %}` block, insert the following code **after** `{% assign card_body_col = '7' %}` and **before** `{% endif %}`.

```liquid
{% elsif post.light_image and post.dark_image %}
<div class="col-md-5">
<img
src="{{ post.light_image.path }}"
alt="{{ post.light_image.alt}}"
{{ post.light_image.lqip }}
class="popup img-link light shimmer"
style="height: 100%; border-top-right-radius: 8px; border-bottom-right-radius: 8px;"
>
<img
src="{{ post.dark_image.path }}"
alt="{{ post.dark_image.alt}}"
{{ post.dark_image.lqip }}
class="popup img-link dark"
style="height: 100%;border-top-right-radius: 8px; border-bottom-right-radius: 8px;"
>
</div>

{% assign card_body_col = '7' %}
```
# Chirpy Starter

[![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy)][gem]&nbsp;
[![GitHub license](https://img.shields.io/github/license/cotes2020/chirpy-starter.svg?color=blue)][mit]

When installing the [**Chirpy**][chirpy] theme through [RubyGems.org][gem], Jekyll can only read files in the folders
`_data`, `_layouts`, `_includes`, `_sass` and `assets`, as well as a small part of options of the `_config.yml` file
from the theme's gem. If you have ever installed this theme gem, you can use the command
`bundle info --path jekyll-theme-chirpy` to locate these files.

The Jekyll team claims that this is to leave the ball in the user’s court, but this also results in users not being
able to enjoy the out-of-the-box experience when using feature-rich themes.

To fully use all the features of **Chirpy**, you need to copy the other critical files from the theme's gem to your
Jekyll site. The following is a list of targets:

```shell
.
├── _config.yml
├── _plugins
├── _tabs
└── index.html
```

To save you time, and also in case you lose some files while copying, we extract those files/configurations of the
latest version of the **Chirpy** theme and the [CD][CD] workflow to here, so that you can start writing in minutes.

## Usage

Check out the [theme's docs](https://github.com/cotes2020/jekyll-theme-chirpy/wiki).

## Contributing

This repository is automatically updated with new releases from the theme repository. If you encounter any issues or want to contribute to its improvement, please visit the [theme repository][chirpy] to provide feedback.

## License

This work is published under [MIT][mit] License.

[gem]: https://rubygems.org/gems/jekyll-theme-chirpy
[chirpy]: https://github.com/cotes2020/jekyll-theme-chirpy/
[CD]: https://en.wikipedia.org/wiki/Continuous_deployment
[mit]: https://github.com/cotes2020/chirpy-starter/blob/master/LICENSE
>>>>>>> v7.2.4
- [ ] make post on add ficher img dark lith mode
- [ ] make post on mormate
- [ ] make the abute lode bater
- [ ] and more
33 changes: 17 additions & 16 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,40 +9,41 @@ theme: jekyll-theme-chirpy
lang: en

# Change to your timezone › https://kevinnovak.github.io/Time-Zone-Picker
timezone: Asia/Shanghai
timezone: Asia/Jerusalem

# jekyll-seo-tag settings › https://github.com/jekyll/jekyll-seo-tag/blob/master/docs/usage.md
# ↓ --------------------------

title: Chirpy # the main title
title: Nisan Sher # the main title

tagline: A text-focused Jekyll theme # it will display as the subtitle
tagline: B.Sc. in Mathematics <br> Data Scientist <br> Software Developer # it will display as the subtitle

description: >- # used by seo meta and the atom feed
A minimal, responsive and feature-rich Jekyll theme for technical writing.
Data scientist and software developer based in Tel Aviv, Israel. Skilled in Python, data analysis, machine learning, and mathematical modeling using tools like NumPy, Pandas, and Scikit-learn.

# Fill in the protocol & hostname for your site.
# E.g. 'https://username.github.io', note that it does not end with a '/'.
url: ""
url: "https://nisanman.github.io"

github:
username: github_username # change to your GitHub username

twitter:
username: twitter_username # change to your Twitter username
username:
nisanMan
# change to your GitHub username

social:
# Change to your full name.
# It will be displayed as the default author of the posts and the copyright owner in the Footer
name: your_full_name
name: Nisan Sher
email: [email protected] # change to your email address
links:
# The first element serves as the copyright owner's link
- https://twitter.com/username # change to your Twitter homepage
- https://github.com/username # change to your GitHub homepage
# - https://twitter.com/username # change to your Twitter homepage
- https://github.com/nisanMan # change to your GitHub homepage
# Uncomment below to add more social links
# - https://www.facebook.com/username
# - https://www.linkedin.com/in/username
- https://www.linkedin.com/in/nisan-sher
- https://www.kaggle.com/nisansher

# Site Verification Settings
webmaster_verifications:
Expand Down Expand Up @@ -88,21 +89,21 @@ pageviews:
# light — Use the light color scheme
# dark — Use the dark color scheme
#
theme_mode: # [light | dark]
theme_mode: #[light | dark]

# The CDN endpoint for media resources.
# Notice that once it is assigned, the CDN url
# will be added to all media resources (site avatar, posts' images, audio and video files) paths starting with '/'
#
# e.g. 'https://cdn.com'
cdn: "https://chirpy-img.netlify.app"
cdn: ""

# the avatar on sidebar, support local or CORS resources
avatar: "/commons/avatar.jpg"
avatar: https://avatars.githubusercontent.com/u/81760582?v=4

# The URL of the site-wide social preview image used in SEO `og:image` meta tag.
# It can be overridden by a customized `page.image` in front matter.
social_preview_image: # string, local or CORS resources
social_preview_image: https://media.licdn.com/dms/image/v2/D4E03AQGpMWFJcXjyTw/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1714058980243?e=1750291200&v=beta&t=eNbCpskXpcK4kiirchKDOgqgo0Uq0XKwlIFTFYOo-hY # string, local or CORS resources

# boolean type, the global switch for TOC in posts.
toc: true
Expand Down
35 changes: 23 additions & 12 deletions _data/contact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,21 @@
- type: github
icon: "fab fa-github"

- type: twitter
icon: "fa-brands fa-x-twitter"
# - type: twitter
# icon: "fa-brands fa-x-twitter"

- type: email
icon: "fas fa-envelope"
noblank: true # open link in current tab

- type: rss
icon: "fas fa-rss"
noblank: true
# - type: email
# icon: "fas fa-envelope"
# noblank: true # open link in current tab
# Uncomment and complete the url below to enable more contact options
#
# - type: mastodon
# icon: 'fab fa-mastodon' # icons powered by <https://fontawesome.com/>
# url: '' # Fill with your Mastodon account page, rel="me" will be applied for verification
#
# - type: linkedin
# icon: 'fab fa-linkedin' # icons powered by <https://fontawesome.com/>
# url: '' # Fill with your Linkedin homepage
- type: linkedin
icon: "fab fa-linkedin" # icons powered by <https://fontawesome.com/>
url: "https://www.linkedin.com/in/nisan-sher/" # Fill with your Linkedin homepage
#
# - type: stack-overflow
# icon: 'fab fa-stack-overflow'
Expand All @@ -38,3 +34,18 @@
# - type: threads
# icon: 'fa-brands fa-threads'
# url: '' # Fill with your Threads profile link
- type: kaggle
icon: "fab fa-kaggle"
url: "https://www.kaggle.com/nisansher" # Fill with your Threads profile link
#
- type: Portfolio
icon: "fas fa-suitcase"
url: "https://nisanman.github.io/PortfolioGallery/"
#
- type: rss
icon: "fas fa-rss"
noblank: true
#
- type: pdf
icon: "fas fa-file-alt"
url: "/assets/files/Nisan Sher CV.pdf"
6 changes: 3 additions & 3 deletions _data/share.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ platforms:

# Uncomment below if you need to.
#
# - type: Linkedin
# icon: "fab fa-linkedin"
# link: "https://www.linkedin.com/feed/?shareActive=true&shareUrl=URL"
- type: Linkedin
icon: "fab fa-linkedin"
link: "https://www.linkedin.com/feed/?shareActive=true&shareUrl=URL"
#
# - type: Weibo
# icon: "fab fa-weibo"
Expand Down
7 changes: 7 additions & 0 deletions _includes/embed/webpage.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<iframe
src="{{ include.url }}"
width="{{ include.width | default: '100%' }}"
height="{{ include.height | default: '600' }}"
style="border: none;"
>
</iframe>
22 changes: 21 additions & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
layout: default
refactor: true
---

{% include lang.html %}

{% assign all_pinned = site.posts | where: 'pin', 'true' %}
Expand Down Expand Up @@ -71,6 +70,27 @@
<img src="{{ src }}" alt="{{ alt }}" {{ lqip }}>
</div>

{% assign card_body_col = '7' %}
{% elsif post.light_image and post.dark_image %}
<div class="col-md-5">
<img
src="{{ post.light_image.path }}"
alt="{{ post.light_image.alt}}"
lqip="{{ post.light_image.lqip }}"
class="img-fluid popup img-link light shimmer"
loading="lazy"
style="height: 100%; border-top-right-radius: 8px; border-bottom-right-radius: 8px;"
>
<img
src="{{ post.dark_image.path }}"
alt="{{ post.dark_image.alt}}"
lqip="{{ post.dark_image.lqip }}"
class="img-fluid popup img-link dark"
loading="lazy"
style="height: 100%;border-top-right-radius: 8px; border-bottom-right-radius: 8px;"
>
</div>

{% assign card_body_col = '7' %}
{% endif %}

Expand Down
1 change: 1 addition & 0 deletions _posts/.placeholder
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Loading
Loading