Skip to content

Commit

Permalink
replace hugo to nuxt
Browse files Browse the repository at this point in the history
  • Loading branch information
kzhrk committed May 3, 2024
1 parent 02ce3c3 commit 8a2516a
Show file tree
Hide file tree
Showing 76 changed files with 10,828 additions and 9,264 deletions.
5 changes: 0 additions & 5 deletions .babelrc

This file was deleted.

7 changes: 1 addition & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,5 @@ root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2

[Makefile]
charset = utf-8
indent_style = tab
indent_size = 2
indent_size = 2
19 changes: 0 additions & 19 deletions .eslintrc.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
42 changes: 42 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["20.x"]
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: pnpm i
- name: Generate Nuxt
run: pnpm generate

- uses: actions/upload-pages-artifact@v3
with:
path: dist

deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
39 changes: 0 additions & 39 deletions .github/workflows/gh-pages.yml

This file was deleted.

26 changes: 20 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
# Nuxt dev/build outputs
.output
.data
.nuxt
.nitro
.cache
dist

# Node dependencies
node_modules

# Logs
logs
*.log

# Misc
.DS_Store
Thumbs.db
.fleet
.idea
config.js
package-lock.json
public
tmp

npm-debug*
# Local env files
.env
.env.*
!.env.example
File renamed without changes.
4 changes: 0 additions & 4 deletions Dockerfile

This file was deleted.

76 changes: 75 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,75 @@
# blog.kzhrk.com
# Nuxt 3 Minimal Starter

Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.

## Setup

Make sure to install the dependencies:

```bash
# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

# bun
bun install
```

## Development Server

Start the development server on `http://localhost:3000`:

```bash
# npm
npm run dev

# pnpm
pnpm run dev

# yarn
yarn dev

# bun
bun run dev
```

## Production

Build the application for production:

```bash
# npm
npm run build

# pnpm
pnpm run build

# yarn
yarn build

# bun
bun run build
```

Locally preview production build:

```bash
# npm
npm run preview

# pnpm
pnpm run preview

# yarn
yarn preview

# bun
bun run preview
```

Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
63 changes: 63 additions & 0 deletions app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<script lang="ts" setup>
const title = "blog.kzhrk.com";
useHead(() => ({
title,
meta: [
{
name: "twitter:card",
content: "summary_large_image",
},
// {
// name: "twitter:image",
// content: "https://blog.kzhrk.com/images/logo.png",
// },
{
name: "twitter:title",
content: title,
},
// {
// property: "og:image",
// content: "https://blog.kzhrk.com/images/logo.png",
// },
{
property: "og:site_name",
content: "blog.kzhrk.com",
},
{
property: "og:type",
content: "blog",
},
{
property: "og:url",
content: "https://blog.kzhrk.com/",
},
],
script: [
{
src: "https://www.googletagmanager.com/gtag/js?id=G-E9G5KSJ28F",
async: true,
},
{
innerHTML: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-E9G5KSJ28F');
`,
},
],
}));
</script>

<template>
<nuxt-layout>
<nuxt-page />
</nuxt-layout>
</template>

<style>
body {
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica Neue, Hiragino Kaku Gothic ProN, meiryo, sans-serif;
}
</style>
3 changes: 3 additions & 0 deletions assets/css/tailwind.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
17 changes: 17 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.1/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
}
}
15 changes: 0 additions & 15 deletions config.yml

This file was deleted.

Loading

0 comments on commit 8a2516a

Please sign in to comment.