mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2025-12-31 20:56:26 +00:00
master
chore: add author name what's the point
WONA GitHub Website
A Jekyll-based static website for Watch Out News Agency.
Project Structure
Root Files
_config.yml- Jekyll configuration file with site settings, plugins, and build optionsindex.html- Homepage template404.html- Custom 404 error pageGemfile- Ruby dependencies specificationGemfile.lock- Locked dependency versionssitemap.xml- XML sitemap for search enginesatom.xml- RSS/Atom feed for content syndicationfavicon.ico- Website faviconCNAME- Custom domain configuration for GitHub Pages
Directories
_includes/
Reusable HTML components that can be included in layouts and pages:
cat_header.html- Category page headerfooter.html- Site footergoogle_analytics.html- Google Analytics tracking codehead.html- HTML head section with meta tags and stylesheetsheader.html- Site header and navigationhorizontal_post.html- Horizontal post layout componentnavbar.html- Navigation bar component
_layouts/
Page templates that define the structure for different content types:
category.html- Template for category archive pageslayout.html- Base layout templatepost.html- Individual blog post template
_posts/
Markdown files containing blog posts and articles (follows Jekyll naming convention: YYYY-MM-DD-title.md)
_sass/
SCSS stylesheets organized by component:
bootstrap/- Bootstrap framework styles_bootstrap.scss- Bootstrap importscss/- Custom stylesheetsbase.scss- Base styles and variablesfontawesome.min.css- Font Awesome iconsmobile.css- Mobile-responsive stylesposts.css- Post-specific stylingpure.css- Pure CSS frameworkpygments.css- Syntax highlighting stylestable.css- Table styling
Content Directories
edc/- EDC (Editorial Development Cell) related contentfonts/- Custom web fontsgetinvolved/- Pages about getting involved with WONAguide/- User guides and documentationimages/- Static images and media filesjs/- JavaScript filesnews/- News articles and poststeam/- Team member profiles and information
Styling
table.css- Standalone CSS file for table styling
Installation
Prerequisites
- Docker installed on your system
- Git (to clone the repository)
Setup Steps
-
Clone the repository
git clone https://github.com/WatchOutNewsAgency/wona.github.com.git cd wona.github.com -
Run with Docker
docker run --rm -it \ -v "${PWD}:/srv/jekyll" \ -p 4000:4000 \ jekyll/jekyll:4 \ jekyll serve --host 0.0.0.0- If you might face error in dockerization use this instead: jekyll/jekyll:3
- This command will start a Jekyll server, serving your site at 4000 port
- If any other error, all the best debugging
-
Access the site
- Open your browser and navigate to
http://localhost:4000 - The site will automatically rebuild when you make changes to files
- Open your browser and navigate to
Docker Command Explanation
--rm- Automatically remove the container when it exits-it- Interactive terminal mode-v "${PWD}:/srv/jekyll"- Mount current directory to Jekyll's working directory in container-p 4000:4000- Map port 4000 from container to hostjekyll/jekyll:4- Use Jekyll Docker image version 4jekyll serve --host 0.0.0.0- Start Jekyll development server accessible from all network interfaces
Development Notes
- Changes to
_config.ymlrequire a server restart - New posts in
_posts/will be automatically detected - CSS/SCSS changes will trigger automatic regeneration
- Press
Ctrl+Cto stop the development server
Troubleshooting
- If port 4000 is already in use, change
-p 4000:4000to-p 4001:4000and access viahttp://localhost:4001 - On Windows, use PowerShell or Command Prompt
- Ensure Docker Desktop is running before executing the command
Repository
Languages
SCSS
77%
HTML
12.5%
CSS
9.4%
JavaScript
1.1%