feat: copyright
This commit is contained in:
@@ -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
@@ -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",
|
||||
|
||||
@@ -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> —
|
||||
{{ stripHTML(TITLE) }} © {{ 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>
|
||||
</small>
|
||||
</footer>
|
||||
</template>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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] })],
|
||||
|
||||
Reference in New Issue
Block a user