Browse Source

test-deployment

pull/2/head
Tim J. Kicker 1 year ago
parent
commit
38b0a937bb
  1. 38
      .github/workflows/pages.yml
  2. 33
      _config.yml
  3. 4
      source/About/index.md
  4. 6
      themes/minima/_config.yml
  5. 8
      themes/minima/layout/partial/footer.ejs

38
.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

33
_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'

4
source/About/index.md

@ -0,0 +1,4 @@
---
title: About
date: 2023-05-17 20:35:10
---

6
themes/minima/_config.yml

@ -7,7 +7,7 @@ owner: "I am Tim J. Kicker"
email: [email protected]
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

8
themes/minima/layout/partial/footer.ejs

@ -1,12 +1,10 @@
<div class="row mt-2">
<% if (theme.footer) { %>
<div class="eight columns">
<p id="madewith">Made with ❤ and
<a class="footer-link icon" href="https://hexo.io" target="_blank" style="text-decoration: none;" rel="noreferrer" aria-label="Hexo.io">
<svg class="hexo svg-hov" width="14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>Hexo.js</title><path d="M12 .007L1.57 6.056V18.05L12 23.995l10.43-6.049V5.952L12 .007zm4.798 17.105l-.939.521-.939-.521V12.94H9.08v4.172l-.94.521-.938-.521V6.89l.939-.521.939.521v4.172h5.84V6.89l.94-.521.938.521v10.222z"/></svg>
</a>
<p id="madewith">
<% if (theme.placename && theme.placelink) { %>
at <a href="<%- theme.placelink %>" target="_blank" rel="noreferrer"><%- theme.placename %></a>.</p>
#<a href="<%- theme.placelink %>" target="_blank" rel="noreferrer"><%- theme.placename %></a></p>
<% } %>
</div>

Loading…
Cancel
Save