diff --git a/.djlintrc b/.djlintrc new file mode 100644 index 0000000..b3fba34 --- /dev/null +++ b/.djlintrc @@ -0,0 +1 @@ +{"ignore": "D018"} \ No newline at end of file diff --git a/.gitignore b/.gitignore index e69de29..f15100b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,4 @@ +node_modules/ +npm-debug.log +public/ +.python-version \ No newline at end of file diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 89af1b0..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "themes/PaperMod"] - path = themes/PaperMod - url = https://github.com/adityatelange/hugo-PaperMod.git diff --git a/.hugo_build.lock b/.hugo_build.lock deleted file mode 100644 index e69de29..0000000 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..87ae70e --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Ian Andwati + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7f8afb4 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +#!/usr/bin/make -f + +.PHONY: all build + +BUILD_DIR := public + +all: clean build + +clean: + rm -rfd ./$(BUILD_DIR) + +build: + zola build + +serve: + zola serve + +update-zola: + @./scripts/update-zola \ No newline at end of file diff --git a/README.md b/README.md index d14c6fd..03967b2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1 @@ -> Words about things - -[![Netlify Status](https://api.netlify.com/api/v1/badges/471edaff-df82-49b0-87c4-0027d02c9784/deploy-status)](https://app.netlify.com/sites/andwati/deploys) +# My Digital Garden diff --git a/archetypes/post.md b/archetypes/post.md deleted file mode 100644 index de0e8eb..0000000 --- a/archetypes/post.md +++ /dev/null @@ -1,39 +0,0 @@ ---- -title: "My 1st post" -date: 2020-09-15T11:30:03+00:00 -# weight: 1 -# aliases: ["/first"] -tags: ["first"] -author: "Me" -# author: ["Me", "You"] # multiple authors -showToc: true -TocOpen: false -draft: false -hidemeta: false -comments: false -description: "Desc Text." -canonicalURL: "https://canonical.url/to/page" -disableHLJS: true # to disable highlightjs -disableShare: false -disableHLJS: false -hideSummary: false -searchHidden: true -ShowReadingTime: true -ShowBreadCrumbs: true -ShowPostNavLinks: true -ShowWordCount: true -ShowRssButtonInSectionTermList: true -UseHugoToc: true -cover: - image: "" # image path/url - alt: "" # alt text - caption: "" # display caption under cover - relative: false # when using page bundles set this to true - hidden: true # only hide on current single page -editPost: - URL: "https://github.com//content" - Text: "Suggest Changes" # edit text - appendFilePath: true # to append file path to Edit link ---- - - diff --git a/assets/.gitkeep b/assets/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..c2f69f4 --- /dev/null +++ b/config.toml @@ -0,0 +1,21 @@ +title = "Ian Andwati" +description = "Ian Andwati's personal website" +base_url = "https://andwati.com" + +genenerate_categories_pages = false +generate_tags_pages = false +generate_feed = true +feed_filename = "rss.xml" +minify_html = false +taxonomies = [{ name = 'tags', feed = false }] +compile_sass = true + +[markdown] +highlight_code = true +highlight_theme = "gruvbox-dark" + +[link_checker] +skip_anchor_prefixes = ["https://github.com/"] + +[extra] +author = "Ian Andwati" diff --git a/config.yml b/config.yml deleted file mode 100644 index bb2f70f..0000000 --- a/config.yml +++ /dev/null @@ -1,137 +0,0 @@ -baseURL: "https://andwati.com/" -title: Ian Andwati -paginate: 5 -theme: PaperMod - -enableRobotsTXT: true -buildDrafts: false -buildFuture: false -buildExpired: false - -googleAnalytics: G-3QJCKHZT3J - -minify: - disableXML: true - minifyOutput: true - -params: - env: production # to enable google analytics, opengraph, twitter-cards and schema. - title: Ian Andwati - description: "Software Engineer.Young, versatile and enthusiastic programmer and entrepreneur. " - keywords: [Blog, Portfolio, Ian Andwati, Andwati, Ian] - author: Ian Andwati - # author: ["Me", "You"] # multiple authors - images: [""] - DateFormat: "January 2, 2006" - defaultTheme: auto # dark, light - disableThemeToggle: false - - ShowReadingTime: true - ShowShareButtons: true - ShowPostNavLinks: true - ShowBreadCrumbs: true - ShowCodeCopyButtons: true - ShowWordCount: true - ShowRssButtonInSectionTermList: true - UseHugoToc: true - disableSpecial1stPost: false - disableScrollToTop: false - comments: false - hidemeta: false - hideSummary: false - showtoc: false - tocopen: false - - assets: - # disableHLJS: true # to disable highlight.js - # disableFingerprinting: true - favicon: "/favicon.ico" - favicon16x16: "/favicon-16x16.png" - favicon32x32: "/favicon-32x32.png" - apple_touch_icon: "/apple-touch-icon.png" - safari_pinned_tab: "" - - label: - text: "Home" - icon: /apple-touch-icon.png - iconHeight: 35 - - - # home-info mode - homeInfoParams: - Title: "Hi there \U0001F44B" - Content: Welcome to my blog.Thoughts and musings.A little bit of this and that - - socialIcons: - - name: twitter - url: "https://twitter.com/andwati_" - - name: stackoverflow - url: "https://stackoverflow.com/users/12246264/ian" - - name: github - url: "https://github.com/andwati" - - name : linkedin - url: "https://linkedin.com/in/andwati" - - name : email - url: "mailto:andwatiian@gmail.com" - - analytics: - google: - SiteVerificationTag: "XYZabc" - bing: - SiteVerificationTag: "XYZabc" - yandex: - SiteVerificationTag: "XYZabc" - - cover: - hidden: true # hide everywhere but not in structured data - hiddenInList: true # hide on list pages and home - hiddenInSingle: true # hide on single page - - editPost: - URL: "https://github.com/andwati/content" - Text: "Suggest Changes" # edit text - appendFilePath: true # to append file path to Edit link - - # for search - # https://fusejs.io/api/options.html - fuseOpts: - isCaseSensitive: false - shouldSort: true - location: 0 - distance: 1000 - threshold: 0.4 - minMatchCharLength: 0 - keys: ["title", "permalink", "summary", "content"] -menu: - main: - - identifier: archives - name: archives - url: /archives/ - weight: 10 - # - identifier: tags - # name: tags - # url: /tags/ - # weight: 20 - - identifier: newsletter - name: newsletter - url: https://buttondown.email/andwati - weight: 30 - - identifier: about - name: about - url: /about/ -# Read: https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#using-hugos-syntax-highlighter-chroma -pygmentsUseClasses: true -markup: - highlight: - noClasses: false - # anchorLineNos: true - codeFences: true - guessSyntax: true - lineNos: true - style: monokai - -outputs: - home: - - HTML - - RSS - - JSON diff --git a/content/_index.md b/content/_index.md new file mode 100644 index 0000000..c112c7d --- /dev/null +++ b/content/_index.md @@ -0,0 +1,8 @@ ++++ +title = "Ian Andwati" +description = "Ian's Website" ++++ +I spend my free time working on [hobby projects] and sometimes I [write] about my experiences. In particular, I enjoy learning about programming languages, ,web dev, and how to write fast, robust, and secure code. + +[hobby projects]: https://github.com/andwati +[write]: /posts \ No newline at end of file diff --git a/content/about.md b/content/about.md deleted file mode 100644 index 0314488..0000000 --- a/content/about.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -title: "About" -layout: "about" -url: "/about/" -summary: about ---- - -Welcome to my personal website! I am glad to hear what brings you here. - -# Who am I? - -As a software engineer with 2 years of experience in Python programming language and intermediate knowledge of JavaScript, I am well-versed in developing web applications using popular frameworks such as Django and Flask. I am also interested in exploring newer technologies such as FastAPI framework, Go, and Rust programming languages. - -# Find me on: - -- Github : https://github.com/andwati - -![Github contribution graph](https://ghchart.rshah.org/andwati) - -- Stack Overflow : https://stackoverflow.com/users/12246264/ian - -![Stack Overflow info](https://stackoverflow-card.vercel.app/?userID=12246264&theme=solarized-light) - -- Twitter : https://twitter.com/andwati_ - -- Email : andwatiian@gmail.com diff --git a/content/archive/_index.md b/content/archive/_index.md new file mode 100644 index 0000000..8406ec7 --- /dev/null +++ b/content/archive/_index.md @@ -0,0 +1,4 @@ ++++ +sort_by = "date" +template= "archive.html" ++++ \ No newline at end of file diff --git a/content/archives.md b/content/archives.md deleted file mode 100644 index 5628e34..0000000 --- a/content/archives.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -title: "Archive" -layout: "archives" -url: "/archives/" -summary: archives ---- diff --git a/content/contact.md b/content/contact.md new file mode 100644 index 0000000..afa7f14 --- /dev/null +++ b/content/contact.md @@ -0,0 +1,19 @@ ++++ +title = "Contact" +description = "Let's get in touch." ++++ +# Find me on: + +- Github : [https://github.com/andwati](https://github.com/andwati) + +![Github contribution graph](https://ghchart.rshah.org/andwati) + +[Stack Overflow]( https://stackoverflow.com/users/12246264/ian) + +![Stack Overflow info](https://stackoverflow-card.vercel.app/?userID=12246264&theme=solarized-light) + +- Twitter : [https://twitter.com/andwati_]( https://twitter.com/andwati_) + +- Email: [andwatiian@gmail.com](mailto:andwatiian@gmail.com) + +- LinkedIn : [https://linkedin.com/in/andwati](https://linkedin.com/in/andwati) \ No newline at end of file diff --git a/content/posts/_index.md b/content/posts/_index.md new file mode 100644 index 0000000..ac3669a --- /dev/null +++ b/content/posts/_index.md @@ -0,0 +1,8 @@ ++++ +title = "Posts" +template = "posts.html" +page_template = "post.html" +sort_by = "date" +insert_anchor_links = "left" +paginate_by= 5 ++++ diff --git a/content/post/2022/november/generate-django-secret-key.md b/content/posts/generate-django-secret-key.md similarity index 60% rename from content/post/2022/november/generate-django-secret-key.md rename to content/posts/generate-django-secret-key.md index 9de8a4f..7c4c144 100644 --- a/content/post/2022/november/generate-django-secret-key.md +++ b/content/posts/generate-django-secret-key.md @@ -1,42 +1,15 @@ ---- -title: "Django Secret Key Tutorial" -date: 2022-11-11T15:34:14.160Z -# weight: 1 -# aliases: ["/first"] -tags: ["tutorial", "Django", "Python", ".emv"] -author: "Ian Andwati" -showToc: true -TocOpen: false -draft: false -hidemeta: false -comments: false -description: "django secret key tutorial" -canonicalURL: "" -disableShare: false -disableHLJS: false -hideSummary: false -searchHidden: true -ShowReadingTime: true -ShowBreadCrumbs: true -ShowPostNavLinks: true -ShowWordCount: true -ShowRssButtonInSectionTermList: true -UseHugoToc: true -cover: - image: "" # image path/url - alt: "" # alt text - caption: "" # display caption under cover - relative: false # when using page bundles set this to true - hidden: true # only hide on current single page -editPost: - URL: "https://github.com/andwati/content" - Text: "Suggest Changes" # edit text - appendFilePath: true # to append file path to Edit link ---- ++++ +title = "Django Secret Key Tutorial" +description = "Managing secrets" +author = "Ian Andwati" +date = 2022-11-11T15:34:14.160Z +[taxonomies] +tags = ["tutorial", "Django", "Python", ".env"] ++++ Managing the Django SECRET_KEY variable. - + The Django `SECRET_KEY` variable is very crucial to your Django application. The secret key must be a large random value and it must be kept secret. Leaking this value to unauthorized people could lead to a security breach. The SECRET_KEY is used in Django for cryptographic signing. It is used to generate tokens and hashes, they can be recreated using this variable. If it is not configured Django throws a `django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty` error diff --git a/content/post/2022/november/hello-world.md b/content/posts/hello-world.md similarity index 60% rename from content/post/2022/november/hello-world.md rename to content/posts/hello-world.md index 7a05cd2..6340b3b 100644 --- a/content/post/2022/november/hello-world.md +++ b/content/posts/hello-world.md @@ -1,34 +1,15 @@ ---- -title: "Hello World" -date: 2022-11-04 -tags: ["hugo, blog, Go"] -author: "Ian Andwati" -showToc: true -TocOpen: false -draft: false -hidemeta: false -comments: false -description: "Hello world" -canonicalURL: "" -disableShare: false -disableHLJS: false -hideSummary: false -searchHidden: true -ShowReadingTime: true -ShowBreadCrumbs: true -ShowPostNavLinks: true -ShowWordCount: true -ShowRssButtonInSectionTermList: true -UseHugoToc: true -editPost: - URL: "https://github.com/andwati/content" - Text: "Suggest Changes" # edit text -appendFilePath: true # to append file path to Edit link ---- ++++ +title = "Hello World" +description = "Hello world" +date = 2022-11-04 +author = "Ian Andwati" +[taxonomies] +tags = ["hugo", "blog", "Go"] ++++ How it begins - + In this post-web2.0 age, people seem to blog less and less, and blogs seem to be dying slowly. People are separated in different Apps where the content is not searchable by search engines. @@ -47,7 +28,7 @@ Mostly random stuff and a few tutorials. I'll see where this goes.Although some I use hugo as a static site generator.After trying a couple of blogging platforms and trying to build a few from scratch I decided to throw in the towel and opt in for a ready made solution, no need reinventing the wheel. -Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again.Hugo provides a robust theming system that is easy to implement but capable of producing even the most complicated websites.Hugo's Go-based templating provides just the right amount of logic to build anything from the simple to complex. For this site I decided to go with the [even theme](https://github.com/olOwOlo/hugo-theme-even). The commenting system is implemented using [Utterances](https://utteranc.es/) +Hugo is one of the most popular open-source static site generators. With its amazing speed and flexibility, Hugo makes building websites fun again.Hugo provides a robust theming system that is easy to implement but capable of producing even the most complicated websites.Hugo's Go-based templates provide just the right amount of logic to build anything from the simple to complex. For this site I decided to go with the [even theme](https://github.com/olOwOlo/hugo-theme-even). The commenting system is implemented using [Utterances](https://utteranc.es/) # Blog site hosting diff --git a/content/post/2023/february/install-postgresql-15-on-arch-manjaro-garuda-linux.md b/content/posts/install-postgresql-15-on-arch-manjaro-garuda-linux.md similarity index 89% rename from content/post/2023/february/install-postgresql-15-on-arch-manjaro-garuda-linux.md rename to content/posts/install-postgresql-15-on-arch-manjaro-garuda-linux.md index 915a0ed..6a93358 100644 --- a/content/post/2023/february/install-postgresql-15-on-arch-manjaro-garuda-linux.md +++ b/content/posts/install-postgresql-15-on-arch-manjaro-garuda-linux.md @@ -1,42 +1,15 @@ ---- -title: "Install PostgreSQL 15 on Arch | Manjaro | Garuda Linux" -date: 2023-02-16T15:34:14.160Z -# weight: 1 -# aliases: ["/first"] -tags: ["postgresql", "archlinux", "manjaro", "garuda", "linux"] -author: "Ian Andwati" -showToc: true -TocOpen: false -draft: false -hidemeta: false -comments: false -description: "Integrating netlify cms." -canonicalURL: "" -disableShare: false -disableHLJS: false -hideSummary: false -searchHidden: true -ShowReadingTime: true -ShowBreadCrumbs: true -ShowPostNavLinks: true -ShowWordCount: true -ShowRssButtonInSectionTermList: true -UseHugoToc: true -cover: - image: "" # image path/url - alt: "" # alt text - caption: "" # display caption under cover - relative: false # when using page bundles set this to true - hidden: true # only hide on current single page -editPost: - URL: "https://github.com/andwati/content" - Text: "Suggest Changes" # edit text - appendFilePath: true # to append file path to Edit link ---- ++++ +title ="Install PostgreSQL 15 on Arch | Manjaro | Garuda Linux" +description = "Installing postgresql" +date = 2023-02-16T15:34:14.160Z +author = "Ian Andwati" +[taxonomies] +tags = ["postgresql", "archlinux", "manjaro", "garuda", "linux"] ++++ Getting PostgreSQL up and running on Arch Linux-based distros - + # Overview @@ -78,7 +51,7 @@ Now with all that fluff out of the way, let's get to business. The steps have be ## Step 1: Installing the PostgreSQL Package -```shell +```sh $ sudo pacman -Syu postgresql ``` @@ -88,13 +61,13 @@ You can switch to the PostgreSQL user by executing the following command: - If you have sudo and are in sudoers - ```shell + ```sh $ sudo -iu postgres ``` - Otherwise using su: - ```shell + ```sh $ su # su -l postgres ``` @@ -105,20 +78,20 @@ Before PostgreSQL can function correctly, the database cluster must be initializ ### 2.1 We can confirm the installed PostgreSQL version by running: -```shell +```sh $ postgres --version ─╯ postgres (PostgreSQL) 15.1 ``` ### 2.2 Set applicable entries in **/etc/locale.gen** -```shell +```sh $ echo "en_US.UTF-8 UTF-8" | sudo tee /etc/locale.gen ``` ### 2.3 Then run **\*\*locale-gen\*\*** to generate locale settings -```shell +```sh $ sudo locale-gen Generating locales... en_US.UTF-8... done @@ -129,13 +102,13 @@ Generation complete. You must first log in as the **postgres** user using the following command before you can initialize PostgreSQL’s data directory: -```shell +```sh sudo su - postgres ``` ### 2.5 With the following command, you can now initialize PostgreSQL’s data directory: -```shell +```sh [postgres]$ initdb -D /var/lib/postgres/data ``` @@ -143,7 +116,7 @@ sudo su - postgres ### 3.1 Check PostgreSQL status with the following command: -```shell +```sh $ systemctl status postgresql ─╯ postgresql.service - PostgreSQL database server Loaded: loaded (/usr/lib/systemd/system/postgresql.service; disabled; preset: disabled) @@ -152,19 +125,19 @@ $ systemctl status postgresql ### 3.2 Start the PostgreSQL service by running the following command: -```shell +```sh sudo systemctl start postgresql ``` ### 3.3 Enable the PostgreSQL service to start automatically at boot by running the following command: -```shell +```sh $ sudo systemctl enable postgresql ``` ### 3.4 Verify that PostgreSQL is running by running the following command: -```shell +```sh $ sudo systemctl status postgresql ─╯ ● postgresql.service - PostgreSQL database server Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled; preset: disabled) diff --git a/content/post/2022/november/integrating-netlify.md b/content/posts/integrating-netlify.md similarity index 90% rename from content/post/2022/november/integrating-netlify.md rename to content/posts/integrating-netlify.md index 80dfa15..56cc85b 100644 --- a/content/post/2022/november/integrating-netlify.md +++ b/content/posts/integrating-netlify.md @@ -1,42 +1,15 @@ ---- -title: "Integrating Netlify CMS" -date: 2022-11-24T15:34:14.160Z -# weight: 1 -# aliases: ["/first"] -tags: ["blog", "hugo", "netlify","netlify-cms","github"] -author: "Ian Andwati" -showToc: true -TocOpen: false -draft: false -hidemeta: false -comments: false -description: "Integrating netlify cms." -canonicalURL: "" -disableShare: false -disableHLJS: false -hideSummary: false -searchHidden: true -ShowReadingTime: true -ShowBreadCrumbs: true -ShowPostNavLinks: true -ShowWordCount: true -ShowRssButtonInSectionTermList: true -UseHugoToc: true -cover: - image: "" # image path/url - alt: "" # alt text - caption: "" # display caption under cover - relative: false # when using page bundles set this to true - hidden: true # only hide on current single page -editPost: - URL: "https://github.com/andwati/content" - Text: "Suggest Changes" # edit text - appendFilePath: true # to append file path to Edit link ---- ++++ +title = "Integrating Netlify CMS" +description = "Integrating netlify cms" +date = 2022-11-24T15:34:14.160Z +author = "Ian Andwati" +[taxonomies] +tags = ["blog", "hugo", "netlify","netlify-cms","github"] ++++ Migrating to a better content management system through Netlify CMS - + # Heavy Lifting diff --git a/content/post/2022/november/semantic-version-and-conventional-commits.md b/content/posts/semantic-version-and-conventional-commits.md similarity index 78% rename from content/post/2022/november/semantic-version-and-conventional-commits.md rename to content/posts/semantic-version-and-conventional-commits.md index 8d2624f..fb85220 100644 --- a/content/post/2022/november/semantic-version-and-conventional-commits.md +++ b/content/posts/semantic-version-and-conventional-commits.md @@ -1,42 +1,15 @@ ---- -title: "Semantic Versioning(SemVer) and Conventional Commits" -date: 2023-01-24T15:34:14.160Z -# weight: 1 -# aliases: ["/first"] -tags: ["git", "semver","workflow", "conventional commits"] -author: "Ian Andwati" -showToc: true -TocOpen: false -draft: false -hidemeta: false -comments: false -description: "semantic versioning" -canonicalURL: "" -disableShare: false -disableHLJS: false -hideSummary: false -searchHidden: true -ShowReadingTime: true -ShowBreadCrumbs: true -ShowPostNavLinks: true -ShowWordCount: true -ShowRssButtonInSectionTermList: true -UseHugoToc: true -cover: - image: "" # image path/url - alt: "" # alt text - caption: "" # display caption under cover - relative: false # when using page bundles set this to true - hidden: true # only hide on current single page -editPost: - URL: "https://github.com/andwati/content" - Text: "Suggest Changes" # edit text - appendFilePath: true # to append file path to Edit link ---- ++++ +title= "Semantic Versioning(SemVer) and Conventional Commits" +description = "Adopting best practices in your git and build workflows." +date= 2023-01-24T15:34:14.160Z +author = "Ian Andwati" +[taxonomies] +tags= ["git", "semver","workflow", "conventional commits"] ++++ -Adopting best practices in your git and build workflows. +Adopting best practices in your git and build workflows. - + # What is Semver? @@ -50,7 +23,7 @@ The dependency issue arises when several packages have dependencies on the same ### Summary -Semantic versioning is based on three numbers that indicate the versions of the software and the compatibilities.They are `X.Y.Z` correspondind to `Major.Minor.Patch` +Semantic versioning is based on three numbers that indicate the versions of the software and the compatibilities.They are `X.Y.Z` corresponding to `Major.Minor.Patch` - **Major Version (X):**Introduces major changes to the code and breaking changes toward backward compatibility - **Minor Version (Y):** These code changes don’t introduce breaking changes. This could be adding a new feature that doesn't break changes but are not exactly bug fixes. diff --git a/content/post/2023/april/subresource-integrity.md b/content/posts/subresource-integrity.md similarity index 81% rename from content/post/2023/april/subresource-integrity.md rename to content/posts/subresource-integrity.md index 97b6625..aaff777 100644 --- a/content/post/2023/april/subresource-integrity.md +++ b/content/posts/subresource-integrity.md @@ -1,29 +1,11 @@ ---- -title: "Subresource Integrity" -date: 2023-04-29 -# weight: 1 -# aliases: ["/first"] -tags: ["Subresource Integrity", "CSP", "CORS"] -author: "Ian Andwati" -# author: ["Me", "You"] # multiple authors -showToc: false -TocOpen: false -draft: false -hidemeta: false -comments: false -description: "Understanding Subresource Integrity" -canonicalURL: "" -disableShare: false -disableHLJS: false -hideSummary: false -searchHidden: true -ShowReadingTime: true -ShowBreadCrumbs: true -ShowPostNavLinks: true -ShowWordCount: true -ShowRssButtonInSectionTermList: true -UseHugoToc: true ---- ++++ +title= "Subresource Integrity" +description = "Understanding Subresource Integrity" +date= 2023-04-29 +author = "Ian Andwati" +[taxonomies] +tags= ["Subresource Integrity", "CSP", "CORS"] ++++ Understanding Subresource Integrity @@ -40,7 +22,7 @@ In my junior year while I was learning HTML and CSS I got to use the Bootstrap c /> ``` -I didnt bother with the `integrity` attribute of the link(guess I wasnt curios enough). The integrity attribute has a cryptographic hash value that is important in CDNs and its called the Subresource Integrity. +I didn't bother with the `integrity` attribute of the link(guess I wasn't curios enough). The integrity attribute has a cryptographic hash value that is important in CDNs and its called the Subresource Integrity. Subresource Integrity (SRI) is a security feature in web browsers that helps prevent malicious or compromised scripts from being loaded and executed on a website.a security feature that enables browsers to verify that resources they fetch (for example, from a CDN) are delivered without unexpected manipulation. It works by allowing you to provide a cryptographic hash that a fetched resource must match. @@ -124,7 +106,7 @@ Access-Control-Allow-Origin: * # How browsers handle Subresource Integrity -Web browsers employ several mechanisms to handle Subresource Integrity (SRI). When a