Coder Social home page Coder Social logo

atlantica-assets's Introduction

alantica-assets

Static file repository for Alantica MC

Text files use markdown for formatting Markdown Guide HTML can also be used.

Editing files in this repository updates the contents of the RAD Atlantica site

In addition to markdown files, there are two config files the site uses.

Navigation Config

The navigation-config file controls the navigation bar at the top right of the page. It holds a list of items in the navigation bar.

For example:

{
  "navigation": [
    { "title": "Home", "file": "home" },
    {
      "title": "Donate",
      "route": "https://www.paypal.com/pools/c/8nfrLk8JoJ",
      "type": "external"
    }
  ]
}

This will setup a navigation bar with just two items. Items in the navigation bar will appear in the order they are in the list, with the first item in the list being the leftmost navigation link.

The first item: It will be labelled "Home" and link to a page that shows the contents of the home.md file in the pages/ directory.

The second item: It will be labelled "Donate". "type": "external" sets this as an external link to the route that is set. All links are assumed to be internal unless specified.

News Config

The navigation-config holds a list of items on the news page.

For example:

{
  "news": [
    {
      "file": "we-moved",
      "published": "3/10/2020",
      "title": "RAD1 Server Reset",
      "type": "notice"
    }
  ]
}

This will setup the news page to show one post. The title of the post is RAD1 Server Reset. It will show that it was published 3/10/2020. It will be styled like a notice. (Options for type are: "normal", "notice" and "alert". If left blank, it will be a "normal" post.) This post will display the contents of the we-moved.md file in the pages/news/ directory.

News items will appear in the order they are in the list, with the first item in the list being the top most post on the news page.

Home Config

This file controls what news post, if any, appears above the main content on the home page. This can be used to display urgent alerts (e.g. server sets or downtime).

For example:

{
  "home": {
    "hightlightNewsPost": "server-reset"
  }
}

This causes the home page to display the contents of the page/news/server-reset file above its main content

In contrast to:

{
  "home": {
    "hightlightNewsPost": null
  }
}

Which will not have a news post about the pages main content.

Sidebar Config

This file contains sets the list of images that will randomly display to the right of the content. When the site first loads, it picks an image from this list. This list references images files store in teh images folder.

For example:

{
  "sidebar": {
    "images": ["pig.svg", "chick.svg"]
  }
}

This makes it so the site will either display images/pig.svg or images/chick.svg to the right of the site content. If you always want the same image (instead of randomly changing) only put one image in this list.

atlantica-assets's People

Contributors

kaplantm avatar

Stargazers

Philip Moore avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.