-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b06c836
commit 13c4e6f
Showing
107 changed files
with
803 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.115.4 | ||
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@v3 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
- name: Setup Pages | ||
id: pages | ||
uses: actions/configure-pages@v3 | ||
- 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@v1 | ||
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@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
+++ | ||
title = '{{ replace .File.ContentBaseName "-" " " | title }}' | ||
date = {{ .Date }} | ||
draft = true | ||
+++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
+++ | ||
title = 'First_post' | ||
+++ | ||
|
||
Docker: Unleashing the Power of Containerization in Modern Computing | ||
In the fast-paced world of software development, agility and efficiency are paramount. Enter Docker, a game-changing technology that has redefined how we build, deploy, and manage applications. In this blog post, we'll delve into the compelling reasons why Docker has become an indispensable tool in modern computing. | ||
|
||
1. Eliminating "It Works on My Machine" Syndrome | ||
One of Docker's most notable strengths is its ability to ensure consistency across different environments. By encapsulating an application and its dependencies into a container, developers can rest assured that what works on their local machine will work identically in any environment, from development to production. This eradicates the notorious "It works on my machine" frustration. | ||
|
||
2. Fortified Security through Isolation | ||
Docker containers operate in isolated environments, offering an additional layer of security. Each container has its own file system, networking, and isolated process space. This isolation extends to the host system, making it significantly more challenging for malicious code to compromise the underlying infrastructure. Docker's security features are a boon for safeguarding applications and data. | ||
|
||
3. Efficiency in Resource Utilization | ||
Docker containers are exceptionally lightweight, as they share the host system's kernel. This leads to efficient utilization of resources, enabling higher application density on a given host. This translates to cost savings, reduced infrastructure requirements, and a smaller environmental footprint. Docker empowers businesses to optimize resource usage without compromising performance. | ||
|
||
4. Swift and Seamless Deployment | ||
Docker streamlines the deployment process, allowing applications to be packaged along with their dependencies and configurations. This means deploying an application on a new system or scaling it to meet increased demand is a streamlined operation. Moreover, Docker's compatibility with continuous integration and continuous deployment (CI/CD) pipelines accelerates development cycles. | ||
|
||
5. Microservices Pioneering | ||
In the era of microservices, Docker is a linchpin. It enables the creation of lightweight, modular services that can be managed and scaled independently. This approach fosters faster development cycles and permits the deployment of specific services as needed. Docker empowers organizations to embrace microservices architecture with confidence. | ||
|
||
6. Empowering Developer Productivity | ||
Docker simplifies onboarding for new developers. With a Dockerized application, they can quickly set up a consistent development environment, eliminating the headache of configuration issues. This accelerates the onboarding process, enhances collaboration, and ensures everyone works in a standardized environment, boosting overall productivity. | ||
|
||
7. Unmatched Portability | ||
Docker containers can run on any machine with Docker installed, regardless of the underlying operating system. This portability empowers developers to confidently build applications, knowing they will run consistently across various environments, from a developer's laptop to a production server or cloud-based platform. | ||
|
||
8. Thriving Ecosystem and Community | ||
Docker boasts a vibrant ecosystem and a massive community of developers and enthusiasts. This translates to a wealth of resources, including a vast repository of pre-built containers, official images, and a diverse array of third-party tools. The active community ensures Docker remains at the forefront of containerization technology. | ||
|
||
In summary, Docker has emerged as an indispensable tool in modern computing. Its ability to provide consistency, security, resource efficiency, and facilitate rapid deployment has made it a cornerstone of contemporary software development practices. As the technology landscape continues to evolve, Docker is poised to play an even more pivotal role in shaping the future of computing. | ||
|
||
If you haven't yet embraced Docker, now is the opportune moment to dive in and unlock its full potential for your development projects. The benefits it brings to the table are bound to elevate your software development journey to new heights. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
baseURL = "http://example.org/" | ||
# [en, zh-cn, fr, ...] determines default content language | ||
defaultContentLanguage = "en" | ||
# language code | ||
languageCode = "en" | ||
title = "My New Hugo Site" | ||
|
||
# Change the default theme to be use when building the site with Hugo | ||
theme = "FeelIt" | ||
|
||
[params] | ||
# FeelIt theme version | ||
version = "1.0.X" | ||
|
||
[menu] | ||
[[menu.main]] | ||
identifier = "posts" | ||
# you can add extra information before the name (HTML format is supported), such as icons | ||
pre = "" | ||
# you can add extra information after the name (HTML format is supported), such as icons | ||
post = "" | ||
name = "Posts" | ||
url = "/posts/" | ||
# title will be shown when you hover on this menu link | ||
title = "" | ||
weight = 1 | ||
[[menu.main]] | ||
identifier = "tags" | ||
pre = "" | ||
post = "" | ||
name = "Tags" | ||
url = "/tags/" | ||
title = "" | ||
weight = 2 | ||
[[menu.main]] | ||
identifier = "categories" | ||
pre = "" | ||
post = "" | ||
name = "Categories" | ||
url = "/categories/" | ||
title = "" | ||
weight = 3 | ||
|
||
# Markup related configuration in Hugo | ||
[markup] | ||
# Syntax Highlighting (https://gohugo.io/content-management/syntax-highlighting) | ||
[markup.highlight] | ||
# false is a necessary configuration (https://github.com/khusika/FeelIt/issues/158) | ||
noClasses = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="robots" content="noodp" /> | ||
<title>404 Page not found - My New Hugo Site</title><meta name="description" content=""><meta property="og:title" content="404 Page not found" /> | ||
<meta property="og:description" content="" /> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:url" content="http://example.org/404.html" /> | ||
<meta name="twitter:card" content="summary"/> | ||
<meta name="twitter:title" content="404 Page not found"/> | ||
<meta name="twitter:description" content=""/> | ||
<meta name="application-name" content="My New Hugo Site"> | ||
<meta name="apple-mobile-web-app-title" content="My New Hugo Site"><link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" /> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="manifest" href="/site.webmanifest"><link rel="canonical" href="http://example.org/404.html" /><link rel="stylesheet" href="/css/page.min.css"><link rel="stylesheet" href="/css/home.min.css"></head><body data-header-desktop="" data-header-mobile=""><script>(window.localStorage && localStorage.getItem('theme') ? localStorage.getItem('theme') === 'dark' : ('' === 'auto' ? window.matchMedia('(prefers-color-scheme: dark)').matches : '' === 'dark')) && document.body.setAttribute('theme', 'dark');</script> | ||
|
||
<div id="mask"></div><div class="wrapper"><header class="desktop" id="header-desktop"> | ||
<div class="header-wrapper"> | ||
<div class="header-title"> | ||
<a href="/" title="My New Hugo Site">My New Hugo Site</a> | ||
</div> | ||
<div class="menu"> | ||
<div class="menu-inner"><a class="menu-item" href="/posts/"> Posts </a><a class="menu-item" href="/tags/"> Tags </a><a class="menu-item" href="/categories/"> Categories </a><span class="menu-item delimiter"></span><a href="#" onclick="return false;" class="menu-item theme-switch" title="Switch Theme"> | ||
<i class="fa-solid fa-adjust fa-fw"></i> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</header><header class="mobile" id="header-mobile"> | ||
<div class="header-container"> | ||
<div class="header-wrapper"> | ||
<div class="header-title"> | ||
<a href="/" title="My New Hugo Site">My New Hugo Site</a> | ||
</div> | ||
<div class="menu-toggle" id="menu-toggle-mobile"> | ||
<span></span><span></span><span></span> | ||
</div> | ||
</div> | ||
<div class="menu" id="menu-mobile"><a class="menu-item" href="/posts/" title="">Posts</a><a class="menu-item" href="/tags/" title="">Tags</a><a class="menu-item" href="/categories/" title="">Categories</a><div class="menu-item"><a href="#" onclick="return false;" class="theme-switch" title="Switch Theme"> | ||
<i class="fa-solid fa-adjust fa-fw"></i> | ||
</a> | ||
</div></div> | ||
</div> | ||
</header><main class="main"> | ||
<div class="container"><div class="page" id="content-404"> | ||
<h2>404</h2> | ||
<p>The page you're looking for doesn't exist. Sorry.</p> | ||
<a href="/" title="Home">Home</a> | ||
<a href="#" title="Back" onclick="window.history.back();">Back</a> | ||
</div></div> | ||
</main> | ||
<footer class="footer"><div class="footer-container"><div class="footer-line">Powered by <a href="https://gohugo.io/" target="_blank" rel="noopener noreffer" title="Hugo 0.119.0">Hugo</a> | Theme - <a href="https://github.com/khusika/FeelIt" target="_blank" rel="noopener noreffer" title="FeelIt 1.0.2"><i class="fa-solid fa-hand-holding-heart fa-fw"></i> FeelIt</a> | ||
</div><div class="footer-line" itemscope itemtype="http://schema.org/CreativeWork"><i class="fa-regular fa-copyright fa-fw"></i><span itemprop="copyrightYear">2023</span><span class="author" itemprop="copyrightHolder"> <a href="/"></a></span></div> | ||
</div> | ||
</footer> | ||
</div> | ||
|
||
<div id="fixed-buttons"><a href="#" id="back-to-top" class="fixed-button" title="Back to Top"> | ||
<i class="fa-solid fa-chevron-up fa-fw"></i> | ||
</a></div><link rel="stylesheet" href="/lib/fontawesome-free/all.min.css"><link rel="stylesheet" href="/lib/animate/animate.min.css"><script src="/lib/lazysizes/lazysizes.min.js"></script><script>window.config={"code":{"maxShownLines":10}};</script><script src="/js/theme.min.js"></script></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="robots" content="noodp" /> | ||
<title>All Categories - My New Hugo Site</title><meta name="description" content=""><meta property="og:title" content="Categories" /> | ||
<meta property="og:description" content="" /> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:url" content="http://example.org/categories/" /> | ||
<meta name="twitter:card" content="summary"/> | ||
<meta name="twitter:title" content="Categories"/> | ||
<meta name="twitter:description" content=""/> | ||
<meta name="application-name" content="My New Hugo Site"> | ||
<meta name="apple-mobile-web-app-title" content="My New Hugo Site"><link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" /> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="manifest" href="/site.webmanifest"><link rel="canonical" href="http://example.org/categories/" /><link rel="alternate" href="/categories/index.xml" type="application/rss+xml" title="My New Hugo Site"> | ||
<link rel="feed" href="/categories/index.xml" type="application/rss+xml" title="My New Hugo Site"><link rel="stylesheet" href="/css/page.min.css"><link rel="stylesheet" href="/css/home.min.css"></head><body data-header-desktop="" data-header-mobile=""><script>(window.localStorage && localStorage.getItem('theme') ? localStorage.getItem('theme') === 'dark' : ('' === 'auto' ? window.matchMedia('(prefers-color-scheme: dark)').matches : '' === 'dark')) && document.body.setAttribute('theme', 'dark');</script> | ||
|
||
<div id="mask"></div><div class="wrapper"><header class="desktop" id="header-desktop"> | ||
<div class="header-wrapper"> | ||
<div class="header-title"> | ||
<a href="/" title="My New Hugo Site">My New Hugo Site</a> | ||
</div> | ||
<div class="menu"> | ||
<div class="menu-inner"><a class="menu-item" href="/posts/"> Posts </a><a class="menu-item" href="/tags/"> Tags </a><a class="menu-item active" href="/categories/"> Categories </a><span class="menu-item delimiter"></span><a href="#" onclick="return false;" class="menu-item theme-switch" title="Switch Theme"> | ||
<i class="fa-solid fa-adjust fa-fw"></i> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</header><header class="mobile" id="header-mobile"> | ||
<div class="header-container"> | ||
<div class="header-wrapper"> | ||
<div class="header-title"> | ||
<a href="/" title="My New Hugo Site">My New Hugo Site</a> | ||
</div> | ||
<div class="menu-toggle" id="menu-toggle-mobile"> | ||
<span></span><span></span><span></span> | ||
</div> | ||
</div> | ||
<div class="menu" id="menu-mobile"><a class="menu-item" href="/posts/" title="">Posts</a><a class="menu-item" href="/tags/" title="">Tags</a><a class="menu-item" href="/categories/" title="">Categories</a><div class="menu-item"><a href="#" onclick="return false;" class="theme-switch" title="Switch Theme"> | ||
<i class="fa-solid fa-adjust fa-fw"></i> | ||
</a> | ||
</div></div> | ||
</div> | ||
</header><main class="main"> | ||
<div class="container"><div class="page archive"><h2 class="single-title animated fadeInDown faster">All Categories</h2><div class="categories-card"></div></div></div> | ||
</main> | ||
<footer class="footer"><div class="footer-container"><div class="footer-line">Powered by <a href="https://gohugo.io/" target="_blank" rel="noopener noreffer" title="Hugo 0.119.0">Hugo</a> | Theme - <a href="https://github.com/khusika/FeelIt" target="_blank" rel="noopener noreffer" title="FeelIt 1.0.2"><i class="fa-solid fa-hand-holding-heart fa-fw"></i> FeelIt</a> | ||
</div><div class="footer-line" itemscope itemtype="http://schema.org/CreativeWork"><i class="fa-regular fa-copyright fa-fw"></i><span itemprop="copyrightYear">2023</span><span class="author" itemprop="copyrightHolder"> <a href="/"></a></span></div> | ||
</div> | ||
</footer> | ||
</div> | ||
|
||
<div id="fixed-buttons"><a href="#" id="back-to-top" class="fixed-button" title="Back to Top"> | ||
<i class="fa-solid fa-chevron-up fa-fw"></i> | ||
</a></div><link rel="stylesheet" href="/lib/fontawesome-free/all.min.css"><link rel="stylesheet" href="/lib/animate/animate.min.css"><script src="/lib/lazysizes/lazysizes.min.js"></script><script>window.config={"code":{"maxShownLines":10}};</script><script src="/js/theme.min.js"></script></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"> | ||
<channel> | ||
<title>Categories - Category - My New Hugo Site</title> | ||
<link>http://example.org/categories/</link> | ||
<description>Categories - Category - My New Hugo Site</description> | ||
<generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="http://example.org/categories/" rel="self" type="application/rss+xml" /></channel> | ||
</rss> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.