Added favicon.

This commit is contained in:
天クマ 2025-10-26 18:29:26 -03:00
commit 3f5d90b8ae
14 changed files with 73 additions and 61 deletions

View file

@ -1,17 +1,6 @@
<!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>neoBeta</title>
</head>
<body>
<div id="everythingHelper">
{% include "header.njk" %}
---
layout: "skeleton.njk"
---
<main>
{{ content | safe }}
</main>
</div>
</body>
</html>

View file

@ -1,15 +1,6 @@
<!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>neoBeta</title>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
</head>
<body>
<div id="everythingHelper">
{% include "header.njk" %}
---
layout: "skeleton.njk"
---
<div id="projectHeader">
{% if logo %}
<img src="{{ page.dir }}{{ logo }}">
@ -33,6 +24,3 @@
<p class="errorQuote"><i>"If only the clockworks could speak<br>I wouldn't be so alone"</i></p>
{% endif %}
</main>
</div>
</body>
</html>

15
_includes/skeleton.njk Normal file
View 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>

View file

@ -51,13 +51,16 @@ button:hover {
}
code {
background-color: rgb(75, 75, 75);
border: 1px solid white;
padding-left: 4px;
padding-right: 4px;
background-color: darkslategray;
color: var(--accent-color);
/* outline: 1px solid white; */
padding-left: .2em;
padding-right: .2em;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
border-radius: 2px;
/* margin-left: 2px;
margin-right: 2px; */
display: inline-block;
}
input, select {

View file

@ -4,7 +4,7 @@ layout: "base.njk"
## 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:
- 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.
- Host your own instance of neoBeta.
@ -26,3 +26,16 @@ Please fill as many fields as possible.
```"images": "["image1.png", "image2.png", "image3.png"]"```
- *logo* - your logo file name or URL.
```"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"]
}
```

View file

@ -11,6 +11,7 @@ export default function (eleventyConfig) {
eleventyConfig.addPassthroughCopy("authors/**/*.jpg");
eleventyConfig.addPassthroughCopy("authors/**/*.jpeg");
eleventyConfig.addPassthroughCopy("assets");
eleventyConfig.addPassthroughCopy({ "favicon/*" : "/" });
eleventyConfig.addCollection("projects", function(collection) {
return collection.getFilteredByGlob("./projects/**/*.md");

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
favicon/favicon-16x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 721 B

BIN
favicon/favicon-32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
favicon/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

1
favicon/site.webmanifest Normal file
View 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"}

View file

@ -6,7 +6,9 @@ It will calculate and change the game time every second (that's 20 ticks and can
## 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:
```Host: 83AF IdeaPad 1 14IAU7
```
Host: 83AF IdeaPad 1 14IAU7
CPU: 12th Gen Intel i5-1235U (12) @ 1.300GHz
GPU: Intel Alder Lake-UP3 GT2 [Iris Xe Graphics]
Memory: 10097MiB / 15709MiB```
Memory: 10097MiB / 15709MiB
```