Skip to content

Commit

Permalink
Merge pull request #6 from sre-elite/fix-baseurl
Browse files Browse the repository at this point in the history
Fix baseurl
  • Loading branch information
martinliu authored Jun 14, 2024
2 parents 1ed3356 + 43a05f9 commit 7d111a7
Show file tree
Hide file tree
Showing 76 changed files with 2,413 additions and 2,416 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
name: Hugo Build

on:
# Runs on pushes targeting the default branch
# Runs on pushes to any branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
branches-ignore: []

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand Down Expand Up @@ -55,21 +52,21 @@ jobs:
HUGO_ENV: production
run: |
hugo \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
--minify
# --baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
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@v4
# 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
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
######################## default configuration ####################
baseURL = "/"
baseURL = "https://www.sre-elite.com/"
title = "SRE精英联盟 | 引领、研究、发展SRE"
theme = "educenter-hugo"
# Default time zone for time stamps; use any valid tz database name: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
Expand Down
2 changes: 1 addition & 1 deletion content/chinese/notice/wp-v-1.0.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type: "notice"

希望相关内容能对目前从事SRE 的工作同仁带来些许的启示,同时,我们也期待更多的行业专家和从业者能够参与到我们的讨论中来,共同推动SRE领域的发展和进步。

#### 变更管理案例:4.3.1 B站变更防控的设计与实践
#### 变更管理案例:4.3.1 ‘B站’变更防控的设计与实践

![B站变更管控平台架构设计](/images/notice/2024-06-13_21-05-49.png)

Expand Down
86 changes: 43 additions & 43 deletions public/about/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="zh-cn"><head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
<html lang="zh-cn"><head>
<meta charset="utf-8">
<title>关于SRE精英联盟</title>

Expand All @@ -19,24 +19,24 @@

<!-- plugins -->

<link rel="stylesheet" href="//localhost:1313/plugins/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="https://www.sre-elite.com/plugins/bootstrap/bootstrap.min.css">

<link rel="stylesheet" href="//localhost:1313/plugins/slick/slick.css">
<link rel="stylesheet" href="https://www.sre-elite.com/plugins/slick/slick.css">

<link rel="stylesheet" href="//localhost:1313/plugins/animate/animate.css">
<link rel="stylesheet" href="https://www.sre-elite.com/plugins/animate/animate.css">

<link rel="stylesheet" href="//localhost:1313/plugins/venobox/venobox.css">
<link rel="stylesheet" href="https://www.sre-elite.com/plugins/venobox/venobox.css">

<link rel="stylesheet" href="//localhost:1313/plugins/themify-icons/themify-icons.css">
<link rel="stylesheet" href="https://www.sre-elite.com/plugins/themify-icons/themify-icons.css">


<!-- Main Stylesheet -->

<link rel="stylesheet" href="//localhost:1313/scss/main.b781a84820a67f75397b24d374c37b74bbf7489a2bd613aa2f2a6dd75abe475bdf2338703cf933a556c445e989fe8ff697f884a4082d6f35e77c5e43d275fc66.css" integrity="sha512-t4GoSCCmf3U5eyTTdMN7dLv3SJor1hOqLypt11q&#43;R1vfIzhwPPkzpVbERemJ/o/2l/iEpAgtbzXnfF5D0nX8Zg==" media="screen">
<link rel="stylesheet" href="https://www.sre-elite.com/scss/main.b781a84820a67f75397b24d374c37b74bbf7489a2bd613aa2f2a6dd75abe475bdf2338703cf933a556c445e989fe8ff697f884a4082d6f35e77c5e43d275fc66.css" integrity="sha512-t4GoSCCmf3U5eyTTdMN7dLv3SJor1hOqLypt11q&#43;R1vfIzhwPPkzpVbERemJ/o/2l/iEpAgtbzXnfF5D0nX8Zg==" media="screen">

<!--Favicon-->
<link rel="shortcut icon" href="//localhost:1313/images/favicon.png" type="image/x-icon">
<link rel="icon" href="//localhost:1313/images/favicon.png" type="image/x-icon">
<link rel="shortcut icon" href="https://www.sre-elite.com/images/favicon.png" type="image/x-icon">
<link rel="icon" href="https://www.sre-elite.com/images/favicon.png" type="image/x-icon">

</head>
<body>
Expand All @@ -47,8 +47,8 @@
<div class="navigation w-100 ">
<div class="container">
<nav class="navbar navbar-expand-lg navbar-dark p-0">
<a class="navbar-brand" href="//localhost:1313/"><img class="img-fluid"
src="//localhost:1313/images/logo.png" alt="SRE精英联盟 | 引领、研究、发展SRE"></a>
<a class="navbar-brand" href="/"><img class="img-fluid"
src="https://www.sre-elite.com/images/logo.png" alt="SRE精英联盟 | 引领、研究、发展SRE"></a>
<button class="navbar-toggler rounded-0" type="button" data-toggle="collapse" data-target="#navigation"
aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
Expand All @@ -57,18 +57,18 @@
<div class="collapse navbar-collapse text-center" id="navigation">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="//localhost:1313/">首页</a>
<a class="nav-link" href="/">首页</a>
</li>


<li class="nav-item">
<a class="nav-link" href="//localhost:1313/about/">关于</a>
<a class="nav-link" href="https://www.sre-elite.com/about/">关于</a>
</li>



<li class="nav-item">
<a class="nav-link" href="//localhost:1313/notice/">公告</a>
<a class="nav-link" href="https://www.sre-elite.com/notice/">公告</a>
</li>


Expand All @@ -79,29 +79,29 @@
</a>
<div class="dropdown-menu">

<a class="dropdown-item" href="//localhost:1313/teacher/">专家</a>
<a class="dropdown-item" href="https://www.sre-elite.com/teacher/">专家</a>

<a class="dropdown-item" href="//localhost:1313/event/">活动</a>
<a class="dropdown-item" href="https://www.sre-elite.com/event/">活动</a>

<a class="dropdown-item" href="//localhost:1313/research/">研究</a>
<a class="dropdown-item" href="https://www.sre-elite.com/research/">研究</a>

<a class="dropdown-item" href="//localhost:1313/course/">课程</a>
<a class="dropdown-item" href="https://www.sre-elite.com/course/">课程</a>

<a class="dropdown-item" href="//localhost:1313/scholarship/">辅导</a>
<a class="dropdown-item" href="https://www.sre-elite.com/scholarship/">辅导</a>

</div>
</li>



<li class="nav-item">
<a class="nav-link" href="//localhost:1313/blog/">博客</a>
<a class="nav-link" href="https://www.sre-elite.com/blog/">博客</a>
</li>



<li class="nav-item">
<a class="nav-link" href="//localhost:1313/contact/">联系</a>
<a class="nav-link" href="https://www.sre-elite.com/contact/">联系</a>
</li>


Expand All @@ -122,7 +122,7 @@
<div class="row">
<div class="col-md-8">
<ul class="list-inline custom-breadcrumb">
<li class="list-inline-item h2"><a class="text-primary font-secondary" href="//localhost:1313/">首页</a></li>
<li class="list-inline-item h2"><a class="text-primary font-secondary" href="/">首页</a></li>
<li class="list-inline-item h5"><i class="ti-angle-right text-white"></i></li>
<li class="list-inline-item text-white h3 font-secondary">关于SRE精英联盟</li>
</ul>
Expand Down Expand Up @@ -212,7 +212,7 @@ <h5 class="text-white">活动人次</h5>



<section class="section bg-cover" data-background="//localhost:1313/images/backgrounds/success-story.jpg">
<section class="section bg-cover" data-background="https://www.sre-elite.com/images/backgrounds/success-story.jpg">
<div class="container">
<div class="row">
<div class="col-lg-6 col-sm-4 position-relative success-video">
Expand Down Expand Up @@ -265,7 +265,7 @@ <h3 class="text-white mb-4">订阅新闻</h3>
<div class="row">
<div class="col-lg-4 col-sm-8 mb-5 mb-lg-0">

<a class="logo-footer" href="//localhost:1313/"><img class="img-fluid mb-4" src="//localhost:1313/images/logo.png" alt="SRE精英联盟 | 引领、研究、发展SRE"></a>
<a class="logo-footer" href="/"><img class="img-fluid mb-4" src="https://www.sre-elite.com/images/logo.png" alt="SRE精英联盟 | 引领、研究、发展SRE"></a>
<ul class="list-unstyled">
<li class="mb-4">北京,中国</li>
<li class="mb-4"><a href="mailto:[email protected]">[email protected]</a></li>
Expand All @@ -278,21 +278,21 @@ <h4 class="text-white mb-5 text-uppercase">联盟</h4>
<ul class="list-unstyled">


<li class="mb-3"><a class="text-color" href="//localhost:1313/about/">关于</a></li>
<li class="mb-3"><a class="text-color" href="https://www.sre-elite.com/about/">关于</a></li>



<li class="mb-3"><a class="text-color" href="//localhost:1313/notice/">公告</a></li>
<li class="mb-3"><a class="text-color" href="https://www.sre-elite.com/notice/">公告</a></li>





<li class="mb-3"><a class="text-color" href="//localhost:1313/blog/">博客</a></li>
<li class="mb-3"><a class="text-color" href="https://www.sre-elite.com/blog/">博客</a></li>



<li class="mb-3"><a class="text-color" href="//localhost:1313/contact/">联系</a></li>
<li class="mb-3"><a class="text-color" href="https://www.sre-elite.com/contact/">联系</a></li>


</ul>
Expand All @@ -302,13 +302,13 @@ <h4 class="text-white mb-5 text-uppercase">联盟</h4>
<h4 class="text-white mb-5 text-uppercase">链接</h4>
<ul class="list-unstyled">

<li class="mb-3"><a class="text-color" href="//localhost:1313/teacher/">专家</a></li>
<li class="mb-3"><a class="text-color" href="https://www.sre-elite.com/teacher/">专家</a></li>

<li class="mb-3"><a class="text-color" href="//localhost:1313/event/">活动</a></li>
<li class="mb-3"><a class="text-color" href="https://www.sre-elite.com/event/">活动</a></li>

<li class="mb-3"><a class="text-color" href="//localhost:1313/research/">研究</a></li>
<li class="mb-3"><a class="text-color" href="https://www.sre-elite.com/research/">研究</a></li>

<li class="mb-3"><a class="text-color" href="//localhost:1313/scholarship/">辅导</a></li>
<li class="mb-3"><a class="text-color" href="https://www.sre-elite.com/scholarship/">辅导</a></li>

</ul>
</div>
Expand All @@ -317,7 +317,7 @@ <h4 class="text-white mb-5 text-uppercase">链接</h4>
<h4 class="text-white mb-5 text-uppercase">课程</h4>
<ul class="list-unstyled">

<li class="mb-3"><a class="text-color" href="//localhost:1313/course/course-6/">课程开发中</a></li>
<li class="mb-3"><a class="text-color" href="https://www.sre-elite.com/course/course-6/">课程开发中</a></li>

</ul>
</div>
Expand All @@ -326,11 +326,11 @@ <h4 class="text-white mb-5 text-uppercase">课程</h4>
<h4 class="text-white mb-5 text-uppercase">最新公告</h4>
<ul class="list-unstyled">

<li class="mb-3"><a class="text-color" href="//localhost:1313/notice/wp-v-1.0.3/">《SRE实践白皮书》v1.0.3 发布</a></li>
<li class="mb-3"><a class="text-color" href="https://www.sre-elite.com/notice/wp-v-1.0.3/">《SRE实践白皮书》v1.0.3 发布</a></li>

<li class="mb-3"><a class="text-color" href="//localhost:1313/notice/wp-v-1.0.2/">《SRE实践白皮书》v1.0.2 发布</a></li>
<li class="mb-3"><a class="text-color" href="https://www.sre-elite.com/notice/wp-v-1.0.2/">《SRE实践白皮书》v1.0.2 发布</a></li>

<li class="mb-3"><a class="text-color" href="//localhost:1313/notice/wp-v-1.0.1/">祝贺《SRE实践白皮书》v1.0.1 正式版发布</a></li>
<li class="mb-3"><a class="text-color" href="https://www.sre-elite.com/notice/wp-v-1.0.1/">祝贺《SRE实践白皮书》v1.0.1 正式版发布</a></li>

</ul>
</div>
Expand Down Expand Up @@ -366,22 +366,22 @@ <h4 class="text-white mb-5 text-uppercase">最新公告</h4>

<!-- JS Plugins -->

<script src="//localhost:1313/plugins/jQuery/jquery.min.js"></script>
<script src="https://www.sre-elite.com/plugins/jQuery/jquery.min.js"></script>

<script src="//localhost:1313/plugins/bootstrap/bootstrap.min.js"></script>
<script src="https://www.sre-elite.com/plugins/bootstrap/bootstrap.min.js"></script>

<script src="//localhost:1313/plugins/slick/slick.min.js"></script>
<script src="https://www.sre-elite.com/plugins/slick/slick.min.js"></script>

<script src="//localhost:1313/plugins/venobox/venobox.min.js"></script>
<script src="https://www.sre-elite.com/plugins/venobox/venobox.min.js"></script>

<script src="//localhost:1313/plugins/filterizr/jquery.filterizr.min.js"></script>
<script src="https://www.sre-elite.com/plugins/filterizr/jquery.filterizr.min.js"></script>

<script src="//localhost:1313/plugins/google-map/gmap.js"></script>
<script src="https://www.sre-elite.com/plugins/google-map/gmap.js"></script>


<!-- Main Script -->

<script src="//localhost:1313/js/script.min.js"></script>
<script src="https://www.sre-elite.com/js/script.min.js"></script>

<!-- google analitycs -->

Expand Down
4 changes: 2 additions & 2 deletions public/about/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>关于SRE精英联盟 on SRE精英联盟 | 引领、研究、发展SRE</title>
<link>//localhost:1313/about/</link>
<link>https://www.sre-elite.com/about/</link>
<description>Recent content in 关于SRE精英联盟 on SRE精英联盟 | 引领、研究、发展SRE</description>
<generator>Hugo 0.125.2</generator>
<language>zh-cn</language>
<atom:link href="//localhost:1313/about/index.xml" rel="self" type="application/rss+xml" />
<atom:link href="https://www.sre-elite.com/about/index.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>
Loading

0 comments on commit 7d111a7

Please sign in to comment.