Compare commits

...

40 Commits

Author SHA1 Message Date
64ed4f0eca Merge branch 'master' of git.ericxliu.me:eric/ericxliu-me
All checks were successful
continuous-integration/drone Build is passing
2023-09-18 21:13:13 -07:00
817f3d5a6a hugo pages 2023-09-18 21:12:58 -07:00
41a3fc0f3f Update .drone.yml
All checks were successful
continuous-integration/drone Build is passing
2023-09-19 04:06:00 +00:00
a05c44d488 Update .drone.yml
All checks were successful
continuous-integration/drone Build is passing
2023-09-19 04:02:44 +00:00
0fc636c648 hugo pages
All checks were successful
continuous-integration/drone Build is passing
2023-09-18 20:52:58 -07:00
607be11983 hugo pages
All checks were successful
continuous-integration/drone Build is passing
2023-09-18 19:51:46 -07:00
35a02fff82 hugo pages
All checks were successful
continuous-integration/drone Build is passing
2023-09-18 19:42:24 -07:00
7c0df2cd14 hugo coder to v1.1
All checks were successful
continuous-integration/drone Build is passing
2023-09-18 19:12:11 -07:00
61228c7ad3 Update .drone.yml
All checks were successful
continuous-integration/drone Build is passing
2023-09-19 01:33:27 +00:00
a0b1e35cb4 Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2023-09-19 01:31:56 +00:00
19a0cef76c Update .drone.yml 2023-09-19 01:24:23 +00:00
dafbdcbab4 Update .drone.yml 2023-09-19 01:23:21 +00:00
25b1f1f748 Add README.md
All checks were successful
continuous-integration/drone Build is passing
2023-09-18 05:38:16 +00:00
2e90af24aa Update .drone.yml 2023-09-18 05:35:02 +00:00
2d33da9413 Update config.toml 2023-09-18 05:31:44 +00:00
9b45a24af0 Update .drone.yml
All checks were successful
continuous-integration/drone Build is passing
2023-09-18 05:04:37 +00:00
02d83d466b Update .drone.yml
All checks were successful
continuous-integration/drone Build is passing
2023-09-18 04:54:32 +00:00
23430e646b Update .drone.yml
All checks were successful
continuous-integration/drone Build is passing
2023-09-18 04:20:01 +00:00
9a38aab6c2 Update .drone.yml
All checks were successful
continuous-integration/drone Build is passing
2023-09-18 04:10:15 +00:00
10d6d1bde2 Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2023-09-18 03:59:54 +00:00
bac464af1f Update .drone.yml
All checks were successful
continuous-integration/drone Build is passing
2023-09-18 03:54:18 +00:00
e7155916c1 Update .drone.yml
All checks were successful
continuous-integration/drone Build is passing
2023-09-18 03:47:50 +00:00
bfb213acb1 Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2023-09-18 03:45:15 +00:00
c37a689f2b Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2023-09-18 03:43:58 +00:00
581f0c3f00 Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2023-09-18 03:40:30 +00:00
ea8b65ec8d Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2023-09-18 02:55:08 +00:00
a11297dd75 Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2023-09-18 02:51:22 +00:00
4de0eef90a Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2023-09-18 02:47:16 +00:00
519d456b84 Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2023-09-18 02:44:50 +00:00
b9c29d223f Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2023-09-18 02:40:54 +00:00
188f823c4a Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2023-09-18 02:34:55 +00:00
70a31d8485 Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2023-09-18 02:30:40 +00:00
b634559690 Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2023-09-18 02:27:22 +00:00
d4f45518eb Update .drone.yml
Some checks reported errors
continuous-integration/drone Build encountered an error
2023-09-18 02:17:59 +00:00
2843ab8363 Update .drone.yml 2023-09-18 02:06:51 +00:00
400413761e Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2023-09-18 01:50:41 +00:00
8d648e1248 Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2023-09-18 00:26:12 +00:00
fce6769f6a Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2023-09-17 20:33:25 +00:00
69b0eed927 Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2023-09-11 04:07:08 +00:00
877ab48645 Update .drone.yml
Some checks failed
continuous-integration/drone Build is failing
2023-09-11 03:39:05 +00:00
6 changed files with 107 additions and 32 deletions

View File

@@ -2,27 +2,71 @@ kind: pipeline
name: default name: default
steps: steps:
- name: git-clone
image: alpine/git
environment:
SSH_KEY:
from_secret: ssh_key
volumes:
- name: output
path: /output
commands:
- mkdir -p $HOME/.ssh
- echo "$SSH_KEY" > $HOME/.ssh/id_rsa
- chmod 400 $HOME/.ssh/id_rsa
- ssh-keyscan -H git.ericxliu.me > $HOME/.ssh/known_hosts
- git clone --branch gitea-pages git@git.ericxliu.me:eric/ericxliu-me.git /output
- find /output -mindepth 1 -not -regex "^.*\/.git.*" -delete
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: build - name: build
image: plugins/hugo image: plugins/hugo
volumes:
- name: output
path: /output
settings: settings:
hugo_version: 0.97.0 hugo_version: 0.97.0
extended: true extended: true
minify: true minify: true
pull: always url: "https://ericxliu.me"
url: ericxliu.me
validate: false validate: false
output: "./output" output: /output
mtu: 1450 - name: add-commit-hash
image: alpine/git
volumes:
- name: output
path: /output
commands:
- sed -i 's/\[commit\]/\[${DRONE_COMMIT_SHA:0:7}\]/g' /output/index.html
- name: git-push - name: git-push
image: appleboy/drone-git-push:0.2.0-linux-amd64 image: appleboy/drone-git-push:0.2.0-linux-amd64
volumes:
- name: output
path: /output
settings: settings:
branch: gitea-pages branch: gitea-pages
remote: "git@git.ericxliu.me:eric/ericxliu-me.git" remote: "git@git.ericxliu.me:eric/ericxliu-me.git"
force: true force: true
commit: true commit: true
path: "./output" path: /output
commit_message: "Drone build ${DRONE_COMMIT_SHA:0:7}" commit_message: "Drone build ${DRONE_COMMIT_SHA:0:7}"
author_name: "Eric Liu" author_name: "Eric Liu"
author_email: "eric@ericxliu.me" author_email: "eric@ericxliu.me"
ssh_key: ssh_key:
from_secret: ssh_key from_secret: ssh_key
- name: k8s-delete-pod
image: alpine/curl
environment:
TOKEN:
from_secret: token
APISERVER: "https://10.10.0.10:6443"
commands:
- "curl -X DELETE $APISERVER/api/v1/namespaces/hugo/pods/ --header \"Authorization: Bearer $TOKEN\" --insecure"
volumes:
- name: output
temp: {}
trigger:
branch:
- master

14
.gitignore vendored
View File

@@ -1 +1,13 @@
_gen/ # Generated files by hugo
/public/
/resources/_gen/
/assets/jsconfig.json
hugo_stats.json
# Executable may be added to repository
hugo.exe
hugo.darwin
hugo.linux
# Temporary lock file while building
/.hugo_build.lock

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# ericxliu.me
[![Build Status](https://drone.ericxliu.local/api/badges/eric/ericxliu-me/status.svg?ref=refs/heads/master)](https://drone.ericxliu.local/eric/ericxliu-me)

View File

@@ -1,16 +1,17 @@
title = "Eric's Personal Page" title = "Eric's Personal Page"
theme = "hugo-coder" theme = "hugo-coder"
languageCode = "en" languageCode = "en"
defaultcontentlanguage = "en" defaultcontentlanguage = "en"
paginate = 20 paginate = 20
canonifyurls = true #canonifyurls = true
pygmentsstyle = "b2" pygmentsstyle = "bw"
pygmentscodefences = true pygmentscodefences = true
pygmentscodefencesguesssyntax = true pygmentscodefencesguesssyntax = true
enableEmoji = true
enableTwemoji = true
enableGitInfo = true
[params] # theme parameters [params] # theme parameters
author = "Eric Liu" author = "Eric Liu"
@@ -18,21 +19,18 @@ pygmentscodefencesguesssyntax = true
description = "Eric Liu's personal website" description = "Eric Liu's personal website"
keywords = "blog,developer,personal" keywords = "blog,developer,personal"
avatarurl = "images/gravatar.png" avatarurl = "images/gravatar.png"
hideFooter = false
# wether you want to hide copyright and credits in the footer
hideCredits = true hideCredits = true
hideCopyright = false hideCopyright = false
since = 2016
rtl= false rtl= false
commit="https://git.ericxliu.me/eric/ericxliu-me/commit"
colorscheme = "light" colorscheme = "auto"
hideColorSchemeToggle = false
# Series see also post count # Series see also post count
maxSeeAlsoItems = 5 maxSeeAlsoItems = 5
# Enable Twemoji
enableTwemoji = true
# Custom CSS # Custom CSS
custom_css = [] custom_css = []
@@ -42,17 +40,17 @@ pygmentscodefencesguesssyntax = true
# Social links # Social links
[[params.social]] [[params.social]]
name = "Git" name = "Git"
icon = "fab fa-gitlab" icon = "fa fa-gitlab"
weight = 1 weight = 1
url = "https://git.ericxliu.me/eric" url = "https://git.ericxliu.me/eric"
[[params.social]] [[params.social]]
name = "linkedin" name = "linkedin"
icon = "fab fa-linkedin" icon = "fa fa-linkedin"
weight = 2 weight = 2
url = "https://www.linkedin.com/in/eric-liu-46648b93/" url = "https://www.linkedin.com/in/eric-liu-46648b93/"
[[params.social]] [[params.social]]
name = "Personal email" name = "Personal email"
icon = "fas fa-envelope-square" icon = "fa fa-envelope"
weight = 3 weight = 3
# Menu links # Menu links
@@ -64,21 +62,17 @@ pygmentscodefencesguesssyntax = true
weight = 1 weight = 1
url = "/posts/" url = "/posts/"
[[languages.en.menu.main]] [[languages.en.menu.main]]
name = "Gitlab" name = "Git"
weight = 2 weight = 2
url = "https://git.ericxliu.me" url = "https://git.ericxliu.me"
[[languages.en.menu.main]] [[languages.en.menu.main]]
name = "Notebook" name = "Nextcloud"
weight = 3 weight = 3
url = "https://hub.ericxliu.me" url = "https://cloud.ericxliu.me"
[[languages.en.menu.main]]
name = "Go"
weight = 4
url = "https://go.ericxliu.me/server"
[[languages.en.menu.main]] [[languages.en.menu.main]]
name = "|" name = "|"
weight = 10 weight = 10
[[languages.en.menu.main]] [[languages.en.menu.main]]
name = "Sign in" name = "Sign in"
weight = 11 weight = 11
url = "https://auth.ericxliu.me" url = "https://sso.ericxliu.me"

View File

@@ -0,0 +1,22 @@
{{ if not .Site.Params.hideFooter | default false }}
<footer class="footer">
<section class="container">
{{ with .Site.Params.footerContent | safeHTML }}
<p>{{ . }}</p>
{{ end }}
{{ if not .Site.Params.hideCopyright }}
©
{{ if (and (.Site.Params.since) (lt .Site.Params.since now.Year)) }}
{{ .Site.Params.since }} -
{{ end }}
{{ now.Year }}
{{ with .Site.Params.author }} {{ . }} {{ end }}
{{ end }}
{{ if not .Site.Params.hideCredits }}
{{ if not .Site.Params.hideCopyright }} · {{ end }}
{{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
{{ end }}
[commit]
</section>
</footer>
{{ end }}