Skip to content

Commit

Permalink
Update styles and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Deep0Thinking committed Jan 23, 2024
1 parent 875245e commit 8f2c75a
Show file tree
Hide file tree
Showing 17 changed files with 618 additions and 359 deletions.
41 changes: 15 additions & 26 deletions .github/workflows/jekyll.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,49 +34,37 @@ concurrency:
cancel-in-progress: false

jobs:

cleanup:
runs-on: ubuntu-latest
steps:
- name: 🗑 Delete deployment
uses: strumwolf/delete-deployment-environment@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
environment: github-pages
onlyRemoveDeployments: true

# Build job
build:
runs-on: ubuntu-latest
needs: cleanup
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
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

# 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: Deploy to GitHub Pages
uses: jeffreytse/[email protected]
with:
Expand All @@ -87,3 +75,4 @@ jobs:
jekyll_src: "./"
jekyll_cfg: "_config.yml"
jekyll_baseurl: "/2nd-Minima"
bundler_ver: '<= 2.4.22'
9 changes: 4 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ GEM
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
colorator (1.1.0)
concurrent-ruby (1.2.2)
concurrent-ruby (1.2.3)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
eventmachine (1.2.7)
ffi (1.16.3)
forwardable-extended (2.6.0)
google-protobuf (3.25.1-arm64-darwin)
google-protobuf (3.25.2-arm64-darwin)
http_parser.rb (0.8.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
Expand Down Expand Up @@ -71,7 +71,7 @@ GEM
rexml (3.2.6)
rouge (4.2.0)
safe_yaml (1.0.5)
sass-embedded (1.69.7-arm64-darwin)
sass-embedded (1.70.0-arm64-darwin)
google-protobuf (~> 3.25)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
Expand All @@ -80,12 +80,11 @@ GEM

PLATFORMS
arm64-darwin-22
ruby

DEPENDENCIES
bundler
jekyll-toc
minima!

BUNDLED WITH
2.5.4
2.4.22
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 8f2c75a

Please sign in to comment.