Skip to content

Commit 858fcd9

Browse files
committed
Added working blog pages and home page with run scripts.
1 parent 3e3515a commit 858fcd9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+11624
-80
lines changed

.firebaserc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
"projects": {
1212
"default": "sapython-f016a"
1313
}
14-
}
14+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# This file was auto-generated by the Firebase CLI
2+
# https://github.com/firebase/firebase-tools
3+
4+
name: Deploy to Firebase Hosting on merge
5+
'on':
6+
push:
7+
branches:
8+
- master
9+
jobs:
10+
build_and_deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: FirebaseExtended/action-hosting-deploy@v0
15+
with:
16+
repoToken: '${{ secrets.GITHUB_TOKEN }}'
17+
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_SAPYTHON_F016A }}'
18+
channelId: live
19+
projectId: sapython-f016a
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This file was auto-generated by the Firebase CLI
2+
# https://github.com/firebase/firebase-tools
3+
4+
name: Deploy to Firebase Hosting on PR
5+
'on': pull_request
6+
jobs:
7+
build_and_preview:
8+
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: FirebaseExtended/action-hosting-deploy@v0
13+
with:
14+
repoToken: '${{ secrets.GITHUB_TOKEN }}'
15+
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_SAPYTHON_F016A }}'
16+
projectId: sapython-f016a

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"python.formatting.provider": "yapf"
3+
}

angular.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,15 @@
2828
"inlineStyleLanguage": "scss",
2929
"assets": [
3030
"src/favicon.ico",
31-
"src/assets"
31+
"src/assets",
32+
"src/manifest.webmanifest"
3233
],
3334
"styles": [
3435
"src/styles.scss"
3536
],
36-
"scripts": []
37+
"scripts": [],
38+
"serviceWorker": true,
39+
"ngswConfigPath": "ngsw-config.json"
3740
},
3841
"configurations": {
3942
"production": {
@@ -46,7 +49,7 @@
4649
{
4750
"type": "anyComponentStyle",
4851
"maximumWarning": "2kb",
49-
"maximumError": "4kb"
52+
"maximumError": "10kb"
5053
}
5154
],
5255
"fileReplacements": [
@@ -96,7 +99,8 @@
9699
"inlineStyleLanguage": "scss",
97100
"assets": [
98101
"src/favicon.ico",
99-
"src/assets"
102+
"src/assets",
103+
"src/manifest.webmanifest"
100104
],
101105
"styles": [
102106
"src/styles.scss"

blog/2022-02-26-blog.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
---
2-
title: 2022-02-26-blog
2+
title: My Website And it's features
33
description: 'blog description'
4-
published: false
5-
slugs:
6-
- ___UNPUBLISHED___l03o5z5q_w0LDhh0Jf09csf9KAWoLWatpjugTe8Fz
4+
published: true
5+
slugs: ['Hello','here']
6+
tags: ['Programming']
7+
featuredImage: './assets/images/postImages/MyWebsiteAnditsfeatures/featuredImage.jpg'
8+
authorName: 'Kumar Saptam'
9+
authorImage: './assets/authorImages/Kumar Saptam.jpg'
10+
date: 'Thursday 7th Nov 2021'
711
---
812

9-
# 2022-02-26-blog
13+
# My Website And it's features

firebase.json

Lines changed: 14 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,19 @@
11
{
22
"hosting": {
3-
"target": "SapythonBlog",
4-
"public": "dist/SapythonBlog",
3+
"public": "dist/static",
54
"ignore": [
6-
"**/.*"
5+
"firebase.json",
6+
"**/.*",
7+
"**/node_modules/**"
78
],
8-
"headers": [
9-
{
10-
"source": "*.[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].+(css|js)",
11-
"headers": [
12-
{
13-
"key": "Cache-Control",
14-
"value": "public,max-age=31536000,immutable"
15-
}
16-
]
17-
},
18-
{
19-
"source": "/@(ngsw-worker.js|ngsw.json)",
20-
"headers": [
21-
{
22-
"key": "Cache-Control",
23-
"value": "no-cache"
24-
}
25-
]
26-
}
27-
],
28-
"rewrites": [
29-
{
30-
"source": "**",
31-
"destination": "/index.html"
32-
}
33-
]
9+
"headers": [{
10+
"source": "**/*.@(jpg|webp|jpeg|gif|png|svg|webp|js|css|eot|otf|ttf|ttc|woff|woff2|font.css)",
11+
"headers": [ {
12+
"key": "Cache-Control",
13+
"value": "max-age=36000"
14+
}]
15+
}],
16+
"cleanUrls": true,
17+
"trailingSlash": false
3418
}
35-
}
19+
}

ngsw-config.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"$schema": "./node_modules/@angular/service-worker/config/schema.json",
3+
"index": "/index.html",
4+
"assetGroups": [
5+
{
6+
"name": "app",
7+
"installMode": "prefetch",
8+
"resources": {
9+
"files": [
10+
"/favicon.ico",
11+
"/index.html",
12+
"/manifest.webmanifest",
13+
"/*.css",
14+
"/*.js"
15+
]
16+
}
17+
},
18+
{
19+
"name": "assets",
20+
"installMode": "lazy",
21+
"updateMode": "prefetch",
22+
"resources": {
23+
"files": [
24+
"/assets/**",
25+
"/*.(svg|cur|jpg|jpeg|png|apng|webp|avif|gif|otf|ttf|woff|woff2)"
26+
]
27+
}
28+
}
29+
]
30+
}

0 commit comments

Comments
 (0)