From 38b0a937bb61fa5b401318d0f47ab740afc38dc2 Mon Sep 17 00:00:00 2001 From: "Tim J. Kicker" Date: Thu, 18 May 2023 11:56:12 +0200 Subject: [PATCH] test-deployment --- .github/workflows/pages.yml | 38 +++++++++++++++++++++++++ _config.yml | 33 +++++++++++++++------ source/About/index.md | 4 +++ themes/minima/_config.yml | 6 ++-- themes/minima/layout/partial/footer.ejs | 8 ++---- 5 files changed, 73 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/pages.yml create mode 100644 source/About/index.md diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 0000000..aaea329 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,38 @@ +name: Pages + +on: + push: + branches: + - main # default branch + +jobs: + pages: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v3 + with: + token: ${{ secrets.GITHUB_TOKEN }} + # If your repository depends on submodule, please see: https://github.com/actions/checkout + submodules: recursive + - name: Use Node.js 20.x + uses: actions/setup-node@v2 + with: + node-version: '20' + - name: Cache NPM dependencies + uses: actions/cache@v2 + with: + path: node_modules + key: ${{ runner.OS }}-npm-cache + restore-keys: | + ${{ runner.OS }}-npm-cache + - name: Install Dependencies + run: npm install + - name: Build + run: npm run build + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public \ No newline at end of file diff --git a/_config.yml b/_config.yml index ede0d14..90a72ca 100644 --- a/_config.yml +++ b/_config.yml @@ -17,8 +17,8 @@ url: https://tim.kicker.dev permalink: :year/:month/:day/:title/ permalink_defaults: pretty_urls: - trailing_index: true # Set to false to remove trailing 'index.html' from permalinks - trailing_html: true # Set to false to remove trailing '.html' from permalinks + trailing_index: false # Set to false to remove trailing 'index.html' from permalinks + trailing_html: false # Set to false to remove trailing '.html' from permalinks # Directory source_dir: source @@ -40,18 +40,18 @@ external_link: exclude: '' filename_case: 0 render_drafts: false -post_asset_folder: false +post_asset_folder: true relative_link: false future: true highlight: - enable: true - line_number: true + enable: false + line_number: false auto_detect: false tab_replace: '' - wrap: true + wrap: false hljs: false prismjs: - enable: false + enable: true preprocess: true line_number: true tab_replace: '' @@ -85,7 +85,7 @@ updated_option: 'mtime' # Pagination ## Set per_page to 0 to disable pagination -per_page: 10 +per_page: 6 pagination_dir: page # Include / Exclude file(s) @@ -103,3 +103,20 @@ theme: minima ## Docs: https://hexo.io/docs/one-command-deployment deploy: type: '' + + +hfc_html: + enable: true + exclude: + +hfc_css: + enable: true + exclude: + - '*.min.css' + +hfc_js: + enable: true + mangle: true + compress: + exclude: + - '*.min.js' diff --git a/source/About/index.md b/source/About/index.md new file mode 100644 index 0000000..0185617 --- /dev/null +++ b/source/About/index.md @@ -0,0 +1,4 @@ +--- +title: About +date: 2023-05-17 20:35:10 +--- diff --git a/themes/minima/_config.yml b/themes/minima/_config.yml index a1e9332..d4d5194 100644 --- a/themes/minima/_config.yml +++ b/themes/minima/_config.yml @@ -7,7 +7,7 @@ owner: "I am Tim J. Kicker" email: tim.kicker@protonmail.com info: "A student and developer from Austria šŸ‡¦šŸ‡¹" #description -desc: "This is Minima, an undoubtedly simple and lightweight dark/light mode theme for Hexo. I created this from scratch using Skeleton CSS boilerplate. It only uses CSS and Vanilla JS, without using unnecessary third-party 'render-blocking' libraries! šŸ˜" +desc: "The purpose of this website is to give you a small overview about my projects, interestsĀ andĀ opinions." #menu menu: @@ -28,8 +28,8 @@ usercss: css/user.css # social profile at the footer/bottom footer: true -placename: Earth -placelink: https://en.wikipedia.org/wiki/Earth +placename: opensource +placelink: https://github.com/timkicker/timkicker.github.io github: https://github.com/timkicker linkedin: https://www.linkedin.com/in/tim-kicker-5438b1237/ #twitter: https://twitter.com/adisaktijrs diff --git a/themes/minima/layout/partial/footer.ejs b/themes/minima/layout/partial/footer.ejs index 1dbc349..cf0c092 100644 --- a/themes/minima/layout/partial/footer.ejs +++ b/themes/minima/layout/partial/footer.ejs @@ -1,12 +1,10 @@
<% if (theme.footer) { %>
-

Made with ā¤ and - - Hexo.js - +

+ <% if (theme.placename && theme.placelink) { %> - at <%- theme.placename %>.

+ #<%- theme.placename %>

<% } %>