Bjorn Lu
8e3cb20b5c
Format markdown files ( #7439 )
...
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-06-26 11:34:13 +08:00
Matthew Mercuri
c341bd07ac
added prop type definition for FormattedDate in Blog example ( #6591 )
2023-03-20 19:49:38 +08:00
Christofer J. Ekervhén
2a6d09e5d2
Fix import of type HTMLAttributes in blog example ( #6322 )
...
* 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-21 14:21:19 +01:00
Ben Holmes
5616167358
Fix blog starter about page ( #6195 )
...
* refactor: about.md -> about.astro
* chore: add strictNullChecks
* fix: format date on blog post layout
2023-02-09 09:48:29 -05:00
Ben Holmes
81dce94f2a
[RSS] Get ready for content collections ( #5851 )
...
* 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-19 11:24:55 -05:00
Ben Holmes
7d72aeeae8
Migrate blog and docs starters to content collections ( #5858 )
...
* 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>
2023-01-18 08:43:58 -05:00
delucis
b64081deed
[ci] format
2022-12-21 18:19:56 +00:00
Shivam
46757a6ce3
Add canonical URL to blog example ( #5651 )
2022-12-21 19:17:40 +01:00
Princesseuh
dcdeca56ac
[ci] format
2022-11-08 18:39:22 +00:00
Shoubhit Dash
0bab357c48
fix: consider trailing slashes when calculating current path in blog example ( #5272 )
2022-11-01 16:08:45 -04:00
Princesseuh
7e430a3dc9
[ci] format
2022-10-24 13:34:10 +00:00
Tobias
9fb03b2e99
examples rss: add mdx file ending ( #4710 )
...
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-22 14:53:07 -04:00
Brett Jankord
2c2bbc5158
Update blog post date text color to meet contrast-ratio guidelines ( #4821 )
2022-09-22 15:18:09 +08:00
Sami Jaber
234057b020
Template (Blog): fix HeaderLink
isActive
check ( #4647 )
...
* 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-13 14:02:32 -05:00
Daren Chandisingh
1bee84920a
examples: Blog template changes ( #4577 )
...
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-09-03 16:58:00 +02:00
Mohammed Elhaouari
5fbb359afb
Remove "as Props" from the astro examples ( #4494 )
2022-08-26 10:16:17 -04:00
Peter Singh
74cb94ca3c
Update blog.astro ( #4486 )
2022-08-26 16:15:50 +08:00
Nate Moore
41b81d0d7e
Switch examples favicon to use svg ( #4331 )
...
* 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-17 15:19:04 -05:00
Caleb
675b6d47f4
Fix example blog post markdown-style-guide.md image extension ( #4360 )
2022-08-17 16:11:09 +08:00
Nate Moore
655d9840f8
fix(blog): height auto img ( #4327 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-15 11:19:47 -05:00
FredKSchott
faa49db39b
[ci] format
2022-08-15 04:28:38 +00:00
Fred K. Schott
0e2f4d74b7
image fix ( #4322 )
2022-08-15 00:26:33 -04:00
Fred K. Schott
6a3aa12079
[examples/blog] move copy
2022-08-13 01:12:57 -07:00
FredKSchott
485742dc0d
[ci] format
2022-08-13 07:12:04 +00:00
Fred K. Schott
d54588c7a4
Update: blog template ( #4283 )
...
* 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-13 00:09:40 -07:00
Nate Moore
f207c417e0
Add Astro.generator ( #4012 )
...
* 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-08 12:34:05 -05:00
FredKSchott
4de35f3b70
[ci] format
2022-08-06 04:39:26 +00:00
Erika
c9b679e56e
Move types to a .d.ts file inside examples projects ( #4171 )
...
* 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-08-05 17:46:52 -04:00
Fred K. Schott
ddefb172f6
Replace/Rename Astro.canonicalURL with new Astro.url helper ( #3959 )
...
* add Astro.url
* Add examples of how to create the canonicalURL
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-07-21 13:45:59 -04:00
matthewp
0751be81e5
[ci] format
2022-07-12 16:20:08 +00:00
Ben Holmes
ab232dd10f
Example blog rework ( #3896 )
...
* 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-12 12:17:36 -04:00
Marcus Otterström
59e8c71786
Format astro files in examples ( #3862 )
2022-07-08 22:08:32 +02:00
Gautier Ben Aïm
484b80eb99
fix: updated blog template with existing address ( #3312 )
2022-05-11 16:20:00 -05:00
Fred K. Schott
1335797903
update prettier width ( #2968 )
2022-04-02 14:15:41 -06:00
Fred K. Schott
4299ab303b
New Markdown API ( #2862 )
...
* 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-28 17:16:06 -07:00
Ben Holmes
0a3d3e51a6
Feat: change to shiki default md renderer ( #2824 )
...
* 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-18 17:29:51 -04:00
Ian Bull
55f007f30a
Support Prism in the blog template example ( #2622 )
...
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-10 11:49:52 -06:00
Tony Sullivan
4b53a53c1b
Update examples for 0.24.0 ( #2740 )
...
* 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-03-09 13:52:31 -08:00
Matthew Phillips
92532b8882
Fixes for blog and docs examples ( #2373 )
...
* Fixes for blog and docs examples
* Adds a changeset
* Upgrade the compiler version
* Use a global style tag
* Skip on windows temporarily
2022-01-14 12:11:56 -05:00
Jonathan Neal
6ddd7678ff
Use accessible indentation ( #2253 )
2021-12-22 16:11:05 -05:00
Fred K. Schott
8d934059f8
move styles to src ( #2003 )
2021-11-24 11:10:12 -08:00
Matthew Phillips
ae2cadd246
Remove escape in blog example post
2021-11-19 13:21:41 -05:00
matthewp
53cdd671bf
[ci] yarn format
2021-11-19 18:10:50 +00:00
Matthew Phillips
a9a14a1be7
Fix blog example yet again ( #1917 )
2021-11-19 13:09:44 -05:00
matthewp
bf1c1b72cf
[ci] yarn format
2021-11-19 17:36:30 +00:00
Matthew Phillips
0d437e11a7
Small fixes ( #1911 )
2021-11-19 12:35:41 -05:00
matthewp
4032e212ce
[ci] yarn format
2021-11-19 17:18:04 +00:00
Matthew Phillips
f76e029a78
Fix blog example ( #1910 )
2021-11-19 12:17:07 -05:00
natemoo-re
a5c6f922fa
[ci] yarn format
2021-10-29 19:47:01 +00:00
Nate Moore
34e03cf912
do not format vite ( #1710 )
...
* Revert "[ci] yarn format"
This reverts commit 93489946cc
.
* chore: ignore vendor
2021-10-29 14:45:32 -05:00