Skip to content

Commit

Permalink
Reinit website repo
Browse files Browse the repository at this point in the history
Signed-off-by: Jin Dong <djdongjin95@gmail.com>
  • Loading branch information
djdongjin committed Jun 5, 2023
0 parents commit f9abfc0
Show file tree
Hide file tree
Showing 74 changed files with 5,277 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
_site/*
.sass-cache
node_modules
Gemfile.lock
*.gem
.jekyll-cache/*
.jekyll-metadata

.DS_Store
5 changes: 5 additions & 0 deletions 404.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: 404 - Page not found
layout: 404
permalink: "/404.html"
---
76 changes: 76 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at justharpi@gmail.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
31 changes: 31 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
source "https://rubygems.org"

# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 4.1.0"

# This is the default theme for new Jekyll sites. You may change this to anything you like.

# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins

# If you have any plugins, put them here!
group :jekyll_plugins do
gem 'jekyll-feed', '~> 0.13'
gem 'jekyll-sitemap', '~> 1.4'
gem 'jekyll-compose', '~> 0.12.0'
gem 'jekyll-postfiles', '~> 3.1'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
# gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]

# Performance-booster for watching directories on Windows
# gem "wdm", "~> 0.1.0" if Gem.win_platform?
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Mahendrata Harpi

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.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Personal website.

To run locally:

```shell
$ bundle install
$ bundle exec jekyll serve
```

Then nativagate to `localhost:4000`.

Changed based on the [klise](https://github.com/piharpi/jekyll-klise), which is released under the [MIT](https://github.com/StartBootstrap/startbootstrap-clean-blog-jekyll/blob/gh-pages/LICENSE) license.
96 changes: 96 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# Site settings
title: Jin's Blog
description: >- # site description
Hi, my name is Jin Dong. I am currently a software engineer @aws in New York City.
lang: en-US # default lang
timezone: America/New_York
image: /assets/img/avatar.jpg # This image used for Open Graph more info https://ogp.me/
repo: https://github.com/djdongjin/djdongjin.github.io
mode: dark # default theme "dark" | "light"

# Profile settings
author:
name: Jin Dong
bio: >- # tell to the world
Hi, my name is Jin Dong. I am a software engineer @aws NYC, working on container and open source.
I'm currently focusing on <a href="https://github.com/containerd/containerd" target="_blank" rel="noopener">containerd</a>
and <a href="https://github.com/containerd/nerdctl" target="_blank" rel="noopener">nerdctl</a>.
You can find me <a href="https://github.com/djdongjin" target="_blank" rel="noopener">@github</a>.
username: djdongjin
github: djdongjin
# twitter: twitter_username
# facebook: facebook_username
email: djdongjin95@gmail.com
avatar: /assets/img/avatar.jpg

# URL settings
url: "https://djdongjin.github.io"
baseurl: ""
permalink: /:title
google_analytics: # leave it blank if not wish
fb_appid:

# Collection setting
collections:
posts:
output: true

# Markdown settings
markdown: kramdown
highlighter: rouge
kramdown:
syntax_highlighter: rouge
toc_levels: 1..3
# input: GFM
# auto_ids: true

# Default front matter
defaults:
- scope:
path: ""
values:
layout: post
comments: false

# Jekyll Compose default front matter
jekyll_compose:
post_default_front_matter:
modified:
tags: []
description:
draft_default_front_matter:
modified:
tags: []
description:

# Homepage limit posts
number_of_posts: 6

# Build settings
# theme: klise
sass:
style: compressed

include:
- _redirects
- .htaccess

exclude:
- CNAME
- Gemfile
- Gemfile.lock
- LICENSE
- CHANGELOG.md
- README.md
- node_modules
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- lighthouse.png
- klise-*.gem
- klise.gemspec

# Plugins
plugins:
- jekyll-feed
- jekyll-sitemap
- jekyll-postfiles
23 changes: 23 additions & 0 deletions _data/menus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
- title: home
url: /
external: false

- title: post
url: /post/
external: false

- title: tag
url: /tags/
external: false

- title: about
url: /about/
external: false

- title: resume
url: /assets/JinDong_CV.pdf
external: false

- title: github
url: https://github.com/djdongjin
external: true
9 changes: 9 additions & 0 deletions _includes/author.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<div class="author">
<img
class="author-avatar"
src="{{ site.author.avatar }}"
alt="{{ site.author.username }}"
/>
<h2 class="author-name">{{ site.author.name }}</h2>
<p class="author-bio">{{ site.author.bio }}</p>
</div>
17 changes: 17 additions & 0 deletions _includes/comments.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<div id="disqus_thread"></div>
<script>
/**
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables */
var disqus_config = function () {
this.page.url = "{{site.url}}{{page.url}}";
this.page.identifier = "{{page.url}}";
};
(function() {
var d = document, s = d.createElement('script');
s.src = 'https://dongjinblog.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
27 changes: 27 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<footer class="footer">
<!-- <a class="footer_item" href="/thanks">ack.</a> -->
<!-- <a class="footer_item" href="javascript::void(0)">resume</a> -->
<!-- <a class="footer_item" href="/feed.xml">rss</a> -->
<a class="footer_item" href="https://github.com/djdongjin">github</a>
<span class="footer_item">&copy; {{ site.time | date: "%Y" }}</span>
<small class="footer_copyright">
Blog based on
<a href="https://jekyllrb.com" target="_blank" rel="noreferrer noopener">jekyll</a>
theme -
<a href="https://github.com/piharpi/jekyll-klise" target="_blank" rel="noreferrer noopener">
klisé
</a>
</small>
</footer>
<script src="/assets/js/main.js" defer="defer"></script>

{%- if page.url == '/post/' -%}
<script src="/assets/js/search.min.js"></script>
<script>
var sjs = SimpleJekyllSearch({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('search-results'),
json: '/assets/search.json',
});
</script>
{%- endif -%}

0 comments on commit f9abfc0

Please sign in to comment.