initial import

This commit is contained in:
Helmut Merz 2023-02-16 09:40:53 +01:00
commit 3ef54f0d42
10 changed files with 125 additions and 0 deletions

8
.gitignore vendored Normal file
View file

@ -0,0 +1,8 @@
public
resources
themes
assets/img
assets/js/lib
static/img
static/js/lib
.hugo_build.lock

9
LICENSE.md Normal file
View file

@ -0,0 +1,9 @@
# The MIT License (MIT)
Copyright (c) 2021 cyberconcepts.org team (team@cyberconcepts.org)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

11
README.md Normal file
View file

@ -0,0 +1,11 @@
# cyberviews
A Hugo theme for generating HTML fragments that may be loaded via AJAX and inserted in an HTML page. To be used for building single-page applications.
## Features
## Configuration

2
assets/js/index.ts Normal file
View file

@ -0,0 +1,2 @@
PetiteVue.createApp({$delimiters: ['{|', '|}']}).mount()

10
assets/jsconfig.json Normal file
View file

@ -0,0 +1,10 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"*": [
"*"
]
}
}
}

44
exampleSite/config.yaml Normal file
View file

@ -0,0 +1,44 @@
baseurl: /
DefaultContentLanguage: en
title: cyberscopes example site
paginate: 6
theme:
- cyberscopes
- cybercards
themesDir: themes
pygmentsUseClasses: true
params:
#defaultImage: 9609-motor2.jpg
logo: cc-logo.png
favicon: icon-star-bl.png
github: https://github.com/cyberconcepts
sourcehut: https://git.sr.ht/~cco
email: helmutm@cy55.de
copyright:
name: Helmut Merz
link: https://blog.cy7.eu
taxonomies:
domain: domains
topic: topics
menu:
main:
- identifier: home
name: Home
title: Home
url: /posts
weight: 10
- identifier: topics
name: Topics
title: Topics
url: /topics/
weight: 20
- identifier: domains
name: Domains
title: Domains
url: /domains/
weight: 21

View file

@ -0,0 +1,15 @@
---
title: "example"
summary: ""
img:
domains: []
topics: []
date: 2023-02-16
author: helmutm
draft: false
weight: 10
---
cyberscopes example site - use petite-vue in Hugo-generated sites.
{{< pv-count >}}

7
layouts/partials/js.html Normal file
View file

@ -0,0 +1,7 @@
<!--<script src="https://unpkg.com/petite-vue"></script>-->
<script src="js/lib/petite-vue.iife.js"></script>
{{ $js := resources.Get "js/index.ts" | js.Build }}
<script src="{{ $js.Permalink }}"></script>
<!--<script>
PetiteVue.createApp({$delimiters: ['{|', '|}']}).mount()
</script>-->

View file

@ -0,0 +1,4 @@
<div v-scope="{ count: 0 }">
{| count |}
<button @click="count++">inc</button>
</div>

15
theme.yaml Normal file
View file

@ -0,0 +1,15 @@
# theme.yaml
name: cyberposts
license: "MIT"
licenselink: "https://github.com/bul-ikana/hugo-cards/blob/master/LICENSE.md"
description: "A hugo theme for rendering pages with petite-vue scopes"
homepage: "https://www.cyberconcepts.org"
tags: ["forms"]
features: []
min_version: "0.100.0"
author:
name: "cyberconcepts.org team"
homepage: "https://www.cyberconcepts.org"