From 3ef54f0d4254cbe565bf181c287af89827218910 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Thu, 16 Feb 2023 09:40:53 +0100 Subject: [PATCH] initial import --- .gitignore | 8 ++++++ LICENSE.md | 9 +++++++ README.md | 11 ++++++++ assets/js/index.ts | 2 ++ assets/jsconfig.json | 10 ++++++++ exampleSite/config.yaml | 44 ++++++++++++++++++++++++++++++++ exampleSite/content/_index.md | 15 +++++++++++ layouts/partials/js.html | 7 +++++ layouts/shortcodes/pv-count.html | 4 +++ theme.yaml | 15 +++++++++++ 10 files changed, 125 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE.md create mode 100644 README.md create mode 100644 assets/js/index.ts create mode 100644 assets/jsconfig.json create mode 100644 exampleSite/config.yaml create mode 100644 exampleSite/content/_index.md create mode 100644 layouts/partials/js.html create mode 100644 layouts/shortcodes/pv-count.html create mode 100644 theme.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8881c3f --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +public +resources +themes +assets/img +assets/js/lib +static/img +static/js/lib +.hugo_build.lock diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..d6506c0 --- /dev/null +++ b/LICENSE.md @@ -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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..5ca348f --- /dev/null +++ b/README.md @@ -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 + + diff --git a/assets/js/index.ts b/assets/js/index.ts new file mode 100644 index 0000000..dee2a07 --- /dev/null +++ b/assets/js/index.ts @@ -0,0 +1,2 @@ + +PetiteVue.createApp({$delimiters: ['{|', '|}']}).mount() diff --git a/assets/jsconfig.json b/assets/jsconfig.json new file mode 100644 index 0000000..377218c --- /dev/null +++ b/assets/jsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "paths": { + "*": [ + "*" + ] + } + } +} \ No newline at end of file diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml new file mode 100644 index 0000000..84d7df7 --- /dev/null +++ b/exampleSite/config.yaml @@ -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 diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md new file mode 100644 index 0000000..d7875e0 --- /dev/null +++ b/exampleSite/content/_index.md @@ -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 >}} diff --git a/layouts/partials/js.html b/layouts/partials/js.html new file mode 100644 index 0000000..4336bfa --- /dev/null +++ b/layouts/partials/js.html @@ -0,0 +1,7 @@ + + +{{ $js := resources.Get "js/index.ts" | js.Build }} + + diff --git a/layouts/shortcodes/pv-count.html b/layouts/shortcodes/pv-count.html new file mode 100644 index 0000000..bfaa168 --- /dev/null +++ b/layouts/shortcodes/pv-count.html @@ -0,0 +1,4 @@ +
+ {| count |} + +
diff --git a/theme.yaml b/theme.yaml new file mode 100644 index 0000000..ff8bdac --- /dev/null +++ b/theme.yaml @@ -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" +