Giter Site home page Giter Site logo

hofmeister.dev's Introduction

Skeleton Labs > Templates > Blog

This templates used SvelteKit, Tailwind, and Skeleton preconfigured along with a curated template created and implemented by the the creators of Skeleton.

How To Install

Find installation instructions within the FAQ here: https://skeleton.dev/docs/sponsorship#premium-templates

Theme

A custom theme is bundled with this template and enabled by default. This can be found in theme.ts, in the root of your project. Learn more about customizing themes here.

Static Data

Several static data files have been provided in /src/lib/data to populate content on your site. This includes:

  • authors.ts - the full list of avaiable authors and their info.
  • categories.ts - the full list of available categories.
  • social.ts - the list of social icons and urls.

Routes

All rountes can be found in the /src/routes directory. This template includes:

  • / - the homepage of the blog.
  • /about - a page to describe the purpose of the blog.
  • /posts/[slug] - the unique post article page.
  • /categories/[slug] - a filtered list of posts by category.
  • /api/posts - SvelteKit server endpoints for fetching post data.
  • /sandbox - a hidden sandbox page for testing theme styles.

Markdown Blog System

The blog uses mdsvex, meaning each blog page is created using Markdown. If you're looking for a deeper understanding of how this operates, we recommend this guide by Joy of Code.

Creating a Post

To create a new post, simply add a new markdown file within /src/posts/{unique-file-name}.md. See the svelte-and-markdown.md post for example of markdown styling.

Frontmatter

View /src/lib/types.ts and reference the Post type for a full list of frontmatter options per post. New options may be added, just make sure to update the type and apply a default value to each of your previous posts.

Testing Sandbox

A hidden sandbox page has been provided at /sandbox. This allows you to quickly preview and test various Skeleton elements and components, including: typography, buttons, the color palette, and more. This route can be deleted at your own discretion.

Optional Settings

  • Sticky Header: if you wish to make the app header sticky, open /src/routes/+layout.svelte and set stickyHeader to true.

Additional Assets

License

This template is served under the terms of the Personal License.

hofmeister.dev's People

Contributors

dhofmeister avatar

Watchers

 avatar

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.