Skip to content

takumiando/sc-www

 
 

Repository files navigation

Space Cubics Website

This is a corporate website built with Zola - a static site generator written in Rust.

๐Ÿš€ Quick Start

Install Zola

See: https://www.getzola.org/documentation/getting-started/installation/

Clone

git clone https://github.com/spacecubics/www
cd www

Build

zola build

Check

zola serve

๐Ÿ“ฐ Add a News Article

  1. Create a new file in content/news/

  2. Name it by date. ex) 2025-06-01.md and 2025-06-01.en.md

  3. Add title (string) and date (YYYY-MM-DD) variables to front matter.

  4. Add link variable under [extra] if article has external link.

  5. Add your news.

    +++
    title = "ใ€ŒJAXAใƒ™ใƒณใƒใƒฃใƒผใ€ใฎ่ชๅฎš"
    date = 2018-05-29
    
    [extra]
    link = "https://aerospacebiz.jaxa.jp/venture/"
    +++
    
    Content here...
    

As shown above, there are two date values: one in the file name and one in the date variable. We havenโ€™t been able to remove the redundant date field due to a limitation in Zola. See issue #114 for details.

๐Ÿ—๏ธ Project Structure

This repository is organized into only a few main folders...

  • content -- Contains all the website pages
     content/
     โ”œโ”€โ”€ _index.en.md     # English homepage
     โ”œโ”€โ”€ _index.md        # Japanese homepage
     โ”œโ”€โ”€ about_us.md      # About us page
     โ”œโ”€โ”€ about_us.en.md   # About us English page
     โ”œโ”€โ”€ contact/         # Contact forms
     โ”œโ”€โ”€ ir_info/         # Investor relations
     โ”œโ”€โ”€ news/            # News articles
     โ”œโ”€โ”€ products/        # Products section
     โ””โ”€โ”€ recruit/         # Recruitment section
    
  • functions -- Contains JavaScript files used as Cloudflare Workers
  • i18n -- Config files for Japanese and English
  • sass -- Visual style files
  • templates -- Contains HTML files
     templates/
     โ”œโ”€โ”€ base.html                    # Main layout for site
     โ”œโ”€โ”€ article.html                 # News article template (not currently used)
     โ”œโ”€โ”€ macros/                      # Other globally available template functions
     โ”œโ”€โ”€ partials/                    # Reusable page sections
     โ”‚   โ”œโ”€โ”€ footer.html              # Site footer
     โ”‚   โ””โ”€โ”€ nav.html                 # Site navigation header
     โ””โ”€โ”€ shortcodes/                  # Custom components
     	โ”œโ”€โ”€ spec_sheet.html          # Production specification component
     	โ””โ”€โ”€ kv_list.html			 # Displays key-value set of text
    
  • static -- Contains site images and client-side JavaScript
     static/
     โ”œโ”€โ”€ js/                       # JavaScript that runs in the user's web browser
     โ”‚   โ”œโ”€โ”€ nav-toggle.js         # Navigation menu functionality
     โ”‚   โ””โ”€โ”€ nav-links.js          # Navigation link handling
     โ”œโ”€โ”€ logo_black.webp
     โ”œโ”€โ”€ logo_white.webp
     โ””โ”€โ”€ sc-obc_module_a1.jpg
    

...and some important configuration files such as...

  • config.toml
  • netlify.toml
  • wrangler.toml
  • README.md

๐Ÿ”ง Development

See doc/develop.md.

๏ฟฝ๏ฟฝ Helpful Documentation

๐Ÿ™Œ Contributing

Please feel free to submit a pull request and/or post an issue.


Space Cubics, Inc.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • SCSS 71.0%
  • HTML 25.6%
  • JavaScript 3.3%
  • Shell 0.1%