A minimal blogging app using Angular and Scully with basic supports for search engine optimization (SEO).
You can easily clone the project to your machine, update the configs to make it your own, start writing and deploy to anywhere you want to show everyone.
Demo: https://nhannguyen-blog.web.app
References:
- Article Getting started with Scully - Chau Tran
- Scully live demo Introducing Scully: Angular + JAMStack
- Set default title and meta tags
- Set meta tag for social networks
- Auto set a corresponding title and meta tags for each blog post
- Supported meta tags:
<meta name="twitter:card" content="<your content>"> <meta property="og:type" content="<your content>"> <meta property="og:site_name" content="<your content>"> <meta property="og:url" content="<your content>" /> <meta property="og:title" content="<your content>" /> <meta property="og:description" content="<your content>" /> <meta property="og:image" content="<your content>" />
git clone https://github.com/nhaancs/ngx-scully-blog.git
- Update the configs to your blog at
/src/app/site.config.ts
file - Update the about component to introduce about your blog
- Update the favicon.ico
- Run the command
npm install
to install dependencies - Then run
ng build && npm run scully && npm run scully:serve
to build Angular, then run Scully, and finally serve ScullyExpected result: Scully static server started on "http://localhost:1668/" Angular distribution server started on "http://localhost:1864/"
- Open the browser at
http://localhost:1668
to see your static website
- Add new blog post:
ng g @scullyio/init:post --name="blog name"
- Scan for unhandled routes:
npm run scully -- --scanRoutes
Your blog posts will be written in markdown format and stored in /blog
folder.
Sample post:
---
title: <the title of your post>
description: <the short description of your post>
published: <true or false, indicate whether or not show your post>
keywords: <the keywords of your post, separate with commas>
image: <a link to the thumbnail image of your post>
categories: <the categories that your post belong, separate with commas>
date: <YYYY-MM-DD>
---
<The content of your post written in markdown>
File name of a blog post:
<category names> + <post title>.md
For any futher questions, just creat a new issue. Thank you.
TODO:
- fix overflow on mobile browser
- format code blocks