Drupal 8 Smart Image Style - Handle aspect ratio for small and long images
Problem Statement I’ve been using image styles, and heavily used “Scale and crop…
May 30, 2018
Static websites have several advantages over dyanamic websites. If you are running your personal blog or portfolio or small websites. Static websites is the way to go.
Although, this post is not for listing benefits of static website. I will write more on this in another post.
{
"Version": "2012-10-17",
"Id": "Policy1527570565509",
"Statement": [
{
"Sid": "Stmt1527570562766",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::www.gyanblog.com/*"
}
]
}
Remember to replace your bucket name in Resource above.
Note: It will now show your bucket as Public access. You require to have this bucket public read access.
Note, for SEO purpose you would want your website to open on either www. version or non-www version. Create another bucket with non-www version, say: gyanblog.com
{
"Version": "2012-10-17",
"Id": "Policy1527570565509",
"Statement": [
{
"Sid": "Stmt1527570562766",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::gyanblog.com/*"
}
]
}
Note: the non-www bucket above.
Note: We will have our website to open on https protocol. With cloudflare free SSL support.
Now, copy your website files over ot this bucket.
Note down your URL from static website hosting tab. Try opening that URL in browser. You should see your website. If you are not seeing expected result. You should see above steps carefully.
Proceed only when you see your website above.
I assume you have registered on cloudflare free account, and added your website.
From where you purchased your domain, goto its DNS setting. And, change its nameservers as mentioned in DNS tab of cloudflare. In my case,
Wait for few minutes, to allow DNS changes to be done. It should be done with in 10 minutes. But, in some cases, it might take hours.
Now, if you open your website name. You would see your static website pages.
All set.
Hope you enjoyed the post.
Problem Statement I’ve been using image styles, and heavily used “Scale and crop…
Problem Statement I developed a simple ReactJS application where I have used…
I was using On page optimization of the article pages, and found that meta…
Introduction This post is about hosting ElasticSearch cluster on dockerised…
Introduction In this post, we will see Python 3.9.x patch for FIPS enabled…
Introduction This post is about syncing your mongodo database data to…
Introduction This post has the complete code to send email through smtp server…
Introduction In a normal email sending code from python, I’m getting following…
Introduction In one of my app, I was using to talk to . I have used some event…
Introduction So you have a Django project, and want to run it using docker image…
Introduction It is very important to introduce few process so that your code and…
Introduction In this post, we will see a sample Jenkin Pipeline Groovy script…