feat: copyright

This commit is contained in:
2026-04-26 15:39:15 +02:00
parent 8d7388835b
commit 169f35b556
5 changed files with 11 additions and 7 deletions
+3
View File
@@ -19,8 +19,11 @@ bun run build
- [x] SPA and opengraph
- [x] build with github actions
- [x] config in sub repo
- [x] copyright
- [ ] nav bar on top
- [ ] date updated
- [ ] archive page
- [ ] about page
- [ ] contact/links
- [ ] link to previous/next article
- [ ] proper docs
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "md-blog",
"version": "1.2.0",
"version": "1.3.0",
"private": true,
"type": "module",
"repository": "https://github.com/klemek/md-blog",
+5 -6
View File
@@ -1,5 +1,6 @@
<script setup lang="ts">
import { REPOSITORY, NAME, VERSION, BASE_URL } from '@/lib/meta'
import { REPOSITORY, NAME, VERSION, BASE_URL, TITLE, COPYRIGHT } from '@/lib/meta'
import { stripHTML } from '@/lib/strings';
</script>
<template>
@@ -8,10 +9,8 @@ import { REPOSITORY, NAME, VERSION, BASE_URL } from '@/lib/meta'
</template>
<hr />
<footer>
<small>
{{ new Date().getFullYear() }} Made with
<a :href="REPOSITORY">{{ NAME }} {{ VERSION }}</a>
<a :href="BASE_URL + 'atom.xml'"><i icon="rss"></i> RSS</a>
</small>
{{ stripHTML(TITLE) }} &copy; {{ new Date().getFullYear() }}, <span v-html="COPYRIGHT"></span> | Made with
<a :href="REPOSITORY">{{ NAME }} {{ VERSION }}</a> |
<a :href="BASE_URL + 'atom.xml'"><i icon="rss"></i> RSS</a>
</footer>
</template>
+1
View File
@@ -5,4 +5,5 @@ export const VERSION = packageJson.version
export const REPOSITORY = packageJson.repository
export const TITLE = import.meta.env.VITE_APP_TITLE
export const SIGNATURE = import.meta.env.VITE_APP_SIGNATURE
export const COPYRIGHT = import.meta.env.VITE_APP_COPYRIGHT
export const BASE_URL = import.meta.env.BASE_URL
+1
View File
@@ -16,6 +16,7 @@ export default ({ mode }: { mode: string }) => {
process.env.VITE_APP_LANG = articlesConfig['lang']
process.env.VITE_APP_SIGNATURE = articlesConfig['signature']
process.env.VITE_CUSTOM_HEAD = articlesConfig['custom_head']
process.env.VITE_APP_COPYRIGHT = articlesConfig['copyright']
return defineConfig({
plugins: [vue(), vueDevTools(), mdPlugin({ mode: [Mode.HTML] })],