-
Notifications
You must be signed in to change notification settings - Fork 16
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
Showing
126 changed files
with
3,596 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,17 @@ | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.toml] | ||
max_line_length = 100 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = 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,2 @@ | ||
github: gcushen | ||
custom: https://hugoblox.com/sponsor/ |
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,57 @@ | ||
# Hugo Blox GitHub Action to convert Bibtex publications to Markdown-based webpages | ||
name: Import Publications From Bibtex | ||
|
||
# Require permission to create a PR | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
# Run workflow when a `.bib` file is added or updated in the `data/` folder | ||
on: | ||
push: | ||
branches: ['main'] | ||
paths: ['publications.bib'] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
hugoblox: | ||
if: github.repository_owner != 'HugoBlox' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v4 | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install academic==0.10.0 | ||
- name: Run Academic (Bibtex To Markdown Converter) | ||
# Check `.bib` file exists for case when action runs on `.bib` deletion | ||
# Note GH only provides hashFiles func in `steps.if` context, not `jobs.if` context | ||
if: ${{ hashFiles('publications.bib') != '' }} | ||
run: academic import publications.bib content/publication/ --compact | ||
- name: Create Pull Request | ||
# Set ID for `Check outputs` stage | ||
id: cpr | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
commit-message: 'content: import publications from Bibtex' | ||
title: Hugo Blox Builder - Import latest publications | ||
body: | | ||
Import the latest publications from `publications.bib` to `content/publication/`. | ||
将最新的出版物从`publications.bib`导入到`content/publication/`。 | ||
[View Documentation](https://github.com/GetRD/academic-file-converter) | ||
base: main | ||
labels: automated-pr, content | ||
branch: hugoblox-import-publications | ||
delete-branch: true | ||
- name: Check outputs | ||
if: ${{ steps.cpr.outputs.pull-request-number }} | ||
run: | | ||
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" | ||
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" |
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,70 @@ | ||
name: Deploy website to GitHub Pages | ||
|
||
env: | ||
WC_HUGO_VERSION: '0.125.7' | ||
|
||
on: | ||
# Trigger the workflow every time you push to the `main` branch | ||
push: | ||
branches: ["main"] | ||
# Allows you to run this workflow manually from the Actions tab on GitHub. | ||
workflow_dispatch: | ||
|
||
# Provide permission to clone the repo and deploy it to GitHub Pages | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
# Build website | ||
build: | ||
if: github.repository_owner != 'HugoBlox' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
# Fetch history for Hugo's .GitInfo and .Lastmod | ||
fetch-depth: 0 | ||
- name: Setup Hugo | ||
uses: peaceiris/actions-hugo@v3 | ||
with: | ||
hugo-version: ${{ env.WC_HUGO_VERSION }} | ||
extended: true | ||
- uses: actions/cache@v4 | ||
with: | ||
path: /tmp/hugo_cache_runner/ | ||
key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.mod') }} | ||
restore-keys: | | ||
${{ runner.os }}-hugomod- | ||
- name: Setup Pages | ||
id: pages | ||
uses: actions/configure-pages@v5 | ||
- name: Build with Hugo | ||
env: | ||
HUGO_ENVIRONMENT: production | ||
run: | | ||
echo "Hugo Cache Dir: $(hugo config | grep cachedir)" | ||
hugo --minify --baseURL "${{ steps.pages.outputs.base_url }}/" | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ./public | ||
|
||
# Deploy website to GitHub Pages hosting | ||
deploy: | ||
if: github.repository_owner != 'HugoBlox' | ||
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 |
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 @@ | ||
# IDEs | ||
.idea/ | ||
|
||
# Hugo | ||
/resources/ | ||
public/ | ||
assets/jsconfig.json |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020-present George Cushen | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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 |
---|---|---|
@@ -1 +1 @@ | ||
# MICV-yonsei.github.io | ||
# MICV-yonsei.github.io |
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,72 @@ | ||
/* static/css/styles.css */ | ||
body { | ||
font-family: Arial, sans-serif; | ||
} | ||
|
||
nav { | ||
position: fixed; | ||
top: 0; | ||
width: 100%; | ||
background-color: #ffffff; | ||
color: #fff; | ||
padding: 1em 0; | ||
text-align: center; | ||
} | ||
|
||
nav ul { | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
nav ul li { | ||
display: inline; | ||
margin: 0 1em; | ||
} | ||
|
||
.section { | ||
padding: 100px 20px; | ||
margin-top: 50px; /* Adjust for fixed nav */ | ||
} | ||
|
||
.article-style { | ||
font-size: 16px; /* 폰트 사이즈 */ | ||
color: #333; /* 텍스트 색깔 */ | ||
line-height: 1.6; /* 행간 */ | ||
font-family: 'Arial, sans-serif'; /* 폰트 패밀리 */ | ||
margin-bottom: 20px; /* 하단 여백 */ | ||
background-color: #f9f9f9; /* 배경 색깔 */ | ||
padding: 15px; /* 내부 여백 */ | ||
border-radius: 5px; /* 모서리 둥글기 */ | ||
border: 1px solid #ddd; /* 테두리 */ | ||
} | ||
|
||
.article-style h1, | ||
.article-style h2, | ||
.article-style h3, | ||
.article-style h4, | ||
.article-style h5, | ||
.article-style h6 { | ||
color: #222; /* 헤딩 색깔 */ | ||
margin-top: 20px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.article-style p { | ||
margin-bottom: 15px; /* 단락 하단 여백 */ | ||
} | ||
|
||
.article-style a { | ||
color: #007bff; /* 링크 색깔 */ | ||
text-decoration: none; /* 링크 밑줄 제거 */ | ||
} | ||
|
||
.article-style a:hover { | ||
text-decoration: underline; /* 링크 호버 시 밑줄 */ | ||
} | ||
|
||
.article-style ul, | ||
.article-style ol { | ||
margin-bottom: 20px; /* 리스트 하단 여백 */ | ||
padding-left: 40px; /* 리스트 왼쪽 여백 */ | ||
} |
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,9 @@ | ||
// assets/js/scripts.js | ||
document.querySelectorAll("nav a").forEach((anchor) => { | ||
anchor.addEventListener("click", function (e) { | ||
e.preventDefault(); | ||
document.querySelector(this.getAttribute("href")).scrollIntoView({ | ||
behavior: "smooth", | ||
}); | ||
}); | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.