summaryrefslogtreecommitdiff
path: root/examples/blog/src (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-03-20added prop type definition for FormattedDate in Blog example (#6591)Gravatar Matthew Mercuri 1-0/+4
2023-02-21Fix import of type HTMLAttributes in blog example (#6322)Gravatar Christofer J. Ekervhén 1-1/+3
* Fix extend type HTMLAttributes in blog example * Update examples/blog/src/components/HeaderLink.astro Co-authored-by: Christofer J. Ekervhén <45903979+ChrisEke@users.noreply.github.com> --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-02-09Fix blog starter about page (#6195)Gravatar Ben Holmes 5-28/+86
* refactor: about.md -> about.astro * chore: add strictNullChecks * fix: format date on blog post layout
2023-01-19[RSS] Get ready for content collections (#5851)Gravatar Ben Holmes 1-1/+1
* chore: strictNullChecks for zod * feat: expose `rssSchema` helper * refactor: align types with schema types * feat: break glob handler to globToRssItems util * refactor: RSS options validation to Zod * refactor: avoid intermediate type * fix: allow numbers and dates in pubDate * test: update glob and error tests * feat: add rss to with-content starter * fix: move globToRssItems back to internal behavior * chore: JSON.stringify * Revert "fix: move globToRssItems back to internal behavior" This reverts commit 85305075e6444907455541b24bccbccd5016951a. * test: missing url * docs: `import.meta.env.SITE` -> `context.site` * docs: update README to content collections example * fix: url -> link * docs: add `rssSchema` to README * chore: consistent formatting * docs: add `pagesGlobToRssItems()` reference * chore: globToRssItems -> pagesGlobToRssItems * chore: changeset * fix: bad docs line highlighting * fix: add collections export to example * nit: remove "our" * fix: are -> all * fix: more README edits * deps: kleur * chore: add back import.meta.glob handling as deprecated * docs: bump down to `minor`, update headline to be less content collections-y * typo: suggest adding * chore: support URL object on `site` * docs: add await to pagesGlob ex * docs: tighten `rssSchema` explainer * docs: tighten pagesGlobToRssItems section * docs: add content to README * docs: replace examples with docs link * docs: re-we Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-18Migrate blog and docs starters to content collections (#5858)Gravatar Ben Holmes 15-59/+99
* docs: update README for `content/` * chore: update env * feat: update blog to use content collections * chore: remove with-content starter * fix: single quotes -> double * feat: update docs starter to content collections * refactor: config -> consts * chore: import type * edit: Astro will -> Use Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * chore: remove unused null check * nit: spacing * nit: `as Props` 1 Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * nit: `as Props` 2 Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * chore: consistent CONSTS usage * chore: `type` imports at top * chore: consistent quote usage on YAML * chore: remove `as Props` from docs Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-12-21[ci] formatGravatar delucis 1-1/+1
2022-12-21Add canonical URL to blog example (#5651)Gravatar Shivam 1-0/+5
2022-11-08[ci] formatGravatar Princesseuh 2-17/+21
2022-11-01fix: consider trailing slashes when calculating current path in blog example ↵Gravatar Shoubhit Dash 1-1/+3
(#5272)
2022-10-24[ci] formatGravatar Princesseuh 1-14/+11
2022-09-22examples rss: add mdx file ending (#4710)Gravatar Tobias 1-1/+1
This follows the same pattern used in https://github.com/withastro/astro/blob/main/examples/blog/src/pages/blog.astro#L8. Without adding `mdx` here, only some blog posts will be part of the rss.xml file.
2022-09-22Update blog post date text color to meet contrast-ratio guidelines (#4821)Gravatar Brett Jankord 1-1/+1
2022-09-13Template (Blog): fix `HeaderLink` `isActive` check (#4647)Gravatar Sami Jaber 1-1/+1
* remove trailing slashes when checking active href * use simpler regex Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * remove unused code Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-09-03examples: Blog template changes (#4577)Gravatar Daren Chandisingh 3-4/+4
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-08-26Remove "as Props" from the astro examples (#4494)Gravatar Mohammed Elhaouari 2-2/+2
2022-08-26Update blog.astro (#4486)Gravatar Peter Singh 1-2/+2
2022-08-17Switch examples favicon to use svg (#4331)Gravatar Nate Moore 1-1/+1
* chore(examples): switch favicon to svg * chore: astro.svg => favicon.svg * Update examples/basics/README.md Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2022-08-17Fix example blog post markdown-style-guide.md image extension (#4360)Gravatar Caleb 1-1/+1
2022-08-15fix(blog): height auto img (#4327)Gravatar Nate Moore 1-0/+1
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-15[ci] formatGravatar FredKSchott 2-9/+9
2022-08-15image fix (#4322)Gravatar Fred K. Schott 12-40/+30
2022-08-13[examples/blog] move copyGravatar Fred K. Schott 1-6/+6
2022-08-13[ci] formatGravatar FredKSchott 3-16/+23
2022-08-13Update: blog template (#4283)Gravatar Fred K. Schott 24-625/+476
* add new blog template * update placeholder images * use svg favicon * Update examples/blog/src/pages/blog/using-mdx.mdx Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * fred pass * more fred pass Co-authored-by: Nate Moore <nate@astro.build> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-08Add Astro.generator (#4012)Gravatar Nate Moore 1-0/+1
* feat: add generator property and component * chore: remove `Generator` component * chore: update generator description * chore: include generator in examples * chore: update lockfile * chore: format * fix: do not reference core from server runtime * chore: remove component test Co-authored-by: Nate Moore <nate@astro.build>
2022-08-06[ci] formatGravatar FredKSchott 3-8/+7
2022-08-05Move types to a .d.ts file inside examples projects (#4171)Gravatar Erika 1-0/+1
* Move types to a .d.ts file to avoid making types explicit * Rename to proper types * Move to proper place * Add noEmit to tsconfig.json * Add back removed code by accident
2022-07-21Replace/Rename Astro.canonicalURL with new Astro.url helper (#3959)Gravatar Fred K. Schott 1-2/+3
* add Astro.url * Add examples of how to create the canonicalURL Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-07-12[ci] formatastro@1.0.0-beta.69@astrojs/vue@0.3.1@astrojs/vercel@0.2.6@astrojs/telemetry@0.3.1@astrojs/tailwind@0.2.4@astrojs/svelte@0.3.1@astrojs/solid-js@0.3.1@astrojs/sitemap@0.2.6@astrojs/react@0.3.1@astrojs/prefetch@0.0.5@astrojs/preact@0.4.1@astrojs/partytown@0.1.8@astrojs/node@0.1.6@astrojs/netlify@0.4.10@astrojs/mdx@0.1.1@astrojs/markdown-remark@0.11.5@astrojs/image@0.1.2@astrojs/deno@0.1.10@astrojs/cloudflare@0.2.4Gravatar matthewp 2-7/+7
2022-07-12Example blog rework (#3896)Gravatar Ben Holmes 15-428/+305
* refactor: restructure components, kill dead code * nit: tweak base styles * nit: remove unneeded code comments * refactor: replace unused permalink with canonicalURL * refactor: add missing prop types * feat: make markdown examples more interesting * chore: consistent semis and quotes * chore: astro check failures * fix: bad url prop * fix: bad frontmatter quote * chore: more dead styles * chore: add header gap * refactor: use tsx for likebutton * fix: restore post sorting * chore: remove unused flex-row util * fix: small md formatting on README * chore: run through astro-plugin-prettier * fix: revert to double quotes * fix: manually move style outside <body> * fix: update file tree in README * refactor: publish-date -> time * refactor: remove unused div and margin * refactor: publishDate -> time on layout * refactor: .heroImage -> img * refactor: .logo -> svg * feat: update social image, remove jpg * fix: remove prism stylesheet!
2022-07-08Format astro files in examples (#3862)Gravatar Marcus Otterström 6-39/+69
2022-05-11fix: updated blog template with existing address (#3312)Gravatar Gautier Ben Aïm 1-2/+2
2022-04-02update prettier width (#2968)Gravatar Fred K. Schott 1-3/+5
2022-03-28New Markdown API (#2862)Gravatar Fred K. Schott 2-9/+5
* Implement new markdown plugin with deferred markdown rendering * feat: switch from `getContent()` fn to `<Content />` API * update types * Update packages/astro/src/@types/astro.ts Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * update types * Create forty-coins-attend.md Co-authored-by: Nate Moore <nate@skypack.dev> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-03-18Feat: change to shiki default md renderer (#2824)Gravatar Ben Holmes 1-16/+5
* feat: change Shiki to default * refactor: update blog styles for shiki * feat: update examples/docs styles for Shiki * refactor: remove Prism-ish examples/docs styles * refactor: simplify rules with `all: unset` * refactor: remove Prism styles * refactor: examples/with-md remove Prism-specific line-highlight * chore: add changeset * chore: update changeset versions * refactor: update syntax highlight test for scoped styles * fix: apply scoped style class to pre and span lines * feat: test that scoped styles cascade to shiki code * refactor: pass scopedClassName explicitly
2022-03-10Support Prism in the blog template example (#2622)Gravatar Ian Bull 3-1/+12
The Prism syntax highlighter failed to render properly when Astro was initialized with the blog template. This was because the Prism CSS conflicted with the default blog template. This change-set removes the Viewport Width from the `pre` transform as this property conflicted with the prism CSS. This change-set also includes Prism in the Blog Post layout and adds a small javascript example to the sample post.
2022-03-09Update examples for 0.24.0 (#2740)Gravatar Tony Sullivan 1-4/+1
* removing Astro.resolve, adding sass dev dependencies * updating tailwind example to use ESM style imports * moving from `<style global>@import` to ESM imports * updating lockfile to pick up examples sass deps * chore(lint): ESLint fix Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-01-14Fixes for blog and docs examples (#2373)Gravatar Matthew Phillips 3-2/+6
* Fixes for blog and docs examples * Adds a changeset * Upgrade the compiler version * Use a global style tag * Skip on windows temporarily
2021-12-22Use accessible indentation (#2253)Gravatar Jonathan Neal 10-487/+519
2021-11-24move styles to src (#2003)Gravatar Fred K. Schott 3-2/+286
2021-11-19Remove escape in blog example postGravatar Matthew Phillips 1-1/+1
2021-11-19[ci] yarn formatGravatar matthewp 1-1/+1
2021-11-19Fix blog example yet again (#1917)Gravatar Matthew Phillips 1-1/+1
2021-11-19[ci] yarn formatGravatar matthewp 1-1/+1
2021-11-19Small fixes (#1911)Gravatar Matthew Phillips 1-1/+1
2021-11-19[ci] yarn formatGravatar matthewp 1-1/+1
2021-11-19Fix blog example (#1910)Gravatar Matthew Phillips 1-1/+1
2021-10-29[ci] yarn formatGravatar natemoo-re 1-1/+1
2021-10-29do not format vite (#1710)Gravatar Nate Moore 1-1/+1
* Revert "[ci] yarn format" This reverts commit 93489946ccd59c27d85cc9fa3a255edf6efeb861. * chore: ignore vendor
2021-10-29[ci] yarn formatGravatar matthewp 1-1/+1