├── space-ahead-preview.jpeg ├── src ├── assets │ ├── images │ │ ├── 1.png │ │ ├── 2.jpg │ │ ├── 3.jpg │ │ └── 4.jpg │ ├── moon.svg │ └── sun.svg ├── env.d.ts ├── components │ ├── Hamburger.astro │ ├── FormattedDate.astro │ ├── IconButton.astro │ ├── Button.astro │ ├── NavLinks.astro │ ├── SiteIdentity.astro │ ├── SpaceBar.jsx │ ├── PostListPreview.astro │ ├── PostCardPreview.astro │ ├── Pagination.astro │ ├── ThemeSwitcher.astro │ ├── Subscribe.astro │ ├── Footer.astro │ ├── SpaceKeyboard.astro │ └── Nav.astro ├── pages │ ├── robots.txt.ts │ ├── about.astro │ ├── rss.xml.ts │ ├── 404.astro │ ├── tags │ │ ├── index.astro │ │ └── [id] │ │ │ └── [...page].astro │ ├── blog │ │ ├── [...page].astro │ │ └── [id].astro │ ├── contact.astro │ └── index.astro ├── content │ └── blogs │ │ ├── post-2.md │ │ ├── post-3.md │ │ ├── post-4.md │ │ └── post-1.md ├── content.config.ts ├── icons │ ├── ArrowLeft.astro │ └── ArrowRight.astro ├── styles │ ├── fonts.css │ ├── animate.css │ └── global.css ├── utils │ └── helpers.ts ├── layouts │ └── MainLayout.astro └── site.config.ts ├── public ├── space-ahead-logo.png └── pretty-feed-v3.xsl ├── pnpm-workspace.yaml ├── .vscode ├── extensions.json └── launch.json ├── tsconfig.json ├── prettier.config.js ├── .gitignore ├── package.json ├── astro.config.mjs ├── .github └── workflows │ └── deploy.yml ├── changelog.md ├── README.md └── LICENSE /space-ahead-preview.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djsiddz/space-ahead/HEAD/space-ahead-preview.jpeg -------------------------------------------------------------------------------- /src/assets/images/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djsiddz/space-ahead/HEAD/src/assets/images/1.png -------------------------------------------------------------------------------- /src/assets/images/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djsiddz/space-ahead/HEAD/src/assets/images/2.jpg -------------------------------------------------------------------------------- /src/assets/images/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djsiddz/space-ahead/HEAD/src/assets/images/3.jpg -------------------------------------------------------------------------------- /src/assets/images/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djsiddz/space-ahead/HEAD/src/assets/images/4.jpg -------------------------------------------------------------------------------- /src/env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | -------------------------------------------------------------------------------- /public/space-ahead-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/djsiddz/space-ahead/HEAD/public/space-ahead-logo.png -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- 1 | onlyBuiltDependencies: 2 | - '@tailwindcss/oxide' 3 | - esbuild 4 | - sharp 5 | - swup 6 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": ["astro-build.astro-vscode"], 3 | "unwantedRecommendations": [] 4 | } 5 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "astro/tsconfigs/strict", 3 | "compilerOptions": { 4 | "jsx": "react-jsx", 5 | "jsxImportSource": "preact" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/components/Hamburger.astro: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | --- 4 | 5 | 🍔 10 | -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- 1 | // prettier.config.js 2 | 3 | /** @type {import('prettier').Config & import('prettier-plugin-tailwindcss').PluginOptions} */ 4 | export default { 5 | plugins: ["prettier-plugin-tailwindcss"], 6 | tailwindStylesheet: "./src/styles/global.css" 7 | } -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | "command": "./node_modules/.bin/astro dev", 6 | "name": "Development server", 7 | "request": "launch", 8 | "type": "node-terminal" 9 | } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /src/components/FormattedDate.astro: -------------------------------------------------------------------------------- 1 | --- 2 | type Props = { date: Date }; 3 | 4 | const { date } = Astro.props; 5 | --- 6 | 7 | 16 | -------------------------------------------------------------------------------- /src/pages/robots.txt.ts: -------------------------------------------------------------------------------- 1 | import type { APIRoute } from 'astro'; 2 | import { withBase } from '../utils/helpers'; 3 | 4 | const getRobotsTxt = (sitemapURL: URL) => `\ 5 | User-agent: * 6 | Allow: / 7 | 8 | Sitemap: ${sitemapURL.href} 9 | `; 10 | 11 | export const GET: APIRoute = ({ site }) => { 12 | const sitemapURL = new URL(withBase('/sitemap-index.xml'), site); 13 | return new Response(getRobotsTxt(sitemapURL)); 14 | }; -------------------------------------------------------------------------------- /src/assets/moon.svg: -------------------------------------------------------------------------------- 1 | 2 | 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # build output 2 | dist/ 3 | 4 | # generated types 5 | .astro/ 6 | 7 | # dependencies 8 | node_modules/ 9 | .yarn/* 10 | !.yarn/cache 11 | !.yarn/patches 12 | !.yarn/plugins 13 | !.yarn/releases 14 | !.yarn/sdks 15 | !.yarn/versions 16 | 17 | # logs 18 | npm-debug.log* 19 | yarn-debug.log* 20 | yarn-error.log* 21 | pnpm-debug.log* 22 | 23 | # environment variables 24 | .env 25 | .env.production 26 | 27 | # macOS-specific files 28 | .DS_Store 29 | -------------------------------------------------------------------------------- /src/components/IconButton.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import type { HTMLAttributes } from "astro/types"; 3 | import Button from "./Button.astro"; 4 | 5 | type AnchorProps = HTMLAttributes<"a"> & { type?: never }; 6 | type ButtonProps = HTMLAttributes<"button"> & { href?: never }; 7 | 8 | type Props = ButtonProps | AnchorProps; 9 | 10 | const { class: className, ...rest } = Astro.props; 11 | const buttonClasses = "p-2"; 12 | --- 13 | 14 | 17 | -------------------------------------------------------------------------------- /src/components/Button.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import type { HTMLAttributes } from "astro/types"; 3 | 4 | type AnchorProps = HTMLAttributes<"a"> & { type?: never }; 5 | type ButtonProps = HTMLAttributes<"button"> & { href?: never }; 6 | 7 | type Props = ButtonProps | AnchorProps; 8 | 9 | const { href, class: className, ...rest } = Astro.props; 10 | --- 11 | 12 | { 13 | href ? ( 14 | 15 | 16 | 17 | ) : ( 18 | 21 | ) 22 | } 23 | -------------------------------------------------------------------------------- /src/content/blogs/post-2.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "To the Moon and Back" 3 | author: "Astro-naut Sid" 4 | description: "After learning some Astro, I couldn't stop!" 5 | image: 6 | url: "../../assets/images/2.jpg" 7 | alt: "Dancing on Moon - Generated by AI" 8 | pubDate: 2024-01-15 9 | tags: 10 | [ 11 | "astro", 12 | "blogging", 13 | "space", 14 | "moon", 15 | "earth", 16 | "space exploration", 17 | "space travel", 18 | ] 19 | --- 20 | 21 | After a successful first step in learning Astro, I decided to try some more. I wrote and imported a small component from memory! 22 | 23 | It was an amazing party on the moon 🥳! The music was happening too! 24 | -------------------------------------------------------------------------------- /src/components/NavLinks.astro: -------------------------------------------------------------------------------- 1 | --- 2 | const { 3 | activePage, 4 | links, 5 | isMobileLink = false, 6 | } = Astro.props as { 7 | activePage: string; 8 | links: { text: string; href: string }[]; 9 | isMobileLink?: boolean; 10 | }; 11 | --- 12 | 13 | { 14 | links?.map((link) => { 15 | const classNames = [ 16 | isMobileLink ? "close-menu" : "", 17 | activePage === link.text.toLowerCase() 18 | ? "text-space-red! dark:text-space-yellow!" 19 | : "", 20 | ] 21 | .join(" ") 22 | .trim(); 23 | return ( 24 | 25 | {link.text} 26 | 27 | ); 28 | }) 29 | } 30 | -------------------------------------------------------------------------------- /src/content/blogs/post-3.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Aim for the Stars, land between the moons, or follow the meteor?" 3 | author: "Astro-naut Sid" 4 | description: "I had some challenges, but the community helped!" 5 | image: 6 | url: "../../assets/images/3.jpg" 7 | alt: "Among the Stars - Generated by AI" 8 | pubDate: 2024-02-01 9 | tags: ["astro", "space", "stars", "space exploration", "space travel"] 10 | --- 11 | 12 | It was smooth sailing, and I'm enjoying building with Astro. And, the [Discord community](https://astro.build/chat) is really friendly and helpful! Do join this great community and show case what you build. 13 | 14 | How did I do it? Aimed for the Moon and landed among the stars? Nah, I aimed for the stars directly! 15 | -------------------------------------------------------------------------------- /src/content.config.ts: -------------------------------------------------------------------------------- 1 | import { glob } from "astro/loaders"; 2 | import { defineCollection, z } from "astro:content"; 3 | 4 | const blogsCollection = defineCollection({ 5 | loader: glob({ pattern: "**/*.{md,mdx}", base: "./src/content/blogs" }), 6 | schema: ({ image }) => z.object({ 7 | title: z.string(), 8 | description: z.string(), 9 | pubDate: z.date(), 10 | author: z.string().optional(), 11 | tags: z.array(z.string()).optional(), 12 | draft: z.boolean().optional(), 13 | image: z.object({ 14 | url: image(), 15 | alt: z.string().optional() 16 | }) 17 | .optional(), 18 | }), 19 | }); 20 | 21 | export const collections = { 22 | blogs: blogsCollection, 23 | }; 24 | -------------------------------------------------------------------------------- /src/icons/ArrowLeft.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import type { HTMLAttributes } from "astro/types"; 3 | 4 | type Props = HTMLAttributes<"svg">; 5 | 6 | const { class: className, ...props } = Astro.props; 7 | --- 8 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "space-ahead", 3 | "type": "module", 4 | "version": "0.11.4", 5 | "scripts": { 6 | "dev": "astro dev", 7 | "start": "astro build && astro preview", 8 | "build": "astro build", 9 | "preview": "astro preview", 10 | "astro": "astro" 11 | }, 12 | "dependencies": { 13 | "@astrojs/preact": "^4.1.2", 14 | "@astrojs/rss": "4.0.12", 15 | "@astrojs/sitemap": "^3.6.0", 16 | "@swup/astro": "^1.7.0", 17 | "@tailwindcss/vite": "^4.1.16", 18 | "astro": "^5.15.2", 19 | "preact": "^10.27.2", 20 | "sharp": "^0.34.4", 21 | "tailwindcss": "^4.1.16" 22 | }, 23 | "devDependencies": { 24 | "prettier": "^3.6.2", 25 | "prettier-plugin-tailwindcss": "^0.6.14", 26 | "typescript": "^5.9.3" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/icons/ArrowRight.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import type { HTMLAttributes } from "astro/types"; 3 | 4 | type Props = HTMLAttributes<"svg">; 5 | 6 | const { class: className, ...props } = Astro.props; 7 | --- 8 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /src/pages/about.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import { Image } from "astro:assets"; 3 | import MainLayout from "../layouts/MainLayout.astro"; 4 | import siteConfig from "../site.config"; 5 | import coverImage from "../assets/images/1.png"; 6 | --- 7 | 8 | 9 |
10 |

{siteConfig.about?.title}

11 | An Astronaut walking on a terrain 20 |

21 | {siteConfig.about?.text} 22 |

23 |
24 |
25 | -------------------------------------------------------------------------------- /src/assets/sun.svg: -------------------------------------------------------------------------------- 1 | 2 | 7 | -------------------------------------------------------------------------------- /src/components/SiteIdentity.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import { Image } from "astro:assets"; 3 | import siteConfig from "../site.config"; 4 | import { withBase } from "../utils/helpers"; 5 | 6 | type SiteIdentityProps = { 7 | logoWidth?: number; 8 | logoHeight?: number; 9 | loading?: "eager" | "lazy"; 10 | textSize?: "text-base" | "text-xl"; 11 | class?: string; 12 | }; 13 | 14 | const { 15 | logoWidth = 32, 16 | logoHeight = 32, 17 | loading = "eager", 18 | textSize = "text-base", 19 | class: customClass, 20 | }: SiteIdentityProps = Astro.props; 21 | --- 22 | 23 |
24 | Logo 31 | {siteConfig.title} 32 |
33 | -------------------------------------------------------------------------------- /src/content/blogs/post-4.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "May the Fourth be with you" 3 | author: "Astro-naut Sid" 4 | description: "This post will show up on its own!" 5 | image: 6 | url: "../../assets/images/4.jpg" 7 | alt: "The word astro against an illustration of planets and stars." 8 | pubDate: 2024-02-07 9 | tags: 10 | [ 11 | "astro", 12 | "space", 13 | "moon", 14 | "dog", 15 | "space exploration", 16 | "space travel", 17 | "movies", 18 | "popcorn", 19 | "star wars", 20 | ] 21 | --- 22 | 23 | This is my fourth post should show up with my other blog posts, because `import.meta.glob()` is returning a list of all my posts in order to create my list. 24 | 25 | What movie would you want to watch, where the movie is affected by the gravity on the Moon? 26 | Every fast-paced movie would become a mime act! 😂 Imagine that! 27 | 28 | I'll pick one: Mission Impossible! 🙅‍♂️😂 29 | -------------------------------------------------------------------------------- /src/pages/rss.xml.ts: -------------------------------------------------------------------------------- 1 | import rss from "@astrojs/rss"; 2 | import { withBase } from "../utils/helpers"; 3 | import { getCollection } from "astro:content"; 4 | import siteConfig from "../site.config"; 5 | 6 | export async function GET(context) { 7 | const blog = await getCollection("blogs"); 8 | return rss({ 9 | title: siteConfig.title, 10 | description: siteConfig.description, 11 | site: context.site + withBase("/"), 12 | trailingSlash: false, 13 | items: blog.map((post) => ({ 14 | title: post.data.title, 15 | pubDate: post.data.pubDate, 16 | description: post.data.description, 17 | // Compute RSS link from post `id` 18 | // This example assumes all posts are rendered as `/blog/[id]` routes 19 | link: withBase(`/blog/${post.id}/`), 20 | })), 21 | customData: `en-US`, 22 | stylesheet: withBase("/pretty-feed-v3.xsl"), 23 | }); 24 | } 25 | -------------------------------------------------------------------------------- /src/styles/fonts.css: -------------------------------------------------------------------------------- 1 | .sigmar-ff { 2 | font-family: "Sigmar", sans-serif; 3 | font-optical-sizing: auto; 4 | font-weight: 400; 5 | font-style: normal; 6 | } 7 | 8 | .kanit-light { 9 | /* font-family: "Kanit", sans-serif; */ 10 | font-weight: 300; 11 | font-style: normal; 12 | } 13 | 14 | .kanit-light-italic { 15 | /* font-family: "Kanit", sans-serif; */ 16 | font-weight: 300; 17 | font-style: italic; 18 | } 19 | 20 | .kanit-regular { 21 | /* font-family: "Kanit", sans-serif; */ 22 | font-weight: 400; 23 | font-style: normal; 24 | } 25 | 26 | .kanit-regular-italic { 27 | /* font-family: "Kanit", sans-serif; */ 28 | font-weight: 400; 29 | font-style: italic; 30 | } 31 | 32 | .kanit-bold { 33 | /* font-family: "Kanit", sans-serif; */ 34 | font-weight: 700; 35 | font-style: normal; 36 | } 37 | 38 | .kanit-bold-italic { 39 | /* font-family: "Kanit", sans-serif; */ 40 | font-weight: 700; 41 | font-style: italic; 42 | } 43 | -------------------------------------------------------------------------------- /astro.config.mjs: -------------------------------------------------------------------------------- 1 | import { defineConfig } from "astro/config"; 2 | import preact from "@astrojs/preact"; 3 | import sitemap from "@astrojs/sitemap"; 4 | import swup from "@swup/astro"; 5 | 6 | import tailwindcss from "@tailwindcss/vite"; 7 | 8 | // https://astro.build/config 9 | export default defineConfig({ 10 | site: "https://djsiddz.github.io", 11 | base: "/space-ahead", 12 | integrations: [ 13 | swup({ 14 | theme: ["overlay", { direction: "to-top" }], 15 | cache: true, 16 | progress: true, 17 | }), 18 | preact(), 19 | sitemap(), 20 | ], 21 | 22 | image: { 23 | responsiveStyles: true, 24 | }, 25 | 26 | vite: { 27 | plugins: [tailwindcss()], 28 | }, 29 | }); 30 | 31 | //swup theme variations: 32 | // theme: "fade" 33 | // theme: ["overlay", { direction: "to-top"}] 34 | // 35 | // for overlay and fade, further customization can be done in animate.css file 36 | // To know about swup, visit https://swup.js.org/ 37 | -------------------------------------------------------------------------------- /src/components/SpaceBar.jsx: -------------------------------------------------------------------------------- 1 | import { useState, useEffect } from "preact/hooks"; 2 | 3 | export default function SpaceBar({ className, messages }) { 4 | const getRandomMessage = () => 5 | messages[Math.floor(Math.random() * messages.length)]; 6 | const [message, setMessage] = useState(getRandomMessage()); 7 | 8 | useEffect(() => { 9 | const handleSpacebar = (e) => { 10 | if (e.code === "Space") { 11 | e.preventDefault(); 12 | setMessage(getRandomMessage()); 13 | } 14 | }; 15 | window.addEventListener("keydown", handleSpacebar); 16 | return () => window.removeEventListener("keydown", handleSpacebar); 17 | }, [messages]); 18 | 19 | return ( 20 | 28 | ); 29 | } 30 | -------------------------------------------------------------------------------- /src/content/blogs/post-1.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "First Adventure on Mars" 3 | description: "This is the first post of my new blog." 4 | author: "Astro-naut Sid" 5 | image: 6 | url: "../../assets/images/1.png" 7 | alt: "Walking on Mars - Generated by AI" 8 | pubDate: 2024-01-01 9 | tags: 10 | ["astro", "blogging", "space", "space travel", "space exploration", "mars"] 11 | --- 12 | 13 | Welcome to my _new blog_ about space exploration! Here, I will share my learning journey about the universe around us. 14 | 15 | ## What I've accomplished 16 | 17 | 1. **Installing Astro**: First, I created a new Astro project and set up this project. 18 | 19 | 2. **Pages**: I then learned how to make pages by creating new `.astro` files and placing them in the `src/pages/` folder. 20 | 21 | 3. **Making Blog Posts**: This is my first blog post! I now have Astro pages and Markdown posts! 22 | 23 | ## What's next 24 | 25 | I will finish the Astro tutorial, and then keep adding more posts. Watch this space for more to come. 26 | 27 | Whew! That felt like taking a long walk on Mars! 🟠 28 | -------------------------------------------------------------------------------- /src/pages/404.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import { Image } from "astro:assets"; 3 | import MainLayout from "../layouts/MainLayout.astro"; 4 | import { withBase } from "../utils/helpers"; 5 | import heroImage from "../assets/images/pixeltrue-space-discovery.svg"; 6 | import SpaceKeyboard from "../components/SpaceKeyboard.astro"; 7 | import siteConfig from "../site.config"; 8 | --- 9 | 10 | 15 |
16 |

404

17 | {"Astronaut 24 |

🧑‍🚀: Houston, we have a problem.

25 |

26 | We couldn't find that link. Verify the address or Go Back Home 30 |

31 | 32 |
33 |
34 | -------------------------------------------------------------------------------- /src/components/PostListPreview.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import { type CollectionEntry } from "astro:content"; 3 | import ArrowRight from "../icons/ArrowRight.astro"; 4 | import FormattedDate from "./FormattedDate.astro"; 5 | import { withBase } from "../utils/helpers"; 6 | 7 | type Props = { 8 | post: CollectionEntry<"blogs">; 9 | class?: string; 10 | headingLevel?: "h2" | "h3"; 11 | }; 12 | 13 | const { post, class: className, headingLevel = "h2" } = Astro.props; 14 | const { title, pubDate, description } = post.data; 15 | const TitleTag = headingLevel; 16 | --- 17 | 18 | 22 |
23 | {title} 24 | 25 | {description &&

{description}

} 26 |
27 | 32 |
33 | -------------------------------------------------------------------------------- /src/components/PostCardPreview.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import { Image } from "astro:assets"; 3 | import type { CollectionEntry } from "astro:content"; 4 | import FormattedDate from "./FormattedDate.astro"; 5 | import { withBase } from "../utils/helpers"; 6 | 7 | type Props = { post: CollectionEntry<"blogs"> }; 8 | const { post } = Astro.props; 9 | const { title, pubDate, description, image } = post.data; 10 | --- 11 | 12 | 13 |
14 | { 15 | image && image.url && ( 16 | <> 17 | {image.alt 24 | 25 | ) 26 | } 27 |
28 |

{title}

29 | 30 | { 31 | description && ( 32 |

{description}

33 | ) 34 | } 35 |
36 |
37 |
38 | -------------------------------------------------------------------------------- /src/components/Pagination.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import IconButton from "./IconButton.astro"; 3 | import ArrowLeft from "../icons/ArrowLeft.astro"; 4 | import ArrowRight from "../icons/ArrowRight.astro"; 5 | 6 | const { page, class: className } = Astro.props; 7 | --- 8 | 9 | 36 | -------------------------------------------------------------------------------- /.github/workflows/deploy.yml: -------------------------------------------------------------------------------- 1 | name: Deploy to GitHub Pages 2 | 3 | on: 4 | push: 5 | branches: [ main ] 6 | # Allows you to run this workflow manually from the Actions tab on GitHub. 7 | workflow_dispatch: 8 | 9 | # Allow this job to clone the repo and create a page deployment 10 | permissions: 11 | contents: read 12 | pages: write 13 | id-token: write 14 | 15 | jobs: 16 | build: 17 | runs-on: ubuntu-latest 18 | steps: 19 | - name: Checkout your repository using git 20 | uses: actions/checkout@v4 21 | - name: Install, build, and upload your site 22 | uses: withastro/action@v4 23 | with: 24 | # path: . # The root location of your Astro project inside the repository. (optional) 25 | node-version: 22 # The specific version of Node that should be used to build your site. Defaults to 18. (optional) 26 | package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional) 27 | 28 | deploy: 29 | needs: build 30 | runs-on: ubuntu-latest 31 | environment: 32 | name: github-pages 33 | url: ${{ steps.deployment.outputs.page_url }} 34 | steps: 35 | - name: Deploy to GitHub Pages 36 | id: deployment 37 | uses: actions/deploy-pages@v4 38 | -------------------------------------------------------------------------------- /src/pages/tags/index.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import { 3 | getAllTags, 4 | getPostsByTag, 5 | sortItemsByDateDesc, 6 | withBase, 7 | } from "../../utils/helpers"; 8 | import { getCollection } from "astro:content"; 9 | import Button from "../../components/Button.astro"; 10 | import MainLayout from "../../layouts/MainLayout.astro"; 11 | import siteConfig from "../../site.config"; 12 | 13 | const posts = (await getCollection("blogs")).sort(sortItemsByDateDesc); 14 | const tags = getAllTags(posts).sort((tagA, tagB) => { 15 | const postCountTagA = getPostsByTag(posts, tagA.id).length; 16 | const postCountTagB = getPostsByTag(posts, tagB.id).length; 17 | return postCountTagB - postCountTagA; 18 | }); 19 | --- 20 | 21 | 25 |
26 |

Tags

27 |

Select a tag to view related posts.

28 |
29 | { 30 | tags.map((tag) => { 31 | const postCount = getPostsByTag(posts, tag.id).length; 32 | return ( 33 | 36 | ); 37 | }) 38 | } 39 |
40 |
41 |
42 | -------------------------------------------------------------------------------- /src/pages/blog/[...page].astro: -------------------------------------------------------------------------------- 1 | --- 2 | import type { GetStaticPathsOptions, Page } from "astro"; 3 | import { type CollectionEntry, getCollection } from "astro:content"; 4 | import Pagination from "../../components/Pagination.astro"; 5 | import { sortItemsByDateDesc } from "../../utils/helpers"; 6 | import MainLayout from "../../layouts/MainLayout.astro"; 7 | import siteConfig from "../../site.config"; 8 | import PostCardPreview from "../../components/PostCardPreview.astro"; 9 | 10 | export async function getStaticPaths({ paginate }: GetStaticPathsOptions) { 11 | const blogs = (await getCollection("blogs")).sort(sortItemsByDateDesc); 12 | return paginate(blogs, { pageSize: siteConfig.postsPerPage || 2 }); 13 | } 14 | 15 | type Props = { page: Page> }; 16 | 17 | const { page } = Astro.props; 18 | const allPosts = page.data; 19 | --- 20 | 21 | 22 |
23 |

Blog

24 | { 25 | siteConfig.blog?.description && ( 26 |

{siteConfig.blog?.description}

27 | ) 28 | } 29 | 30 |
33 | {allPosts.map((post) => )} 34 |
35 | 36 |
37 |
38 | -------------------------------------------------------------------------------- /src/utils/helpers.ts: -------------------------------------------------------------------------------- 1 | import { type CollectionEntry } from 'astro:content'; 2 | 3 | export function sortItemsByDateDesc(itemA: CollectionEntry<'blogs'>, itemB: CollectionEntry<'blogs'>) { 4 | return new Date(itemB.data.pubDate).getTime() - new Date(itemA.data.pubDate).getTime(); 5 | } 6 | 7 | export function createSlugFromTitle(title: string): string { 8 | return title 9 | .toLowerCase() 10 | .replace(/[^a-z0-9\s-]/g, '') // Remove special characters 11 | .trim() 12 | .replace(/\s+/g, '-') // Replace spaces with hyphens 13 | .replace(/-+/g, '-'); // Replace multiple hyphens with a single hyphen 14 | } 15 | 16 | export function getAllTags(posts: CollectionEntry<'blogs'>[]) { 17 | const tags: string[] = [...new Set(posts.flatMap((post) => post.data.tags || []).filter(Boolean))]; 18 | return tags 19 | .map((tag) => { 20 | return { 21 | name: tag, 22 | id: createSlugFromTitle(tag) 23 | }; 24 | }) 25 | .filter((obj, pos, arr) => { 26 | return arr.map((mapObj) => mapObj.id).indexOf(obj.id) === pos; 27 | }); 28 | } 29 | 30 | export function getPostsByTag(posts: CollectionEntry<'blogs'>[], tagId: string) { 31 | const filteredPosts: CollectionEntry<'blogs'>[] = posts.filter((post) => (post.data.tags || []).map((tag) => createSlugFromTitle(tag)).includes(tagId)); 32 | return filteredPosts; 33 | } 34 | 35 | export const withBase = (path: string) => `${import.meta.env.BASE_URL}${path}`; -------------------------------------------------------------------------------- /src/pages/contact.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import { Image } from "astro:assets"; 3 | import MainLayout from "../layouts/MainLayout.astro"; 4 | import siteConfig from "../site.config"; 5 | import coverImage from "../assets/images/pixeltrue-space-discovery.svg"; 6 | --- 7 | 8 | 9 |
10 |

{siteConfig.contactInfo?.title}

11 | Space envelop 20 |
21 | 22 |

23 | {siteConfig.contactInfo?.text} 24 |

25 |

26 | {siteConfig.contactInfo?.email?.text}
27 | 31 | {siteConfig.contactInfo?.email?.email} 32 | 33 |

34 |

35 | Social Profiles: 36 | { 37 | siteConfig.contactInfo?.socialProfiles?.map((profile) => ( 38 | 39 | {profile.text} 40 | 41 | )) 42 | } 43 |

44 |
45 |
46 |
47 | -------------------------------------------------------------------------------- /src/layouts/MainLayout.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import "../styles/global.css"; 3 | 4 | import Footer from "../components/Footer.astro"; 5 | import Nav from "../components/Nav.astro"; 6 | import Subscribe from "../components/Subscribe.astro"; 7 | import { withBase } from "../utils/helpers"; 8 | import siteConfig from "../site.config"; 9 | 10 | type LayoutProps = { 11 | pageTitle: string; 12 | activePage: string; 13 | showSubscribeForm?: boolean; 14 | }; 15 | const { 16 | pageTitle, 17 | activePage, 18 | showSubscribeForm = true, 19 | } = Astro.props as LayoutProps; 20 | --- 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 36 | 42 | {pageTitle} 43 | 44 | 45 |
46 |
51 | 52 | 53 | -------------------------------------------------------------------------------- /src/components/ThemeSwitcher.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import { Image } from "astro:assets"; 3 | import moon from "../assets/moon.svg"; 4 | import sun from "../assets/sun.svg"; 5 | import Button from "./Button.astro"; 6 | --- 7 | 8 | 18 | 19 | 34 | 35 | 65 | -------------------------------------------------------------------------------- /src/pages/tags/[id]/[...page].astro: -------------------------------------------------------------------------------- 1 | --- 2 | import { getCollection } from "astro:content"; 3 | import { 4 | getAllTags, 5 | getPostsByTag, 6 | sortItemsByDateDesc, 7 | } from "../../../utils/helpers"; 8 | import type { GetStaticPathsOptions, Page } from "astro"; 9 | import siteConfig from "../../../site.config"; 10 | import type { CollectionEntry } from "astro:content"; 11 | import MainLayout from "../../../layouts/MainLayout.astro"; 12 | import Pagination from "../../../components/Pagination.astro"; 13 | import Subscribe from "../../../components/Subscribe.astro"; 14 | import PostListPreview from "../../../components/PostListPreview.astro"; 15 | 16 | export async function getStaticPaths({ paginate }: GetStaticPathsOptions) { 17 | const posts = (await getCollection("blogs")).sort(sortItemsByDateDesc); 18 | const tags = getAllTags(posts); 19 | 20 | return tags.flatMap((tag) => { 21 | const filteredPosts = getPostsByTag(posts, tag.id); 22 | return paginate(filteredPosts, { 23 | params: { id: tag.id }, 24 | pageSize: siteConfig.postsPerPage || 2, 25 | }); 26 | }); 27 | } 28 | 29 | type Props = { page: Page> }; 30 | 31 | const { page } = Astro.props; 32 | const blog = page.data; 33 | const params = Astro.params; 34 | const allPosts = await getCollection("blogs", (post) => 35 | post.data.tags?.includes(params.id) 36 | ); 37 | const allTags = getAllTags(allPosts); 38 | const currentTag = allTags.find((tag) => { 39 | return tag.id === params.id; 40 | }); 41 | --- 42 | 43 | 44 |
45 |

Posts tagged with {currentTag?.name}

46 |
47 | {blog.map((post) => )} 48 |
49 | 50 |
51 |
52 | -------------------------------------------------------------------------------- /src/components/Subscribe.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import Button from "./Button.astro"; 3 | import siteConfig from "../site.config"; 4 | 5 | const subscribe = siteConfig.subscribe; 6 | 7 | const { class: className } = Astro.props; 8 | --- 9 | 10 | { 11 | subscribe?.formUrl && ( 12 |
19 | {subscribe.title && ( 20 |

26 | {subscribe.title} 27 |

28 | )} 29 | {subscribe.text && ( 30 |

31 | {subscribe.text} 32 |

33 | )} 34 |
42 | 45 | 54 | 61 |
62 |
63 | ) 64 | } 65 | -------------------------------------------------------------------------------- /src/components/Footer.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import siteConfig from "../site.config"; 3 | import SiteIdentity from "./SiteIdentity.astro"; 4 | const currentYear = new Date().getFullYear(); 5 | --- 6 | 7 |
8 | 31 | 48 | 56 |
57 | -------------------------------------------------------------------------------- /src/styles/animate.css: -------------------------------------------------------------------------------- 1 | html.light .swup-transition-overlay { 2 | background: linear-gradient( 3 | 60deg, 4 | var(--color-space-sand), 5 | var(--color-whitesmoke) 6 | ); 7 | } 8 | 9 | html.dark .swup-transition-overlay { 10 | background: linear-gradient( 11 | 0deg, 12 | var(--color-space-stone), 13 | var(--color-black) 14 | ); 15 | } 16 | 17 | body { 18 | --swup-fade-theme-duration: 0.3s; 19 | } 20 | 21 | @-webkit-keyframes slideInDown { 22 | from { 23 | -webkit-transform: translate3d(0, -100%, 0); 24 | transform: translate3d(0, -100%, 0); 25 | visibility: visible; 26 | } 27 | 28 | to { 29 | -webkit-transform: translate3d(0, 0, 0); 30 | transform: translate3d(0, 0, 0); 31 | } 32 | } 33 | 34 | @keyframes slideInDown { 35 | from { 36 | -webkit-transform: translate3d(0, -100%, 0); 37 | transform: translate3d(0, -100%, 0); 38 | visibility: visible; 39 | } 40 | 41 | to { 42 | -webkit-transform: translate3d(0, 0, 0); 43 | transform: translate3d(0, 0, 0); 44 | } 45 | } 46 | 47 | @-webkit-keyframes slideOutUp { 48 | from { 49 | -webkit-transform: translate3d(0, 0, 0); 50 | transform: translate3d(0, 0, 0); 51 | } 52 | 53 | to { 54 | visibility: hidden; 55 | -webkit-transform: translate3d(0, -100%, 0); 56 | transform: translate3d(0, -100%, 0); 57 | } 58 | } 59 | 60 | @keyframes slideOutUp { 61 | from { 62 | -webkit-transform: translate3d(0, 0, 0); 63 | transform: translate3d(0, 0, 0); 64 | } 65 | 66 | to { 67 | visibility: hidden; 68 | -webkit-transform: translate3d(0, -100%, 0); 69 | transform: translate3d(0, -100%, 0); 70 | } 71 | } 72 | 73 | .slideOutUp { 74 | -webkit-animation-name: slideOutUp; 75 | animation-name: slideOutUp; 76 | } 77 | 78 | .slideInDown { 79 | -webkit-animation-name: slideInDown; 80 | animation-name: slideInDown; 81 | } 82 | 83 | .animated { 84 | -webkit-animation-duration: 1s; 85 | animation-duration: 1s; 86 | -webkit-animation-fill-mode: both; 87 | animation-fill-mode: both; 88 | } 89 | -------------------------------------------------------------------------------- /src/components/SpaceKeyboard.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import SpaceBar from "./SpaceBar"; 3 | 4 | const messages = [ 5 | "🚀 To Infinity, And Beyond!", 6 | "🌌 In a galaxy far far away...", 7 | "⭐ May the force be with you!", 8 | "☄️ Game Over", 9 | "🌑 The Eagle has landed!", 10 | "🛰️ 42", 11 | "🤖 Wall-E", 12 | "👽 E.T. Phone Home", 13 | "🌠 We'll be Counting Stars", 14 | "👾 Press Start", 15 | "🌍 Powered by Astro & Preact", 16 | "🖖 Live long and prosper!", 17 | "☀️ Time is an illusion. Lunchtime doubly so.", 18 | ]; 19 | --- 20 | 21 |
24 | 30 | 36 | 42 | 47 | 53 | 59 |
60 | 61 | 76 | -------------------------------------------------------------------------------- /src/components/Nav.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import siteConfig, { type Link } from "../site.config"; 3 | import Hamburger from "./Hamburger.astro"; 4 | import ThemeSwitcher from "./ThemeSwitcher.astro"; 5 | import SiteIdentity from "./SiteIdentity.astro"; 6 | import NavLinks from "./NavLinks.astro"; 7 | import { withBase } from "../utils/helpers"; 8 | const { activePage } = Astro.props; 9 | --- 10 | 11 |
12 | 20 | 31 |
32 | 47 | 48 | 73 | -------------------------------------------------------------------------------- /src/pages/index.astro: -------------------------------------------------------------------------------- 1 | --- 2 | import { getCollection } from "astro:content"; 3 | import MainLayout from "../layouts/MainLayout.astro"; 4 | import siteConfig from "../site.config"; 5 | import { sortItemsByDateDesc, withBase } from "../utils/helpers"; 6 | import PostCardPreview from "../components/PostCardPreview.astro"; 7 | import Button from "../components/Button.astro"; 8 | import { Image } from "astro:assets"; 9 | import heroImage from "../assets/images/pixeltrue-space-discovery.svg"; 10 | import ArrowRight from "../icons/ArrowRight.astro"; 11 | 12 | const allPosts = (await getCollection("blogs")).sort(sortItemsByDateDesc); 13 | --- 14 | 15 | 19 |
22 |
23 | { 24 | siteConfig.hero?.eyebrowText && ( 25 | 26 | {siteConfig.hero?.eyebrowText} 27 | 28 | ) 29 | } 30 |

31 | {siteConfig.hero?.title} 32 |

33 |

34 | {siteConfig.hero?.text} 35 |

36 |
39 | { 40 | siteConfig.hero?.actions?.map((action, index) => ( 41 | 47 | )) 48 | } 49 |
50 |
51 |
52 | 53 | {"Astronaut 60 |
61 |
62 |
63 |
64 |

Recent Stories

65 |
66 | { 67 | allPosts 68 | .slice(0, siteConfig.recentPostLimit) 69 | .map((post) => ) 70 | } 71 |
72 | 75 |
76 |
77 |
78 | -------------------------------------------------------------------------------- /src/pages/blog/[id].astro: -------------------------------------------------------------------------------- 1 | --- 2 | import "../../styles/global.css"; 3 | import { Image } from "astro:assets"; 4 | import { 5 | sortItemsByDateDesc, 6 | createSlugFromTitle, 7 | withBase, 8 | } from "../../utils/helpers"; 9 | import { type CollectionEntry, getCollection, render } from "astro:content"; 10 | import Button from "../../components/Button.astro"; 11 | import MainLayout from "../../layouts/MainLayout.astro"; 12 | import ArrowLeft from "../../icons/ArrowLeft.astro"; 13 | import ArrowRight from "../../icons/ArrowRight.astro"; 14 | import siteConfig from "../../site.config"; 15 | 16 | export async function getStaticPaths() { 17 | const posts = (await getCollection("blogs")).sort(sortItemsByDateDesc); 18 | const postCount = posts.length; 19 | return posts.map((post, index) => ({ 20 | params: { id: post.id }, 21 | props: { 22 | post, 23 | prevPost: index + 1 !== postCount ? posts[index + 1] : null, 24 | nextPost: index !== 0 ? posts[index - 1] : null, 25 | }, 26 | })); 27 | } 28 | 29 | type Props = { 30 | post: CollectionEntry<"blogs">; 31 | prevPost: CollectionEntry<"blogs">; 32 | nextPost: CollectionEntry<"blogs">; 33 | }; 34 | 35 | const { post, prevPost, nextPost } = Astro.props; 36 | const { title, pubDate, author, tags = [], image } = post.data; 37 | const { Content } = await render(post); 38 | --- 39 | 40 | 41 |
42 |

{title}

43 |

44 | by 🧑‍🚀 {author} on {new Date(pubDate).toDateString()} 47 |

48 | { 49 | image && image.url && ( 50 | {image?.alt 51 | ) 52 | } 53 |
54 | 55 |
56 |

57 | Tagged: { 58 | tags.map((tag) => ( 59 | 65 | )) 66 | } 67 |

68 |
71 | 74 | { 75 | (prevPost || nextPost) && nextPost && ( 76 | 83 | ) 84 | } 85 |
86 |
87 |
88 | -------------------------------------------------------------------------------- /src/styles/global.css: -------------------------------------------------------------------------------- 1 | @import url("animate.css"); 2 | @import url("fonts.css"); 3 | @import "tailwindcss"; 4 | 5 | /* 0. color variables & fonts */ 6 | /* 1. html elements */ 7 | /* 2. utilities */ 8 | 9 | /* 0. color variables & fonts */ 10 | :root { 11 | --space-red: #90393a; 12 | --space-yellow: #ffff85; 13 | --space-sand: #e2d1c3; 14 | --space-stone: #434343; 15 | } 16 | 17 | /* Required to ensure dark: modifiers work when manually toggling mode */ 18 | /* REF: https://tailwindcss.com/docs/dark-mode#toggling-dark-mode-manually */ 19 | @custom-variant dark (&:where(.dark, .dark *)); 20 | 21 | @theme { 22 | --font-sans: "Kanit", "sans-serif"; 23 | --color-space-red: var(--space-red); 24 | --color-space-yellow: var(--space-yellow); 25 | --color-space-sand: var(--space-sand); 26 | --color-space-stone: var(--space-stone); 27 | --color-whitesmoke: whitesmoke; 28 | } 29 | 30 | /* 1. html elements */ 31 | html, 32 | body { 33 | @apply mx-0 my-auto min-h-screen p-0 text-base; 34 | overscroll-behavior: none; 35 | } 36 | 37 | html.dark body { 38 | background-image: linear-gradient( 39 | to bottom, 40 | var(--color-space-stone) 0%, 41 | black 100% 42 | ); 43 | @apply bg-black bg-cover bg-no-repeat text-whitesmoke; 44 | } 45 | 46 | html.light body { 47 | /* background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); */ 48 | background-image: linear-gradient(180deg, #fdfcfb 0%, #e2d1c3 100%); 49 | @apply bg-space-sand bg-cover bg-no-repeat text-black; 50 | } 51 | 52 | /* semantic elements */ 53 | header { 54 | @apply sticky top-4 z-20 mr-auto ml-auto flex w-full max-w-3xl flex-col items-center justify-center px-0 py-0 text-base; 55 | } 56 | 57 | header > nav { 58 | @apply flex flex-row items-center justify-between gap-2 rounded-4xl px-5 py-2 text-xs backdrop-blur-3xl sm:gap-8 sm:py-3 sm:text-base; 59 | /* inner glow 👇 */ 60 | box-shadow: 61 | inset 0 0 0.5px 1px hsla(0, 0%, 100%, 0.075), 62 | /* shadow ring 👇 */ 0 0 0 1px hsla(0, 0%, 0%, 0.05), 63 | /* multiple soft shadows 👇 */ 0 0.3px 0.4px hsla(0, 0%, 0%, 0.02), 64 | 0 0.9px 1.5px hsla(0, 0%, 0%, 0.045), 65 | 0 3.5px 6px hsla(0, 0%, 0%, 0.09); 66 | } 67 | 68 | main { 69 | @apply mx-auto flex flex-col items-start justify-between px-4 pt-0 pb-0 sm:items-center; 70 | } 71 | 72 | footer { 73 | @apply mx-auto mt-12 flex w-full max-w-3xl flex-col flex-wrap items-center justify-center gap-4; 74 | } 75 | 76 | h1 { 77 | @apply py-4 text-2xl sm:py-6 sm:text-6xl; 78 | } 79 | 80 | h2 { 81 | @apply py-2 text-xl sm:py-4 sm:text-3xl; 82 | } 83 | 84 | p { 85 | @apply mb-6; 86 | } 87 | 88 | img { 89 | @apply h-auto max-w-full rounded-xl; 90 | } 91 | 92 | /* links */ 93 | a.button-link:not(:disabled), 94 | button.button-link:not(:disabled) { 95 | @apply inline-flex cursor-pointer items-center justify-center rounded-full border px-6 py-2 leading-tight transition hover:border-space-red hover:text-space-red sm:px-8 hover:dark:border-space-yellow hover:dark:text-space-yellow; 96 | } 97 | a.button-link.space-btn-filled:not(:disabled), 98 | button.button-link.space-btn-filled:not(:disabled) { 99 | @apply bg-black text-whitesmoke hover:border-space-red hover:bg-space-red dark:bg-whitesmoke dark:text-black dark:hover:border-space-yellow dark:hover:bg-space-yellow; 100 | } 101 | a.button-link.space-btn-outlined:not(:disabled), 102 | button.button-link.space-btn-outlined:not(:disabled) { 103 | @apply border border-black bg-transparent text-black hover:border-space-red hover:text-space-red dark:border-whitesmoke dark:bg-transparent dark:text-whitesmoke dark:hover:border-space-yellow dark:hover:text-space-yellow; 104 | } 105 | 106 | html.dark a:not(.button-link) { 107 | @apply text-whitesmoke; 108 | } 109 | 110 | html.light a:not(.button-link) { 111 | @apply text-black; 112 | } 113 | 114 | html.light a:not(.button-link):hover { 115 | @apply text-space-red; 116 | } 117 | 118 | html.dark a:not(.button-link):hover { 119 | @apply text-space-yellow; 120 | } 121 | 122 | .page-content { 123 | @apply my-12 w-full px-4 text-center; 124 | } 125 | 126 | @keyframes cursor-blink { 127 | 0% { 128 | opacity: 0; 129 | } 130 | } 131 | 132 | .blinking { 133 | animation: cursor-blink 1.2s steps(2) infinite; 134 | } 135 | 136 | @media (orientation: portrait) { 137 | .page-content { 138 | text-align: left; 139 | } 140 | } 141 | 142 | @media (max-width: 315px) { 143 | section { 144 | gap: 3rem; 145 | } 146 | } 147 | -------------------------------------------------------------------------------- /changelog.md: -------------------------------------------------------------------------------- 1 | # Space Ahead ✨ Changelog 2 | 3 | ## v0.11.4 (Latest) - Oct 29, 2025 4 | 5 | This is a monthly update release intended to keep the dependencies up-to-date, addressing any security issues and any user reported issues. 6 | 7 | ### Updates 8 | 9 | - Dependency updates 10 | 11 | ## v0.11.3 - Sept 19, 2025 12 | 13 | ### New 14 | 15 | - New demo site created to showcase how easy it is, to adapt this theme. Check out [Samay Anand's Blog](https://djsiddz.github.io/samay-anand)! 16 | 17 | ### Updates 18 | 19 | - Add control for Blog page content from site config. 20 | - Use withBase helper for site logo. 21 | 22 | ## v0.11.2 23 | 24 | ### Updates 25 | 26 | - Dependency updates 27 | 28 | ## v0.11.1 29 | 30 | ### Fixes 31 | 32 | - Fix Contact Nav highlight 33 | - Improve buttons layout on Blog Post page 34 | 35 | ## v0.11.0 36 | 37 | ### Updates 38 | 39 | - Update Astro, Tailwind & other deps to latest versions. 40 | - Fix & improve RSS generation. 41 | - Fix & improve sitemap generation. 42 | - Implement consistent usage of siteConfig and withBase helper. 43 | - Readme updated with preview image. 44 | 45 | ## v0.10.0 46 | 47 | ### New Features 48 | 49 | - New contacts page. 50 | - New Astro Sitemap generator integration. 51 | - New withBase() utility for centralized usage of `import.meta.BASE_URL`. 52 | - Subscribe component moved to the shared layout, with option to hide on individual page. 53 | - Eyebrow is now conditionally displayed, based on value set in site config. 54 | - Control number of Recent Posts displayed on home page, via site config. 55 | - Added GNU GPL v3 license. 56 | 57 | ### Updates 58 | 59 | - Major styling is now done using Tailwindcss instead of custom css. 60 | - Updated consistency with spacing and mobile layout improvements. 61 | - All links use BASE_URL meta property, consistently. 62 | - Improved Pagination styling and disabled state. 63 | - Improved Footer layout with new styling. 64 | - Improved Subscribe component styling. 65 | - Improved Theme Toggle component. 66 | - Improved 404 page. 67 | - Fix Tagged Post page to show only relevant posts. 68 | - Fix Post Card Preview styling. 69 | - Chore: Updated PNPM Workspace and added Prettier. 70 | 71 | ### Removed 72 | 73 | - Subtitle has been removed from site config and footer. 74 | 75 | ## v0.9.0 76 | 77 | ### Known Issues 78 | 79 | - Pending fresh Tailwind CSS integration, especially for certain components - Pagination, ArrowLeft & ArrowRight icons, Subscribe form. 80 | - Refactored SpaceMessages component, but not yet used in the project. I'll attempt a new implementation in the future for this. Also this is the only component that requires Preact dependency. 81 | 82 | ### New Features 83 | 84 | - Added a new site config file to manage most of the site configuration and meta from one place. 85 | - New Button & Icon Button components. 86 | - New Formatted Date component. 87 | - New Site Identity component. 88 | - New Pagination component, along with ArrowLeft & ArrowRight icons. 89 | - New Subscribe component, with a form and a button. 90 | - New PostListPreview component for a simple text-only blog post preview. 91 | - New PostCardPreview component for a blog post preview with an image. 92 | - New 404 page. [No UI changes yet] 93 | - New utility functions helper file for formatting dates, getting the current year, fetching tags, posts by tag, etc. 94 | 95 | ### Updates 96 | 97 | - Switch from yarn to pnpm. 98 | - Update all dependencies to the latest versions. 99 | - Added swup.js for page transitions, with customization for two themes: fade and overlay. 100 | - Updated the MainLayout with a max width with auto margins, switched from section to main tag for compatibility with swup.js. 101 | - Switch to Astro's updated content collection API. Redefined the blogs collection. 102 | - Moving all images to the `src/assets` folder and using the `Image` component to load them. 103 | - Moved all posts to the `src/content/blogs` folder and using the `getCollection` function to load them. 104 | - Updated the Footer layout, with separate nav links, social links and copyright text. 105 | - Updated the Nav component to use site configuration, and improved UI. 106 | - Updated the About page to use site configuration, removed Hobbies section to keep it simple. 107 | - Updated the Blog page, and individual blog post pages to use the new content collection API, and naming conventions as per Astro v5. 108 | - Updated the Home page to use site configuration, new content collection API, and general improved UI. 109 | - Updated the Tags page and individual tag pages to use the new content collection API, and naming conventions as per Astro v5. 110 | - Updates to global styles in `global.css`; swup related styles in `animate.css`. 111 | - Switch to astro's strict tsconfig 112 | 113 | ### Improvements from Upgrading to Astro v5 114 | 115 | - Use Astro v5's image component, which is more efficient and faster than the previous image component. 116 | - Since we are using pnpm, sharp is added as a dependency manually as per Astro's documentation. 117 | - Use Astro v5's content collections, which is more efficient and faster than the previous content collections. 118 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Space Ahead ✨ - An Astro v5 Personal Blog Template 2 | 3 | A minimal space-inspired personal blog template, created by Siddhesh Thadeshwar. 4 | 5 | ![Space Ahead ✨](/space-ahead-preview.jpeg) 6 | 7 | See the [demo](https://djsiddz.github.io/space-ahead) to know more. 8 | 9 | ## 🆕 Real-like Demo 10 | 11 | View **Mumbai Stories** - [Samay Anand's Blog](https://djsiddz.github.io/samay-anand)! 🏏 | Source Code [here](https://github.com/djsiddz/samay-anand). 12 | 13 | ## Theme Features 14 | 15 | - ✅ Tailwind CSS 16 | - ✅ Mobile-first responsive layout 17 | - ✅ Dark and light color mode 18 | - ✅ Custom About, Contact & 404 pages 19 | - ✅ Hero section with short bio 20 | - ✅ Blog content collection 21 | - ✅ Pagination support 22 | - ✅ Tags support for blog posts 23 | - ✅ Subscription form (only UI) 24 | - ✅ View transitions (via swup.js) 25 | - ✅ Sitemap support 26 | - ✅ RSS Feed support 27 | - ✅ Markdown support 28 | 29 | ### Future Scope (Based on requests) 30 | 31 | - ⏹️ MDX support via @astrojs/mdx integration 32 | - ⏹️ SEO-friendly with canonical URLs and OpenGraph data 33 | - ⏹️ New Portfolio/Projects content collection 34 | 35 | ## Template Integrations 36 | 37 | - Tailwind v4 via Vite Plugin as per latest Astro docs 38 | - Swup.js for View Transitions 39 | - RSS: [@astrojs/rss](https://docs.astro.build/en/guides/rss/) 40 | - Sitemap: [@astrojs/sitemap](https://docs.astro.build/en/guides/integrations-guide/sitemap/) 41 | 42 | ## How to use this template 43 | 44 | ### Getting Started 45 | 46 | 1. [Create a new repo](https://github.com/new?template_name=space-ahead&template_owner=djsiddz) using this template. 47 | 2. Clone to repo to your local computer using `git clone `. Then `cd `. 48 | 3. Setup `pnpm` and use `pnpm install` and then `pnpm dev`. 49 | 4. Use the `astro.config.mjs` and `src/site.config.ts` files to setup the template to your liking. 50 | 5. Update any content on homepage (`src/pages/index.astro`), about (`src/pages/about.astro`), and contact (`src/pages/contact.astro`). 51 | 6. Replace the template posts under (`src/content/blogs/*.md`) with your blog posts, using the same format, with the post metadata. 52 | 7. Check the [Astro Deployment guide](https://docs.astro.build/en/guides/deploy/) to know specific steps on deploying this on your preferred provider platform. 53 | 54 | ### Project Structure 55 | 56 | You'll see the following folders and files: 57 | 58 | ```text 59 | ├── public/----------------- Contains the site logo (replace with your own). 60 | ├── src/-------------------- 61 | │   ├── assets/------------- Contains svg icons for theme toggle component. 62 | │   │ └── images/--------- Contains default images for homepage and blog posts. 63 | │   ├── components/--------- All Astro/Preact components in this theme. 64 | │   ├── content/------------ Content Collections folder. 65 | │   │ └── blogs/---------- All the blog posts in *.md files. 66 | │   ├── icons/-------------- All Astro icon components. 67 | │   ├── layouts/------------ Shared Layout component. 68 | │   ├── pages/-------------- Various Astro pages, dynamic pages for blogs, tags; a custom 404 page. 69 | │   ├── styles/------------- Contains `global.css`, `fonts.css` and `animate.css`. 70 | │   ├── utils/-------------- Contains helper functions. 71 | │   ├── content.config.ts--- Content collections definitions. 72 | │   ├── env.d.ts------------ Contains helper functions. 73 | │   └── site.config.ts------ Manage your site information and content here. 74 | ├── astro.config.mjs-------- Astro configuration file. 75 | ├── changelog.md------------ Detailed Changelog for this theme. 76 | ├── LICENSE----------------- Theme License. 77 | ├── package.json------------ Dependencies and metadata about this template. 78 | ├── README.md--------------- 📍 You are here. 79 | └── tsconfig.json----------- Typescript configuration file. 80 | ``` 81 | 82 | #### Notes 83 | 84 | - Read & consult [Astro's documentation](https://docs.astro.build/) for up-to-date information and making changes to this template. 85 | - The `src/components` directory is where we like to put any Astro or Preact components. 86 | - The `src/content/` directory contains "collections" of related Markdown (and MDX) documents. Use getCollection() to retrieve posts from `src/content/blogs/`, and type-check your frontmatter using an optional schema. See Astro's [Content Collections](https://docs.astro.build/en/guides/content-collections/) docs to learn more. 87 | 88 | ## Credits and Support Info 89 | 90 | ### Support Info 91 | 92 | - I provide **paid service** for customizing and setup any of my Astro templates for your projects and startups. Contact me on [Contra](https://contra.com/siddhesht) to know more. 93 | - Please feel free to create issues for any bugs or feature requests on this theme. 94 | 95 | ### Credits 96 | 97 | - Generated Space Ahead ✨ logo and images for demo blog content using Microsoft Designer. 98 | - Homepage illustration by Pixeltrue Ouch! 99 | - Inspired from these amazing Astro templates - [Dante](https://github.com/JustGoodUI/dante-astro-theme) & [Chiri](https://github.com/the3ash/astro-chiri). Please do check them out. 100 | 101 | ## License 102 | 103 | [GNU GPL v3](/LICENSE) 104 | -------------------------------------------------------------------------------- /src/site.config.ts: -------------------------------------------------------------------------------- 1 | import { withBase } from "./utils/helpers"; 2 | 3 | export type Image = { 4 | src: string; 5 | alt?: string; 6 | caption?: string; 7 | }; 8 | 9 | export type Link = { 10 | text: string; 11 | href: string; 12 | }; 13 | 14 | export type Hero = { 15 | eyebrowText?: string; 16 | title?: string; 17 | text?: string; 18 | image?: Image; 19 | actions?: Link[]; 20 | }; 21 | 22 | export type About = { 23 | title?: string; 24 | text?: string; 25 | }; 26 | 27 | export type Blog = { 28 | description?: string; 29 | }; 30 | 31 | export type ContactInfo = { 32 | title?: string; 33 | text?: string; 34 | email?: { 35 | text?: string; 36 | href?: string; 37 | email?: string; 38 | }; 39 | socialProfiles?: { 40 | text?: string; 41 | href?: string; 42 | }[]; 43 | }; 44 | 45 | export type Subscribe = { 46 | title?: string; 47 | text?: string; 48 | formUrl: string; 49 | }; 50 | 51 | export type SiteConfig = { 52 | website: string; 53 | logo?: Image; 54 | title: string; 55 | description: string; 56 | image?: Image; 57 | headerNavLinks?: Link[]; 58 | footerNavLinks?: Link[]; 59 | socialLinks?: Link[]; 60 | hero?: Hero; 61 | about?: About; 62 | contactInfo?: ContactInfo; 63 | subscribe?: Subscribe; 64 | blog?: Blog; 65 | postsPerPage?: number; 66 | recentPostLimit: number; 67 | projectsPerPage?: number; 68 | }; 69 | 70 | const siteConfig: SiteConfig = { 71 | website: 'https://example.com', 72 | title: 'Space Ahead', 73 | description: 'A minimal space-inspired personal blog template built with Astro.js and Tailwind CSS, by Siddhesh Thadeshwar', 74 | image: { 75 | src: '/space-ahead-preview.jpeg', 76 | alt: 'Space Ahead ✨ - A minimal space-inspired personal blog template, created by Siddhesh Thadeshwar.' 77 | }, 78 | headerNavLinks: [ 79 | { 80 | text: 'Home', 81 | href: withBase('/') 82 | }, 83 | { 84 | text: 'Blog', 85 | href: withBase('/blog') 86 | }, 87 | { 88 | text: 'Tags', 89 | href: withBase('/tags') 90 | }, 91 | { 92 | text: 'About', 93 | href: withBase('/about') 94 | }, 95 | { 96 | text: 'Contact', 97 | href: withBase('/contact') 98 | } 99 | ], 100 | footerNavLinks: [ 101 | { 102 | text: 'About', 103 | href: withBase('/about') 104 | }, 105 | { 106 | text: 'Contact', 107 | href: withBase('/contact') 108 | }, 109 | { 110 | text: 'RSS Feed', 111 | href: withBase('/rss.xml') 112 | }, 113 | { 114 | text: 'Sitemap', 115 | href: withBase('/sitemap-index.xml') 116 | } 117 | ], 118 | socialLinks: [ 119 | { 120 | text: 'Dribbble', 121 | href: 'https://dribbble.com/' 122 | }, 123 | { 124 | text: 'Instagram', 125 | href: 'https://instagram.com/' 126 | }, 127 | { 128 | text: 'X/Twitter', 129 | href: 'https://twitter.com/' 130 | } 131 | ], 132 | hero: { 133 | eyebrowText: 'Galaxy of Adventures', 134 | title: 'Space Ahead ✨', 135 | text: "Written by Astro-naut Sid, a space explorer at Beyond Earth.", 136 | image: { 137 | src: '/assets/images/pixeltrue-space-discovery.svg', 138 | alt: 'A person sitting at a desk in front of a computer' 139 | }, 140 | actions: [ 141 | { 142 | text: 'Read Now', 143 | href: withBase('/blog') 144 | }, 145 | { 146 | text: 'Subscribe', 147 | href: '#subscribe' 148 | } 149 | ] 150 | }, 151 | about: { 152 | title: 'About', 153 | text: 'Space Ahead is a blog about space exploration and travel. It is written by Astro-naut Sid, a space explorer at Beyond Earth. Sid is known for his love of adventure and his insatiable curiosity about the universe. He has explored countless planets, discovered new life forms, and made friends with aliens along the way. 🚀', 154 | }, 155 | contactInfo: { 156 | title: 'Contact', 157 | text: "Hi! Whether you have a question, a suggestion, or just want to share your thoughts, I'm all ears. Feel free to get in touch through any of the methods below:", 158 | email: { 159 | text: "Drop me an email and I’ll do my best to respond as soon as possible.", 160 | href: "mailto:example@example.com", 161 | email: "example@example.com" 162 | }, 163 | socialProfiles: [ 164 | { 165 | text: "LinkedIn", 166 | href: "https://www.linkedin.com/" 167 | }, 168 | { 169 | text: "Peerlist", 170 | href: "https://www.peerlist.io/" 171 | }, 172 | { 173 | text: "GitHub", 174 | href: "https://github.com/" 175 | } 176 | ] 177 | }, 178 | subscribe: { 179 | title: 'Subscribe to Space Ahead', 180 | text: 'One update per week. All the latest stories in your inbox.', 181 | formUrl: '#' 182 | }, 183 | blog: { 184 | description: "Read about my space adventures, explorations and the aliens I've met on my journeys." 185 | }, 186 | postsPerPage: 2, 187 | recentPostLimit: 3 188 | }; 189 | 190 | export default siteConfig; 191 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . -------------------------------------------------------------------------------- /public/pretty-feed-v3.xsl: -------------------------------------------------------------------------------- 1 | 2 | 68 | 71 | 72 | 73 | 74 | 75 | <xsl:value-of select="/rss/channel/title"/> Web Feed 76 | 77 | 78 | 79 | 80 | 81 | 89 |
90 |
91 |

92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | Web Feed Preview 111 |

112 |

113 |

114 | 115 | 116 | 117 | 118 | Visit Website → 119 | 120 |
121 |

Recent Items

122 | 123 |
124 |

125 | 126 | 127 | 128 | 129 | 130 | 131 |

132 | 133 | Published: 134 | 135 |
136 |
137 |
138 | 139 | 140 |
141 |
--------------------------------------------------------------------------------