diff --git a/.gitignore b/.gitignore index 7b62a71..b9b1111 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,7 @@ hugo.darwin hugo.linux # Temporary lock file while building -/.hugo_build.lock \ No newline at end of file +/.hugo_build.lock +package.json +package-lock.json +node_modules \ No newline at end of file diff --git a/README.md b/README.md index ee8cebd..33da1db 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,19 @@ # web.myco.systems -mycosystems client site +MycoSystems client site ``` git clone https://git.myco.systems/mycosystems/web.myco.systems.git +``` +``` git submodule update --init --recursive ``` -**When committing changes add "web-myco/public" to gitignore and generate hugo files on the vps.** +Optionally, if you are planning to open a PR please use hugo prettier + +``` +npm install --save-dev prettier prettier-plugin-go-template +``` # License: -Body text and articles are under https://creativecommons.org/licenses/by/4.0/ -Everything else is MIT for the extensive use of Blowfish \ No newline at end of file +MIT, thank you to the people over at [Blowfish](https://blowfish.page) \ No newline at end of file diff --git a/archetypes/default.md b/archetypes/default.md deleted file mode 100644 index 00e77bd..0000000 --- a/archetypes/default.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: "{{ replace .Name "-" " " | title }}" -date: {{ .Date }} -draft: true ---- - diff --git a/assets/img/android-chrome-512x512.png b/assets/img/android-chrome-512x512.png deleted file mode 100644 index 603e309..0000000 Binary files a/assets/img/android-chrome-512x512.png and /dev/null differ diff --git a/assets/img/favicon.ico b/assets/img/favicon.ico deleted file mode 100644 index 9e45a05..0000000 Binary files a/assets/img/favicon.ico and /dev/null differ diff --git a/assets/img/mushroom-1.png b/assets/img/mushroom-1.png deleted file mode 100644 index c19fb08..0000000 Binary files a/assets/img/mushroom-1.png and /dev/null differ diff --git a/assets/img/mushroom-2.png b/assets/img/mushroom-2.png deleted file mode 100644 index 9fa0804..0000000 Binary files a/assets/img/mushroom-2.png and /dev/null differ diff --git a/assets/js/home.js b/assets/js/home.js deleted file mode 100644 index fc8e558..0000000 --- a/assets/js/home.js +++ /dev/null @@ -1,76 +0,0 @@ -var layouts = [ - "background", - "hero", - "profile", - "page", - "card" -] - -var currentLayout = 0 - -function switchHomeLayout() { - - var old = currentLayout - currentLayout = currentLayout == layouts.length - 1 ? 0 : currentLayout + 1 - - var oldDiv = document.getElementById(layouts[old]) - var currentDiv = document.getElementById(layouts[currentLayout]) - const layoutCode = document.querySelectorAll("code[id=layout]"); - - currentDiv.style.display = "block"; - oldDiv.style.display = "none"; - layoutCode.forEach(function (el) { - el.innerText = layouts[currentLayout]; - }); - -} - -window.addEventListener("DOMContentLoaded", (event) => { - document.querySelectorAll("#switch-layout-button").forEach((button) => - button.addEventListener("click", function (e) { - e.preventDefault(); - switchHomeLayout(); - }) - ); -}); - -var list_config = [ - "CardViewProse", - "CardViewScreenWidth", - "NormalView" -] - -var titles = { - "CardViewProse" : "card view with constrained width", - "CardViewScreenWidth" : "card view with full width", - "NormalView" : "standard list view" -} - -var currentConfig = 0 - -function switchList() { - - var old = currentConfig - currentConfig = currentConfig == list_config.length - 1 ? 0 : currentConfig + 1 - - var oldDiv = document.getElementById(list_config[old]) - var currentDiv = document.getElementById(list_config[currentConfig]) - const configCode = document.querySelectorAll("code[id=config]"); - - currentDiv.style.display = "block"; - oldDiv.style.display = "none"; - - configCode.forEach(function (el) { - el.innerText = titles[list_config[currentConfig]]; - }); - -} - -window.addEventListener("DOMContentLoaded", (event) => { - document.querySelectorAll("#switch-config-button").forEach((button) => - button.addEventListener("click", function (e) { - e.preventDefault(); - switchList(); - }) - ); -}); diff --git a/static/styles b/static/styles new file mode 160000 index 0000000..951a3bc --- /dev/null +++ b/static/styles @@ -0,0 +1 @@ +Subproject commit 951a3bc1aaaef76d6006ab420bb1458c7ab6c23d