Giter VIP home page Giter VIP logo

blog's Introduction

Vapor Blog

This is the official code repository for the Vapor Blog.

Install Publish

Make sure you have publish installed:

brew install publish

Creating a new blog post

Open the Swift Package:

open Package.swift

Creating file

Now create the file in Content/posts/my-blog-post-title and add the new content. Run the Swift Package to generate the new content.

Spin up local server

To spin up the project locally run

publish run

You can now access http://localhost:8000/

blog's People

Contributors

0xtim avatar bennydebock avatar dependabot[bot] avatar gohanlon avatar gwynne avatar joscdk avatar mahdibm avatar marius-se avatar ptoffy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blog's Issues

Deploy branches to S3

Since the blog is just a static site we should deploy PRs to an S3 bucket. This allows us to see new posts before they are merged, any style changes etc and will work as a test bed for similar functionality in the website.

I have examples of how to do this so it's not a big task

Don't generate full pages for pagination

We have the weird scenario where we use the generate page for error pages and paginated pages (because these are the only pages we have) but for the error page we just pass the body in and for the paginated pages we have to check for this because we pass the full HTML in. This should be changed so the theme implementation generates the page HTML correctly and the paginated code only needs to pass the body in

Post Idea: Contributing 101

Link to GH docs for forking and submitting a PR, link to help wanted/good first issues boards, discuss how the review process works, adding tests, how releases work and how the release notes are generated

Topics to cover:

  • documentation
  • translating the docs
  • API docs
  • bugs
  • features (should be discussed first)

This is a test issue

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Add error page

We should add a basic error page for things like 404 errors. Doesn't need to do much for now other than think to the blog home and maybe posts.

Ideally the page should be generated by Publish and we can just point to it in S3 or CloudFront

Don't try and deploy site from a fork

Guest blog posts might be from a fork. This currently doesn't pass CI and we try and deploy which fails because we have no secrets. We should just lint and build the site like the design site

Post Idea: Using the `Request` storage

Explain how to save random data in the request storage for retrieval later. E.g in middleware to retrieve in a request handler.

Also explain the difference between sessions and storage

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.