Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blog: ability to not provide a summary #123

Closed
Wolfr opened this issue May 22, 2020 · 6 comments
Closed

Blog: ability to not provide a summary #123

Wolfr opened this issue May 22, 2020 · 6 comments

Comments

@Wolfr
Copy link
Collaborator

Wolfr commented May 22, 2020

It would be useful to not provide a summary, and then the blog post content is rendered in full on the overview page. For a short post, this code:

<script>
  import Author from '@/components/Author.svelte'
  import Title from './_title.svelte'
  import { page } from '@sveltech/routify'
</script>

<!-- routify:options blogpost={
  "published": "2020-05-22T10:15:00.574Z",
  "author": "wolfr",
  "title": "An update (2)",
  "summary": `The past few weeks we've seen three new Routify <a href="https://github.com/sveltech/routify/releases">releases</a>:

* 1.8: Support for service workers
* 1.7: Better support for configs through package.json and environment variables
* 1.6: Added afterPageLoad hook
`
} -->

<Title node = { $page } />

The past few weeks we've seen three new Routify <a href="https://github.com/sveltech/routify/releases">releases</a>:

* 1.8: Support for service workers
* 1.7: Better support for configs through package.json and environment variables
* 1.6: Added afterPageLoad hook

We are continuing to maintain Routify.

---

<Author />

Might as well be this code:

<script>
  import Author from '@/components/Author.svelte'
  import Title from './_title.svelte'
  import { page } from '@sveltech/routify'
</script>

<!-- routify:options blogpost={
  "published": "2020-05-22T10:15:00.574Z",
  "author": "wolfr",
  "title": "An update (2)"
} -->

<Title node = { $page } />

The past few weeks we've seen three new Routify <a href="https://github.com/sveltech/routify/releases">releases</a>:

* 1.8: Support for service workers
* 1.7: Better support for configs through package.json and environment variables
* 1.6: Added afterPageLoad hook

We are continuing to maintain Routify.

---

<Author />
@Wolfr
Copy link
Collaborator Author

Wolfr commented May 23, 2020

I assume this will be changed if we use the front-matter plugin instead @jakobrosenberg ?

@jakobrosenberg
Copy link
Member

Yes, it should look like this with the new plugin. (only available in the current beta)

---
title: Announcing v1.5
author: jakobrosenberg
published: 2020-04-20T11:45:06.574Z
summary: |
  Welcome to the brand-new Routify blog. This is not just the first post on Routify,
  but also my first ever blog post. Scary. For this cherry popping first post, we’re
  very happy to announce that 1.5 is finally ready. Among the highlights in this version are:

  - Support for meta tags
  - Dynamic basepaths
  - Automatic navigation CLI enhancements
  - Query support
  - Improved starter template
---

<script>
  import Author from '@/components/Author.svelte'
  import Title from './_title.svelte'
  import { page } from '@sveltech/routify'
</script>

<Title node = { $page } />

Welcome to the brand-new Routify blog. This is not just the first blog post on Routify, but also my first ever blog post. Scary. For this cherry-popping first-post, we’re very happy to announce that 1.5 is finally ready. Among the highlights in this version are:

@Wolfr
Copy link
Collaborator Author

Wolfr commented May 23, 2020

Are you using the site as a testbed?

@jakobrosenberg
Copy link
Member

jakobrosenberg commented May 23, 2020

I do occasionally. Ie. I used an instance of our site to test the frontmatter plugin.

I have thought about upgrading the site to the beta version and implement frontmatter in production.

@Wolfr
Copy link
Collaborator Author

Wolfr commented May 24, 2020

See roxiness/routify#190 (comment)

@Wolfr
Copy link
Collaborator Author

Wolfr commented Jun 30, 2020

The code referenced in this issue doesn't use .svx.

Some new ideas in linked post in #151 .

@Wolfr Wolfr closed this as completed Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants