armanabkar / sapper-blog

Markdown-based Blog Built with Sapper

Home Page:https://armanabkar.ir

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sapper Blog

Portfolio website built with Sapper and Svelte.

πŸ‘‰ Live Demo

⚑ Features

  • Responsive & Lightweight
  • Markdown-based Articles
  • Portfolio
  • Personal Projects Page
  • Pagination for articles and projects
  • Highly Customizable
  • Dark Mode
  • Animations & Transition

✨ Getting started

git clone https://github.com/armanabkar/sapper-blog.git
cd sapper-blog
npm install # or yarn!
npm run dev

Open up localhost:3000 and start clicking around.

Consult sapper.svelte.dev for help getting started.

πŸ–Œ Styles

You can modify styles in static/global.css file:

:root {
  --primary: #333333;
  --secondary: #79797d;
  --background: #f0eff5;
  --link: #007aff;
}

And dark mode's theme in src/components/ThemeToggle.svelte:

:global(body.dark-mode) {
  --primary: #fdfdfd;
  --secondary: #79797d;
  --background: #1c1c20;
}

πŸ— Structure

The base structure of this template is the same as Sapper's default template. These are some of the new things you'll find here:

src/routes/articles

This is the home of your articles. The most important files in here are:

  • _articles.js: this module contains the logic for loading and parsing your markdown articles.
  • [slug].svelte: this is the template of your article page.
  • index.svelte: this is the template of your article list page.

src/content/articles

This is where your markdown articles live in. All .md files in this directory are treated as articles and parsed automatically by the _articles.js module.

  • The markdown file name becomes the article slug. For example hello-world.md becomes http://localhost:3000/articles/hello-world.
  • Everything between the start of the article and the <!-- more --> tag becomes the article's "excerpt".
  • Frontmatter properties supported are title and date.

src/routes/projects.svelte

This is your projects page. You can add your projects information to projects array in src/information.js module.

ℹ️ Information

You can edit all the personal information and projects in src/information.config.js module.

export const Information = {
  name: "Lorem Ipsum",
  position: "Lorem Ipsum",
  location: "Lorem, Ipsum",
  about: [
    "Sit ut magna laboris magna.",
  ],
  skills:
    "Lorem, Ipsum",
  interests:
    "Lorem, Ipsum",
  experiences: [
    {
      position: "Lorem Ipsum",
      company: "Lorem Ipsum",
      location: "Lorem, Ipsum",
      date: "Sep 2019 - Present",
    },
  ],
  email: "loremipsum@gmail.com",
  socialMedia: {
    LinkedIn: "https://www.linkedin.com/in/loremipsum/",
    Github: "https://github.com/loremipsum",
    StackOverflow: "",
    Telegram: "https://t.me/loremipsum",
    Twitter: "https://twitter.com/loremipsum",
    Instagram: "https://www.instagram.com/loremipsum/",
  },
  keywords:
    "lorem, ipsum",
};

πŸ› Bugs and feedback

Sapper is in early development, and may have the odd rough edge here and there. Please be vocal over on the Sapper issue tracker.

About

Markdown-based Blog Built with Sapper

https://armanabkar.ir


Languages

Language:JavaScript 40.4%Language:Svelte 38.8%Language:CSS 19.5%Language:HTML 1.3%