Head
TheHead.astro component provides essential meta tags, SEO configuration, favicons, and basic site metadata for Proyecto Renacer. It’s automatically included in the Layout.astro component.
Location
src/components/Head.astro
Props
This component does not accept props. All metadata is statically defined.Features
Author and Application Info
Favicons
Provides multiple favicon formats for browser compatibility:SEO Keywords
Targeted keywords for local search optimization:Geographic Targeting
Location-specific meta tags for Ambato, Ecuador:Canonical URL
OpenGraph Locale
Theme Color
Primary brand color for browser UI:Usage
Automatic Inclusion
The Head component is automatically included in every page through the Layout component:No Direct Usage Required
You don’t need to import or use the Head component directly in your pages. Simply use the Layout component:Implementation Details
Full Component Source
SEO Best Practices
Implemented Features
- Author Attribution - Credits the site creator
- Geographic Targeting - Optimizes for local Ambato searches
- Canonical URL - Prevents duplicate content issues
- Localization - Specifies Spanish language and Ecuador locale
- Keywords - Targets relevant search terms
- Theme Color - Enhances mobile browser appearance
Additional SEO Configuration
For page-specific SEO, use the Layout component props:Customization
Updating Keywords
To modify SEO keywords, edit the component:Changing Theme Color
Update the theme color to match your brand:Modifying Canonical URL
Update for production domain:Adding Additional Meta Tags
Simply add new meta tags to the component:Integration with OpenGraph
The Head component works alongside theOpenGraph.astro component for complete social media integration:
- Head.astro - Basic SEO, favicons, canonical URLs
- OpenGraph.astro - Social media sharing (Facebook, Twitter, WhatsApp)
Related Components
Technical Notes
Geo Region Code
EC-T represents Tungurahua province in Ecuador (where Ambato is located).
Theme Color Usage
The#2E7D32 color is used by browsers to:
- Color the address bar on mobile devices
- Style browser UI elements
- Provide visual consistency
Favicon Formats
Two formats ensure compatibility:- SVG - Modern browsers, scalable
- ICO - Legacy browser support