Skip to content

Commit

Permalink
Setup blog
Browse files Browse the repository at this point in the history
  • Loading branch information
youngbin-cm committed Jan 9, 2024
1 parent 8257b00 commit 6643ae5
Show file tree
Hide file tree
Showing 47 changed files with 1,474 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Deploy Website

on:
push:
branches: [ main ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Check out latest commit
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
name: Checkout src repo
with:
path: src
ref: main

- uses: actions/setup-go@v2
with:
go-version: '^1.21.5' # The Go version to download (if necessary) and use.

- name: Install hugo
working-directory: src
run: |
sudo snap install hugo
- name: Build website with hugo
working-directory: src
run: |
hugo mod get
cd themes/ubuntu-blog-hugo && npm i && cd ../../
hugo
# Checkout destination branch
- uses: actions/checkout@v2
name: Checkout dest repo
with:
path: dest
fetch-depth: 0
ref: gh-pages

# Commit and push changes
- name: Copy website built from src/public
working-directory: dest
run: |
rm -rf *
yes | cp -rf ../src/public/* .
# Commit and push changes
- name: Commit website updates
working-directory: dest
run: |
git config --global user.name github-actions
git config --global user.email [email protected]
git add .
git diff-index --quiet HEAD || git commit -m "Deploy website updates with GitHub Actions: ${GITHUB_SHA}"
git push origin gh-pages
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Hugo default output directory
/public

resources
*.lock

## OS Files
# Windows
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/

# OSX
.DS_Store

# NPM
node_modules
18 changes: 18 additions & 0 deletions archetypes/post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
date: {{ .Date }}
title: "Title"
tags:
- tag1
- tag2
authors:
- name: # Name
bio: # Short descriptoin about you
email: [email protected] # Email
launchpad: hello # Launchpad Username
github: hello # GitHub Username
profile: profile.jpg # Profile image URL
image: cover.png # Post cover image URL
draft: false # Is this post draft?
---

Contents here...
65 changes: 65 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
baseURL: 'https://blog.ubuntu-kr.org'
languageCode: en
title: 'UbuCon Asia Blog'
theme: "ubuntu-blog-hugo"
buildFuture: true
paginate: 5
outputs:
home:
- html
- rss
section:
- html
- rss
taxonomy:
- html
- rss
term:
- html
params:
shortTitle: Blog
contact: [email protected]
facebook: ubuconasia
twitter: UbuConAsia
github: ubucon-asia
launchpad: ubucon-asia
youtube: https://www.youtube.com/@UbuConAsia
source_repo: https://github.com/ubucon-asia/blog.ubucon.asia
discourse: https://discourse.ubuntu.org/
defaultContentLanguage: en
languages:
en:
languageName: English
title: UbuCon Asia Blog
weight: 2
params:
shortTitle: Blog
description: >-
Latest news from UbuCon Asia Committee
copyright: >-
© 2021-Present UbuCon Asia Committee
Except where otherwise noted, Website source code licensed under MIT, Contents licensed under CC BY-SA 4.0.
Ubuntu and Canonical are registered trademarks of Canonical Ltd.
main_slide:
label: About the community
link: about
menu:
main:
- identifier: tags
name: Tags
weight: 2
url: /tags
- identifier: subscribe
name: Subscribe(RSS)
weight: 3
url: /index.xml
- identifier: contribute
name: Contributing to this blog
weight: 4
url: /contribute
link:
- identifier: home
name: Homepage
weight: 1
url: https://www.ubucon.asia

25 changes: 25 additions & 0 deletions content/contribute/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: "Contributing to this blog"
---
If you are organizer or person who contributes to UbuCon Asia, You can contribute your own posting to this blog.

# For organizers
First, You must be a member of [`ubucon-asia`](https://github.com/ubucon-asia) organization on GitHub. You will also need read and write acccess to [`ubucon-asia/blog.ubucon.asia`](https://github.com/ubucon-asia/blog.ubucon.asia) repository. If you don't have yet, Ask may other organizers for that.

After gaining all access you need, Clone [`ubucon-asia/blog.ubucon.asia`](https://github.com/ubucon-asia/blog.ubucon.asia) repository to your machine, And get started with writting post with steps that can be found on this [`README.md`](https://github.com/ubucon-asia/blog.ubucon.asia/blob/main/README.md). We recommend you to use dedicated branch for writing new post.

For organizers, You don't need and review process. To publish your post, Commit post files to `main` branch then push to remote repository. Normally, It takes about 5~10 minutes to automatically publish your new post with GitHub Actions.

# If you are not organizer
Fork our blog repository ([`ubucon-asia/blog.ubucon.asia`](https://github.com/ubucon-asia/blog.ubucon.asia)), and then clone it to your machine. And get started with writting post with steps that can be found on this [`README.md`](https://github.com/ubucon-asia/blog.ubucon.asia/blob/main/README.md).

If you're done with writing post, Commit post files to `main` branch then push to your forked repository. Then, Submit [Pull Request](https://github.com/ubucon-asia/blog.ubucon.asia/compare) to review and publish. Our organizers will check and review your post. If your contribution has no problem, Your Pull Request will be accepted and your post will be published.

# Not familiar with Git/GitHub?
Please send us copy of your post and your information(name, profile photo, email address and more) to us [via Email.](mailto:[email protected])

# Things to note when writing post
- Content should be something related with Ubuntu or Ubuntu Korea Community. If your post has nothing to do with these, It will be rejected or deleted.
- Content must be compliant with [Ubuntu Code of Conduct](https://ubuntu.com/community/code-of-conduct)
- Do not push draft to `main` branch. If you're organizer, It is recommended to work on dedicated branch.
- Do not write post to advertise or promote sales of service, business or products
22 changes: 22 additions & 0 deletions content/post/welcome/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
date: 2023-11-01T17:00:00+09:00
title: "Welcome to UbuCon Asia Blog"
tags:
- ubucon
forum_username: sukso96100
authors:
- name: Youngbin Han
bio: Organizer - UbuCon Asia & Ubuntu Korean LoCo
email: [email protected]
launchpad: ybhan
github: sukso96100
profile: https://avatars2.githubusercontent.com/u/1916739?s=460&v=4
# image: groupphoto.jpg # 커버 이미지 URL
draft: false # 글 초안 여부
---

Welcome to the UbuCon Asia Blog! This new blog will be providing latest news from the UbuCon Asia team.
There's been seperate news page on event of each years, Now rather then that. Every notices and updates will be published through this blog first.

If you would like to keep updated with latest news from UbuCon Asia, Make sure to subscribe to our blog RSS feed.
Or you can also follow us on social media! - We plan to audo-post updates from blog in near future.
4 changes: 4 additions & 0 deletions content/tags/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Tags
description: Filter posts by tags
---
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module ubuntukr-blog

go 1.18.1
1 change: 1 addition & 0 deletions static/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blog.ubucon.asia
Loading

0 comments on commit 6643ae5

Please sign in to comment.