Overview
Less Likely is a modern static website built with Quarto, designed specifically for academic and scientific content with a focus on statistical methodology. This page documents the complete technology stack, architectural decisions, and evolution of the site.
Architecture Diagram
Technology Stack
Core Infrastructure
Quarto Publishing System
- Quarto - Next-generation scientific publishing system
- Version: 1.9+
- Why Quarto?
- Native support for R, Python, Julia, and Observable
- Superior mathematical typesetting with KaTeX
- Built-in citation management
- Cross-reference capabilities
- Code execution and visualization
- Professional academic output
Content Creation
- RMarkdown/Quarto Markdown - Primary authoring format
- RStudio/VS Code - Integrated development environments
- R Packages:
- Core statistical computing
- Data visualization (ggplot2)
- Tables (knitr, kableExtra)
- Special packages for specific analyses
Version Control & Deployment
- Git/GitHub - Version control and source hosting
- Netlify - Hosting, CDN, and build pipeline
- Automatic deployment on git push to
master - CSS/JS bundling and minification
- Custom HTTP headers and CSP
- Redirect rules for canonical URLs
- Automatic deployment on git push to
Third-Party Services
Search & Discovery
- Algolia - Full-text search with hosted index
- Index crawled via
@algolia/netlify-plugin-crawler - Instant results with keyboard shortcuts (f, /, s)
- Category filtering
- Custom icons for result types (injected by
search-images.js)
- Index crawled via
Typography & Fonts
- Google Fonts - Web typography
- Source Serif Pro / Source Serif 4 - Body text (serif)
- IBM Plex Mono - Code snippets (monospace)
- Font loading: Preconnect to fonts.googleapis.com and fonts.gstatic.com for performance
Mathematics & Scientific Notation
- KaTeX - Fast mathematical rendering
- LaTeX syntax support
- Inline and display math
- Fast client-side rendering
- No JavaScript dependencies for simple math
Quarto Extensions
Active extensions installed under _extensions/:
- quarto-ext/lightbox - Lightbox image gallery (enabled globally with
lightbox: auto) - quarto-ext/fontawesome - FontAwesome icon embedding in prose
- quarto-ext/fancy-text - Styled text effects
- quarto-ext/attribution - Content attribution blocks
- quarto-ext/include-code-files - Import external code files into code blocks
- mcanouil/iconify - Iconify icon set integration
- mikemahoney218/arxiv - arXiv citation and link helpers
- r-wasm/live - WebR live code execution in the browser
- shafayetShafee/bsicons - Bootstrap icon set
- shafayetShafee/collapse-callout - Collapsible callout blocks
Reference Management
- Zotero - Bibliography and citation management
- CSL - Citation Style Language for formatting
- BibTeX - Bibliography format
- Integration:
- Automatic citation insertion
- Multiple bibliography files
- Custom citation styles
- Hover previews for citations
Image Optimization
- Cloudinary - Image CDN and optimization
- Automatic format conversion (WebP)
- Responsive images
- Lazy loading
- Compression and optimization
Analytics & Monitoring
- Google Analytics 4 (G-9WVCJ5ZY42) - Traffic and event tracking
- Loaded via gtag.js in
include-in-header.html - Cookie consent (
type: implied) wired through Quarto
- Loaded via gtag.js in
- Microsoft Clarity - User behavior analytics
- Session recordings
- Heatmaps
- User insights
- Google Search Console - SEO monitoring
- Bing Webmaster Tools - Additional search insights
Site Architecture
Frontend Design
Styling System
- Bootstrap 5 - Base CSS framework (via Quarto/Bootswatch)
- Custom SCSS - Theme customization
- Light theme: Paper (Bootswatch) +
theme-mono.scssoverrides - Dark theme: standalone
theme-dark.scss(no Bootswatch parent) - Custom color variables
- Brand colors: #4895ab (primary), #d46c5b (accent)
- Light theme: Paper (Bootswatch) +
Layout Components
- Responsive Navigation - Mobile-friendly navbar
- Sidebar Navigation - Contextual links
- Table of Contents - Automatic generation
- Code Blocks - Syntax highlighting with language badges
- Copy Buttons - One-click code copying
- Search Results - Custom icons and styling
Custom Features
- Language Badges - Visual code block identifiers
- Copy Code Functionality - Enhanced clipboard integration
- Search Icons - Category-specific visual indicators
- Image Centering - Consistent image display
- Table Styling - Professional data presentation
- Dark Mode - System preference detection
Content Organization
my-quarto-site/
├── _quarto.yml # Site configuration
├── index.qmd # Homepage
├── about.qmd # About page
├── blog.qmd # Blog listing
├── posts.qmd # Alternative post view
├── projects.qmd # Projects showcase
├── contact.qmd # Contact information
├── support.qmd # Support page
├── blogroll.qmd # Links to other sites
├── datasets.qmd # Data repositories
├── 404.qmd # Custom error page
├── build.qmd # This page!
│
├── statistics/ # Statistical methodology posts
├── medicine/ # Medical research posts
├── nutrition/ # Nutritional science posts
│
├── images/ # Site images and assets
├── styles/ # Custom CSS
└── _site/ # Generated output
Metadata & SEO
Schema.org Structured Data
- WebSite schema with site search
- Organization schema
- Person schema (author)
- BlogPosting schema (articles)
Content Workflow
Writing Process
Create New Post
# Create new .qmd file in statistics/ (or medicine/, nutrition/) touch statistics/new-post.qmdWrite Content
- Use RMarkdown syntax
- Execute R code inline
- Create visualizations
- Add citations with @citekey
- Include mathematical notation
Preview Locally
quarto previewBuild Site
quarto renderDeploy
git add . git commit -m "Add new post" git push # Netlify automatically deploys on push to master
Post Template
---
title: "Your Post Title"
author:
- name: Sir Panda
orcid: "0000-0003-1545-8199"
date: "2025-01-08"
categories: [statistics, methodology]
description: "Brief description of your post"
image: "featured-image.png"
citation:
type: article
container-title: "Less Likely"
url: https://lesslikely.com/statistics/your-post
bibliography: references.bib
---
## Introduction
Your content here...Historical Evolution
WordPress Era (Early Years)
- Platform: WordPress with SiteGround hosting
- Theme: GeneratePress Premium
- Challenges:
- Plugin dependency (WP Rocket, Imagify, Yoast SEO)
- Database vulnerabilities
- Performance issues with LaTeX
- Maintenance overhead
- Security concerns
Hugo Migration (Mid Period)
- Platform: Hugo static site generator
- Workflow: RMarkdown → blogdown → Hugo
- Improvements:
- Eliminated database vulnerabilities
- Better LaTeX/mathematical content support
- Faster page loads
- Lower hosting costs
- Custom theme development
Quarto Evolution (Current)
- Platform: Quarto publishing system
- Why the switch?
- Modern scientific publishing features
- Better multi-language support (R, Python, Julia)
- Enhanced code execution
- Improved citation handling
- Cross-referencing capabilities
- Better maintenance and community
- Future-proof technology
Key Benefits of Quarto: - No plugin dependencies - Superior mathematical typesetting - Native academic features - Better documentation - Active development - Cross-platform compatibility
Design Philosophy
Principles
- Content First
- Clean, readable typography
- Minimal distractions
- Focus on the writing
- Academic Rigor
- Proper citations
- Mathematical precision
- Code reproducibility
- Data transparency
- Performance
- Static generation
- CDN delivery
- Image optimization
- Minimal JavaScript
- Accessibility
- Semantic HTML
- ARIA labels
- Keyboard navigation
- Screen reader support
- Responsive Design
- Mobile-first approach
- Flexible layouts
- Touch-friendly interfaces
- Readable on all devices
Color Scheme
Brand Colors: - Primary: #4895ab (Teal blue) - Accent: #d46c5b (Coral red) - Neutral: #343a40 (Dark gray) - Light: #f8f9fa (Off white)
Dark Mode: - Background: #2d2d2d - Text: #e0e0e0 - Links: #5aa9bd - Borders: #404040
Performance Optimizations
Build Time
- Freeze feature for code execution
- Incremental builds
- Cached computations
- Parallel processing
Runtime
- Static HTML (no server processing)
- CDN distribution (Netlify Edge)
- Font subsetting
- Image lazy loading
- Code splitting
Metrics
- Lighthouse scores: 95+ across categories
- First Contentful Paint: < 1s
- Time to Interactive: < 2s
- Total Blocking Time: < 100ms
Future Enhancements
Planned Features
Technical Improvements
Content Additions
Development Setup
Requirements
- R (4.6+)
- RStudio or VS Code
- Quarto (1.9+)
- Git
- Node.js (for extensions)
Installation
# Install Quarto
# Download from https://quarto.org/docs/get-started/
# Clone repository
git clone https://github.com/zadrafi/lesslikely.git
cd lesslikely/my-quarto-site
# Install R packages
Rscript -e "install.packages(c('knitr', 'rmarkdown', 'ggplot2'))"
# Preview site
quarto preview
# Build site
quarto renderConfiguration Files
**_quarto.yml** - Main configuration - Project settings - Website metadata - Navigation structure - Format options - Extensions
styles.css - Custom styling - Brand colors - Component styles - Dark mode - Responsive design
include-in-header.html - Head content - Metadata tags - Analytics scripts - Font loading - Structured data
Lessons Learned
What Worked Well
- Static Generation - Fast, secure, reliable
- Version Control - Complete history and rollback
- Quarto - Excellent for academic content
- CDN Hosting - Global performance
- Custom Theme - Full design control
Challenges Overcome
- Migration - Moving from Hugo to Quarto
- Dark Mode - Consistent styling across themes
- Search - Implementing custom icons
- Citations - Managing multiple bibliographies
- Performance - Optimizing large R computations
Best Practices
- Always preview changes locally
- Use meaningful commit messages
- Keep dependencies minimal
- Document custom features
- Test on multiple devices
- Monitor analytics regularly
- Maintain backup copies
Resources & Credits
Tools & Technologies
Design Inspiration
- Edward Tufte - Data visualization
- Butterick’s Practical Typography
- Material Design - UI patterns
- Academic journals and publications
Community
Contact & Feedback
Have questions about the site architecture? Want to implement something similar?
- Email: zad@lesslikely.com
- Twitter: @dailyzad
- GitHub: zadrafi
Open Source
While the content is copyrighted, the site’s technical implementation can serve as a reference for building academic websites with Quarto.
Key Takeaway: A well-designed static site with Quarto can deliver excellent performance, maintainability, and user experience for academic and scientific content without the complexity and overhead of dynamic CMS platforms.
Last updated: July 9, 2026
This page itself is built with Quarto, demonstrating the capabilities we describe!

Comments