This is the official website for Oxidar, the Latin American Rust community. This README is intended for maintainers and contributors who need to work with the website's codebase.
- Hugo Extended v0.145.0 or later
- Git with submodule support
- Node.js (optional, for additional tooling)
-
Clone the repository with submodules:
git clone --recursive https://github.com/oxidar-org/website.git cd website/webIf you already cloned without
--recursive, initialize submodules:git submodule update --init --recursive
-
Start the development server:
hugo server -D
-
Access the site: Open http://localhost:1313 in your browser
web/
├── archetypes/ # Content templates
├── assets/ # SCSS, JS, and other assets
├── content/ # Markdown content files
│ └── posts/ # Blog posts and articles
├── data/ # Data files (YAML, JSON, TOML)
├── i18n/ # Internationalization files
├── layouts/ # Custom HTML templates
├── public/ # Generated static site (git-ignored)
├── resources/ # Hugo's resource cache
├── static/ # Static assets (images, etc.)
├── themes/ # Hugo themes (LoveIt theme as submodule)
├── .github/ # GitHub Actions workflows
├── hugo.toml # Hugo configuration
└── README.md # This file
-
Create a new post:
hugo new posts/your-post-title.md
-
Edit the generated file in
content/posts/with your content -
Front matter example:
+++ date = '2024-01-15T10:00:00-03:00' draft = false title = 'Your Post Title' description = "Brief description for SEO" tags = ["rust", "tutorial"] categories = ["Programming"] +++
- Language: Primary content is in Spanish (es)
- Images: Store in
static/images/and reference as/images/filename.jpg - Drafts: Set
draft = trueto hide from production - SEO: Always include meaningful
titleanddescription
The site uses the LoveIt theme as a Git submodule.
cd themes/LoveIt
git pull origin master
cd ../..
git add themes/LoveIt
git commit -m "Update LoveIt theme"- Add custom CSS in
assets/css/ - Override theme templates by creating files in
layouts/with the same structure
Main configuration is in hugo.toml. Key sections:
- Basic Settings: Site title, URL, language
- Menu Configuration: Navigation menu items
- Social Links: GitHub, LinkedIn, email
- Theme Parameters: LoveIt theme customization
- SEO Settings: Meta tags, social sharing
For development vs. production differences, use Hugo's environment variables:
# Development
hugo server -D --environment development
# Production build
hugo --environment productionThe site deploys automatically via GitHub Actions when pushing to the main branch.
Workflow: .github/workflows/hugo.yaml
- Triggers on push to
main - Builds with Hugo Extended v0.145.0
- Deploys to GitHub Pages
- Uses caching for faster builds
# Build for production
hugo --minify
# The generated site will be in the public/ directory-
Update Hugo:
- Check for new Hugo versions
- Update version in
.github/workflows/hugo.yaml - Test locally before deploying
-
Update Theme:
cd themes/LoveIt git pull origin master cd ../.. git add themes/LoveIt git commit -m "Update theme to latest version"
-
Update Dependencies:
- Review and update any Node.js dependencies if present
- Check for security updates
- Review draft posts regularly
- Check for broken links
- Update outdated information
- Ensure accessibility compliance
Submodule issues:
git submodule update --init --recursive --forceBuild errors:
- Check Hugo version compatibility
- Verify all required parameters in
hugo.toml - Check for syntax errors in content files
Theme not loading:
- Ensure theme submodule is properly initialized
- Check theme path in
hugo.toml
- Use
hugo --minifyfor production builds - Optimize images before adding to
static/ - Monitor build times and cache effectiveness
- Main Site: https://oxidar.org/
- Email: admin@oxidar.org
- GitHub: https://github.com/oxidar-org
- LinkedIn: https://linkedin.com/company/oxidar-org
Content is licensed under CC BY-NC 4.0.
- Fork the repository
- Create a feature branch
- Make your changes
- Test locally
- Submit a pull request
For content contributions, please follow our community guidelines and ensure all content aligns with Oxidar's mission of promoting Rust in Latin America.
¡Bienvenide a la comunidad Oxidar! 🦀