update gitignore, update readme, remove images
This commit is contained in:
parent
f137fa25c7
commit
2c258736a7
9 changed files with 14 additions and 87 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -11,3 +11,6 @@ hugo.linux
|
||||||
|
|
||||||
# Temporary lock file while building
|
# Temporary lock file while building
|
||||||
/.hugo_build.lock
|
/.hugo_build.lock
|
||||||
|
package.json
|
||||||
|
package-lock.json
|
||||||
|
node_modules
|
13
README.md
13
README.md
|
@ -1,14 +1,19 @@
|
||||||
# web.myco.systems
|
# web.myco.systems
|
||||||
|
|
||||||
mycosystems client site
|
MycoSystems client site
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone https://git.myco.systems/mycosystems/web.myco.systems.git
|
git clone https://git.myco.systems/mycosystems/web.myco.systems.git
|
||||||
|
```
|
||||||
|
```
|
||||||
git submodule update --init --recursive
|
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:
|
# License:
|
||||||
Body text and articles are under https://creativecommons.org/licenses/by/4.0/
|
MIT, thank you to the people over at [Blowfish](https://blowfish.page)
|
||||||
Everything else is MIT for the extensive use of Blowfish
|
|
|
@ -1,6 +0,0 @@
|
||||||
---
|
|
||||||
title: "{{ replace .Name "-" " " | title }}"
|
|
||||||
date: {{ .Date }}
|
|
||||||
draft: true
|
|
||||||
---
|
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 25 KiB |
Binary file not shown.
Before Width: | Height: | Size: 15 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.9 MiB |
Binary file not shown.
Before Width: | Height: | Size: 1.8 MiB |
|
@ -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();
|
|
||||||
})
|
|
||||||
);
|
|
||||||
});
|
|
1
static/styles
Submodule
1
static/styles
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 951a3bc1aaaef76d6006ab420bb1458c7ab6c23d
|
Loading…
Add table
Reference in a new issue