Are you looking to build a Neocities (https://neoticies.org) site, but aren't sure where to start?
This template makes it easy to create your own retro-style website. Here's how to add your own stuff:
All your pictures should go into the assets/images/ folder. We've created some subfolders to help you keep things organized:
banners/: Put big, wide images that you want at the top of your pages here.general/: Logos, small icons, or any image you use on many different pages go here.page_specific/: If a picture is only for one page, find the folder with that page's name inside here (e.g.,about/for the About page,index/for the homepage) and put the picture there. If a folder for your page doesn't exist, you can create one!sidebar/: Small images that you want to show in the left or right columns of your website.thumbnails/: Smaller versions of your pictures that you might use as previews.
How to use your pictures on a page:
When you're editing the .html files in the pages/ folder or the sidebar files in the partials/ folder, you'll use code like this to show a picture:
html <img src="/assets/images/your_folder/your_picture.jpg" alt="A description of your picture">
Replace your_folder with the name of the folder where you put your picture (e.g., general, about), and your_picture.jpg with the actual name of your image file. Make sure the spelling is exactly the same!
If you want to add blog posts or articles, you can either:
Edit the articles.html file in the pages/ folder directly and write your content there using HTML.
Put your blog post text files (like .txt files) into the assets/text/articles/ folder. You might need to edit the articles.html file to read and display these text files (this might require a little more technical knowledge).
Put your video files in the assets/media/videos/ folder and your music files in the assets/media/audio/ folder. You'll need to use HTML code (like the
Menu: Open the partials/nav.html file. You'll see lines like <a href="#">Home</a>. Change the # to the actual web address of your pages (e.g., /pages/about.html) and change the text "Home" to what you want the menu link to say.
Left Sidebar: Edit the partials/sidebar_left.html file to add your own text, images, and links.
Right Sidebar: Edit the partials/sidebar_right.html file similarly.
This template uses several CSS files within the css/ folder to control how your website looks. Here's a breakdown of each file and how you can make basic style changes:
1. css/base.css - The Foundation
- Purpose: This file sets the fundamental styles for your entire website. It controls things like the main font ('Press Start 2P'), the black background (background-color: #000;), the bright green text color (color: #00ff00;), and the subtle burnt-in and scanline effects.
- How to Change:
- Change the Font: To use a different retro pixel font, find the
font-familyline in thebodyrule and replace'Press Start 2P', cursive;with the name of another web-safe font or a font you've linked (like from Google Fonts). - Change Background Color: Look for the
background-colorin thebodyrule and change#000to your desired color (e.g.,#333for dark gray,#111for a slightly lighter black). You can use hex codes or color names. - Change Text Color: Find the
colorproperty in thebodyrule and change#00ff00to your preferred text color (e.g.,#ffff00for yellow,#ccccccfor light gray).
- Change the Font: To use a different retro pixel font, find the
2. css/layout.css - The Structure
- Purpose: This file controls the main three-column layout (sidebars and main content), the overall width of the site, and the styling of the inner boxes within these areas.
- How to Change:
- Adjust Sidebar Widths: In the
.grid-containerrule, thegrid-template-columnsproperty defines the widths of the columns. You can change theminmax(150px, 20%)values to make the sidebars wider or narrower (you can use fixed pixel values like200pxor percentages like15%). The1frin the middle makes the main content take up the remaining space. - Change Main Container Background/Border: The
.grid-containerrule also hasbackground-color,border, andbox-shadowfor the main container. Modify these as needed. - Style Sidebar Boxes: The
.sidebar-boxrule controls the look of the individual boxes in the left and right sidebars (background color, border, padding, spacing). Change these properties to style those boxes. - Style Main Content Boxes: The
.main-content-boxrule styles the boxes within the main content area. Adjust thebackground-color,border,padding, andmargin-bottomhere.
- Adjust Sidebar Widths: In the
3. css/navigation.css - The Menu
- Purpose: Styles the navigation menu at the top.
- How to Change:
- Menu Background/Border: The
#nav-placeholderrule controls the background color (background-color), padding (padding), text alignment (text-align), and the bottom border (border-bottom) of the entire navigation area. - Link Styles: The
#nav-placeholder nav arule styles the links themselves (color, text decoration, text shadow). Change thecolorandtext-shadowto alter the link appearance.text-decoration: none;removes underlines by default, andtext-decoration: underline;in#nav-placeholder nav a:hoveradds an underline on hover.
- Menu Background/Border: The
4. css/components.css - Reusable Elements
- Purpose: Contains basic styling for reusable components like links within the sidebars and footer.
- How to Change:
- Sidebar/Footer Link Styles: The
.sidebar-content aand.footer-content arules control the color and hover effect of links in those areas.
- Sidebar/Footer Link Styles: The
5. css/footer.css - The Bottom Area
- Purpose: Styles the footer at the bottom of the page.
- How to Change:
- Footer Background/Border/Text Color: The
#footer-placeholderrule has properties likebackground-color,color, andborder-top. Adjust these to change the footer's appearance. - Footer Link Styles: The
.footer-content arule styles the links within the footer.
- Footer Background/Border/Text Color: The
6. css/responsive.css - Mobile and Tablet Views
- Purpose: Contains special rules that apply when the website is viewed on smaller screens. Be cautious when editing this file unless you understand responsive design. Changes here can affect how your site looks on phones and tablets.
- How to Change (Advanced): If you do want to make changes, the
@media (max-width: 768px)block contains styles that apply to screens smaller than 768 pixels wide. You can adjust thegrid-template-columnsto change the layout on smaller screens (e.g.,grid-template-columns: 1fr;makes it a single column).
7. css/page-specific.css - Unique Page Styles
- Purpose: Contains styles that are only applied to specific pages (like the
index.htmlhomepage in this basic template). - How to Change:
- Homepage Heading/Text Styles: The rules here target elements within the
.main-contentspecifically on the homepage (e.g.,h1,p). Change thecoloror other text properties to style these elements. - You can add more specific rules here if you want to style elements on other pages differently. For example, to style a specific
divwith the classspecial-boxon yourarticles.htmlpage, you could add a rule like.articles-page .special-box { /* your styles */ }in this file (you'd need to add the class.articles-pageto the<body>tag of yourarticles.htmlfile for this to work).
- Homepage Heading/Text Styles: The rules here target elements within the
Remember:
- Edit Carefully: Make small changes and refresh your browser to see the results.
- Save: Always save the CSS file after making changes.
- Experiment: Don't be afraid to try different values to see what they do! You can always undo your changes if you don't like them.
- Learn CSS: If you want to make more significant changes, learning the basics of CSS selectors, properties, and values will be very helpful. There are many free resources online!
Footer: Edit the partials/footer.html to change the copyright information or add links at the bottom of your site.
Remember to save your changes to the .html files after editing them and then open the index.html file in your web browser to see your website!
If you get stuck, don't be afraid to search online for help with basic HTML (for adding text and images) or ask in online communities! Good luck!
