Skip to content

Commit

Permalink
Merge pull request #4 from lukebemish/main
Browse files Browse the repository at this point in the history
Style updates
  • Loading branch information
cpw authored Sep 27, 2023
2 parents fbcd28c + 8abd680 commit e054f6c
Show file tree
Hide file tree
Showing 13 changed files with 184 additions and 5,194 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
public/
.hugo_build.lock
Binary file added assets/img/content/branding/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/content/branding/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions assets/js/neoforge.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ async function loadLatestVersions(minecraftVersions) {
const installerUrl = `${DOWNLOAD_URL}/${encodeURIComponent(version)}/forge-${encodeURIComponent(version)}-installer.jar`;
const changelogUrl = `${DOWNLOAD_URL}/${encodeURIComponent(version)}/forge-${encodeURIComponent(version)}-changelog.txt`;
document.querySelector("#filelist").innerHTML = `
<a href="${installerUrl}">Latest <em>NeoForge</em> Installer - neoforge-${version}-installer.jar</a>
<a href="${changelogUrl}">Latest Changelog (${version})</a>
<div class="fileinfo__header">NeoForge ${version}</div>
<div class="fileinfo__body">
<a href="${installerUrl}"><span>Latest <em>NeoForge</em> Installer</span><span>neoforge-${version}-installer.jar</span></a>
<a href="${changelogUrl}"><span>Latest Changelog</span><span>${version}</span></a>
</div>
`;
}
}
Expand Down
2 changes: 1 addition & 1 deletion data/authors/neoforgedteam.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: NeoForged Team
bio: |
We are the NeoForged team.
avatar: /img/authors/neoforgedteam.png
avatar: /img/branding/banner.png
social:
github: https://github.com/NeoForged/
10 changes: 8 additions & 2 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ theme = "mainroad"
mainSections = ["news"]

[Params.logo]
image = "img/logo.svg"
title = "The NeoForged Project"
image = "img/content/branding/banner.png"
alt = "The NeoForged Project logo"
subtitle = "Files, News and information from the NeoForged Project" # Logo subtitle

[Params.sidebar]
Expand All @@ -28,3 +28,9 @@ theme = "mainroad"
[Params.widgets]
recent_num = 5 # Set the number of articles in the "Recent articles" widget
tags_counter = false # Enable counter for each tag in "Tags" widget (disabled by default)

[Params.style]
vars.highlightColor = "#d7742f"
vars.backgroundColor = "#d5e0df"
vars.boxColor = "#bdc7c7"
vars.borderColor = "#aab0b3"
8 changes: 6 additions & 2 deletions layouts/shortcodes/files.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{{ $js:= resources.Get "js/neoforge.js" }}
<script src="{{ $js.Permalink }}"></script>
<script src="{{ $js.RelPermalink }}"></script>
<div id="filelist" class="fileinfo">
The latest file should appear here.
<div class="fileinfo__header">NeoForge (loading version...)</div>
<div class="fileinfo__body">
<a><span>Latest <em>NeoForge</em> Installer</span><span class="fileinfo__placeholder">neoforge-0.00.00-00.00.00-installer.jar</span></a>
<a><span>Latest Changelog</span><span class="fileinfo__placeholder">0.00.00-00.00.00</span></a>
</div>
</div>
<script>
document.addEventListener("readystatechange", evt=>{
Expand Down
Binary file removed static/img/authors/neoforgedteam.png
Binary file not shown.
Binary file removed static/img/content/curletest/squirr.png
Binary file not shown.
5,093 changes: 0 additions & 5,093 deletions static/img/logo.svg

This file was deleted.

Loading

0 comments on commit e054f6c

Please sign in to comment.