Skip to content

Commit

Permalink
Update CSS and JavaScript files
Browse files Browse the repository at this point in the history
  • Loading branch information
Deep0Thinking committed Jan 23, 2024
1 parent 875245e commit 13d2603
Show file tree
Hide file tree
Showing 16 changed files with 617 additions and 353 deletions.
43 changes: 18 additions & 25 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,45 +38,38 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout main branch
uses: actions/checkout@v4
with:
ref: "main"
- name: Setup Ruby
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"

- uses: actions/cache@v3
with:
ruby-version: "3.1" # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Build with Jekyll
# Outputs to the './_site' directory by default
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout main branch
uses: actions/checkout@v4
with:
ref: "main"
- name: Copy _site contents
run: |
cp -r _site/ Gemfile _config.yml /tmp/
git checkout -b _site
rm -rf *
cp -r /tmp/_site/* /tmp/Gemfile /tmp/_config.yml ./
git add --all
git config user.name github-actions
git config user.email [email protected]
git commit -m "update _site content"
git push --force origin _site

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"

- name: Deploy to GitHub Pages
uses: jeffreytse/[email protected]
with:
Expand Down
163 changes: 112 additions & 51 deletions _site/2022/11/28/How-to-post-posts.html

Large diffs are not rendered by default.

95 changes: 95 additions & 0 deletions _site/2024/01/20/My-first-post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
<!DOCTYPE html>
<html lang=" en"><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" href="/assets/css/style.css">
<script>
MathJax = {
tex: {
inlineMath: [['$', '$'], ['\\(', '\\)']]
}
};
</script>
<script id="MathJax-script" async
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
</script>










<link rel="shortcut icon" type="image/x-icon" href="/favicon/favicon.ico">

</head><body><header class="site-header">
<div class="wrapper"><a class="site-title" rel="author" href="/">Please-type-your-Github-name-here&#39;s Blog</a><nav class="site-nav">
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger">
<span class="menu-icon">
<svg viewBox="0 0 18 15" width="18px" height="15px">
<path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
</svg>
</span>
</label>

<div class="trigger"><a class="page-link" href="/all-tags.html">Tags</a><a class="page-link" href="/archive.html">Archive</a><a class="page-link" href="/about.html">About</a></div>
</nav></div>
</header>
<main class="page-content" aria-label="Content">
<div class="wrapper" style="text-align: justify;">
<ul id="toc" class="section-nav">
</ul>
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">

<header class="post-header">
<h1 class="post-title p-name" itemprop="name headline">My first post</h1>

<span>[


<a href="/tag/WoW"><code class="highligher-rouge"><nobr>WoW</nobr></code></a>


<a href="/tag/go"><code class="highligher-rouge"><nobr>go</nobr></code></a>

]</span>

<br>
<br>

<p>
Haha! This is my first post.
</p>

<p class="post-meta" style="font-size: 18px"><time class="dt-published" datetime="2024-01-20T00:00:00-08:00" itemprop="datePublished">
Jan 20, 2024
</time></p>
</header>

<hr>

<div class="post-content e-content" itemprop="articleBody">
<p>###</p>

</div><a class="u-url" href="/2024/01/20/My-first-post.html" hidden></a>

</article>

<hr>

<h1><a href="https://github.com/Deep0Thinking/2nd-Minima#2.3">fake comments section</a></h1>

</div>
</main>

</body>

<script src="/assets/js/custom-styles.js"></script>

</html>
Loading

0 comments on commit 13d2603

Please sign in to comment.