Added favicon.
This commit is contained in:
parent
8354b455d4
commit
3f5d90b8ae
14 changed files with 73 additions and 61 deletions
|
|
@ -1,17 +1,6 @@
|
||||||
<!DOCTYPE html>
|
---
|
||||||
<html lang="en">
|
layout: "skeleton.njk"
|
||||||
<head>
|
---
|
||||||
<meta charset="UTF-8">
|
<main>
|
||||||
<link rel="stylesheet" href="/assets/styles.css" media="screen">
|
{{ content | safe }}
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
</main>
|
||||||
<title>neoBeta</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="everythingHelper">
|
|
||||||
{% include "header.njk" %}
|
|
||||||
<main>
|
|
||||||
{{ content | safe }}
|
|
||||||
</main>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
@ -1,38 +1,26 @@
|
||||||
<!DOCTYPE html>
|
---
|
||||||
<html lang="en">
|
layout: "skeleton.njk"
|
||||||
<head>
|
---
|
||||||
<meta charset="UTF-8">
|
<div id="projectHeader">
|
||||||
<link rel="stylesheet" href="/assets/styles.css" media="screen">
|
{% if logo %}
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<img src="{{ page.dir }}{{ logo }}">
|
||||||
<title>neoBeta</title>
|
{% endif %}
|
||||||
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
<div id="projectTitleSubtitle">
|
||||||
</head>
|
<div id="projectTitleAuthor">
|
||||||
<body>
|
<h1 id="projectTitle">{{ name }}</h1>
|
||||||
<div id="everythingHelper">
|
<p id="projectAuthor">by <a href="/authors/{{ author }}">{{ author }}</a></p>
|
||||||
{% include "header.njk" %}
|
|
||||||
<div id="projectHeader">
|
|
||||||
{% if logo %}
|
|
||||||
<img src="{{ page.dir }}{{ logo }}">
|
|
||||||
{% endif %}
|
|
||||||
<div id="projectTitleSubtitle">
|
|
||||||
<div id="projectTitleAuthor">
|
|
||||||
<h1 id="projectTitle">{{ name }}</h1>
|
|
||||||
<p id="projectAuthor">by <a href="/authors/{{ author }}">{{ author }}</a></p>
|
|
||||||
</div>
|
|
||||||
<p id="projectSubtitle">{{ subtitle }}</p>
|
|
||||||
</div>
|
|
||||||
<a id="downloadLink" href="{{ downloadLink }}"><button id="downloadButton">{% if downloadLink %}Download{% else %}Unavailable{% endif %}</button></a>
|
|
||||||
</div>
|
</div>
|
||||||
{% include "project_image.njk" %}
|
<p id="projectSubtitle">{{ subtitle }}</p>
|
||||||
<main id="projectDescription">
|
|
||||||
{% if content %}
|
|
||||||
{{ content | safe }}
|
|
||||||
{% else %}
|
|
||||||
<h2>Oopsie! :<</h2>
|
|
||||||
<p>Seems like we don't have a description for this project.</p>
|
|
||||||
<p class="errorQuote"><i>"If only the clockworks could speak<br>I wouldn't be so alone"</i></p>
|
|
||||||
{% endif %}
|
|
||||||
</main>
|
|
||||||
</div>
|
</div>
|
||||||
</body>
|
<a id="downloadLink" href="{{ downloadLink }}"><button id="downloadButton">{% if downloadLink %}Download{% else %}Unavailable{% endif %}</button></a>
|
||||||
</html>
|
</div>
|
||||||
|
{% include "project_image.njk" %}
|
||||||
|
<main id="projectDescription">
|
||||||
|
{% if content %}
|
||||||
|
{{ content | safe }}
|
||||||
|
{% else %}
|
||||||
|
<h2>Oopsie! :<</h2>
|
||||||
|
<p>Seems like we don't have a description for this project.</p>
|
||||||
|
<p class="errorQuote"><i>"If only the clockworks could speak<br>I wouldn't be so alone"</i></p>
|
||||||
|
{% endif %}
|
||||||
|
</main>
|
||||||
15
_includes/skeleton.njk
Normal file
15
_includes/skeleton.njk
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<link rel="stylesheet" href="/assets/styles.css" media="screen">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>{% if name %}{{ name }} - {% endif %}neoBeta</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="everythingHelper">
|
||||||
|
{% include "header.njk" %}
|
||||||
|
{{ content | safe }}
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -51,13 +51,16 @@ button:hover {
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
background-color: rgb(75, 75, 75);
|
background-color: darkslategray;
|
||||||
border: 1px solid white;
|
color: var(--accent-color);
|
||||||
padding-left: 4px;
|
/* outline: 1px solid white; */
|
||||||
padding-right: 4px;
|
padding-left: .2em;
|
||||||
|
padding-right: .2em;
|
||||||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||||||
|
border-radius: 2px;
|
||||||
/* margin-left: 2px;
|
/* margin-left: 2px;
|
||||||
margin-right: 2px; */
|
margin-right: 2px; */
|
||||||
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
input, select {
|
input, select {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ layout: "base.njk"
|
||||||
## How can I get my project here?
|
## How can I get my project here?
|
||||||
|
|
||||||
neoBeta is an open-source content management system. There are various ways you can put your plugin/mod on our catalog:
|
neoBeta is an open-source content management system. There are various ways you can put your plugin/mod on our catalog:
|
||||||
- Clone neoBeta's repository, create your project folder inside the /projects directory with the necessary metadata (index.md for project description, index.json for metadata and any other file your project may depend on) and make a pull request. Less manual work on our side, so review should be quickier.
|
- Clone [neoBeta's repository](https://github.com/adrianvic/neoBeta), create your project folder inside the /projects directory with the necessary metadata (index.md for project description, index.json for metadata and any other file your project may depend on) and make a pull request. Less manual work on our side, so review should be quickier.
|
||||||
- Open an issue on our GitHub repository with the project information. This may take longer as a contributor will have to spend time creating the project files, but is useful if you're not confortable using Git.
|
- Open an issue on our GitHub repository with the project information. This may take longer as a contributor will have to spend time creating the project files, but is useful if you're not confortable using Git.
|
||||||
- Host your own instance of neoBeta.
|
- Host your own instance of neoBeta.
|
||||||
|
|
||||||
|
|
@ -25,4 +25,17 @@ Please fill as many fields as possible.
|
||||||
- *images* - lists of image files names or URLs that will appear in the project page.
|
- *images* - lists of image files names or URLs that will appear in the project page.
|
||||||
```"images": "["image1.png", "image2.png", "image3.png"]"```
|
```"images": "["image1.png", "image2.png", "image3.png"]"```
|
||||||
- *logo* - your logo file name or URL.
|
- *logo* - your logo file name or URL.
|
||||||
```"logo": "logo.png"```
|
```"logo": "logo.png"```
|
||||||
|
|
||||||
|
### Config file example
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"name": "Ghosts 'n Stuff",
|
||||||
|
"subtitle": "Miscellaneous additions to your server.",
|
||||||
|
"author": "tenkuma",
|
||||||
|
"downloadLink": "https://example.com",
|
||||||
|
"images": "["image1.png", "image2.png", "image3.png"]",
|
||||||
|
"logo": "logo.png",
|
||||||
|
"tags": ["plugin", "mod"]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
@ -11,6 +11,7 @@ export default function (eleventyConfig) {
|
||||||
eleventyConfig.addPassthroughCopy("authors/**/*.jpg");
|
eleventyConfig.addPassthroughCopy("authors/**/*.jpg");
|
||||||
eleventyConfig.addPassthroughCopy("authors/**/*.jpeg");
|
eleventyConfig.addPassthroughCopy("authors/**/*.jpeg");
|
||||||
eleventyConfig.addPassthroughCopy("assets");
|
eleventyConfig.addPassthroughCopy("assets");
|
||||||
|
eleventyConfig.addPassthroughCopy({ "favicon/*" : "/" });
|
||||||
|
|
||||||
eleventyConfig.addCollection("projects", function(collection) {
|
eleventyConfig.addCollection("projects", function(collection) {
|
||||||
return collection.getFilteredByGlob("./projects/**/*.md");
|
return collection.getFilteredByGlob("./projects/**/*.md");
|
||||||
|
|
|
||||||
BIN
favicon/android-chrome-192x192.png
Normal file
BIN
favicon/android-chrome-192x192.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
BIN
favicon/android-chrome-512x512.png
Normal file
BIN
favicon/android-chrome-512x512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 96 KiB |
BIN
favicon/apple-touch-icon.png
Normal file
BIN
favicon/apple-touch-icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
BIN
favicon/favicon-16x16.png
Normal file
BIN
favicon/favicon-16x16.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 721 B |
BIN
favicon/favicon-32x32.png
Normal file
BIN
favicon/favicon-32x32.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
BIN
favicon/favicon.ico
Normal file
BIN
favicon/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
1
favicon/site.webmanifest
Normal file
1
favicon/site.webmanifest
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
|
||||||
|
|
@ -6,7 +6,9 @@ It will calculate and change the game time every second (that's 20 ticks and can
|
||||||
## Performance
|
## Performance
|
||||||
I am not sure if this plugin has any significant performance hit, it runs code every few ticks (you can in/decrease the frequency in the config) and that is not the best approach for doing this, but it's the only that works in beta. Using it with `ticksBetweenUpdate: 1` does not seem to change the performance in any way. The specifications for the computer used for the tests:
|
I am not sure if this plugin has any significant performance hit, it runs code every few ticks (you can in/decrease the frequency in the config) and that is not the best approach for doing this, but it's the only that works in beta. Using it with `ticksBetweenUpdate: 1` does not seem to change the performance in any way. The specifications for the computer used for the tests:
|
||||||
|
|
||||||
```Host: 83AF IdeaPad 1 14IAU7
|
```
|
||||||
|
Host: 83AF IdeaPad 1 14IAU7
|
||||||
CPU: 12th Gen Intel i5-1235U (12) @ 1.300GHz
|
CPU: 12th Gen Intel i5-1235U (12) @ 1.300GHz
|
||||||
GPU: Intel Alder Lake-UP3 GT2 [Iris Xe Graphics]
|
GPU: Intel Alder Lake-UP3 GT2 [Iris Xe Graphics]
|
||||||
Memory: 10097MiB / 15709MiB```
|
Memory: 10097MiB / 15709MiB
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue