Skip to content

Blog: ability to not provide a summary #123

@Wolfr

Description

@Wolfr
Collaborator

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 />

Activity

Wolfr

Wolfr commented on May 23, 2020

@Wolfr
CollaboratorAuthor

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

jakobrosenberg

jakobrosenberg commented on May 23, 2020

@jakobrosenberg
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

Wolfr commented on May 23, 2020

@Wolfr
CollaboratorAuthor

Are you using the site as a testbed?

jakobrosenberg

jakobrosenberg commented on May 23, 2020

@jakobrosenberg
Member

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

Wolfr commented on May 24, 2020

@Wolfr
CollaboratorAuthor
Wolfr

Wolfr commented on Jun 30, 2020

@Wolfr
CollaboratorAuthor

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

Some new ideas in linked post in #151 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Wolfr@jakobrosenberg

        Issue actions

          Blog: ability to not provide a summary · Issue #123 · roxiness/routify.dev