A Jekyll-based static website for Watch Out News Agency.
_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
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
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
Markdown files containing blog posts and articles (follows Jekyll naming convention: YYYY-MM-DD-title.md
)
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
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
table.css
- Standalone CSS file for table styling
- Docker installed on your system
- Git (to clone the repository)
-
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
--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
- Changes to
_config.yml
require a server restart - New posts in
_posts/
will be automatically detected - CSS/SCSS changes will trigger automatic regeneration
- Press
Ctrl+C
to stop the development server
- If port 4000 is already in use, change
-p 4000:4000
to-p 4001:4000
and access viahttp://localhost:4001
- On Windows, use PowerShell or Command Prompt
- Ensure Docker Desktop is running before executing the command
https://github.com/WatchOutNewsAgency/wona.github.com