Skip to content

Commit

Permalink
SEO friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
subhadipghorui committed Feb 9, 2021
1 parent b89e011 commit 2c88db5
Show file tree
Hide file tree
Showing 12 changed files with 322 additions and 25 deletions.
4 changes: 3 additions & 1 deletion public_html/robots.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
User-agent: *
Disallow:
Allow:/*
Disallow: /user/*
Disallow: /admin/*
5 changes: 5 additions & 0 deletions public_html/storage/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*
!/category/
!/post/
!/user/
!.gitignore
41 changes: 41 additions & 0 deletions resources/views/categories.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,45 @@
@extends('layouts.frontend.app')
@section('title')
Post Categories | myiotlab
@endsection

@push('header')
<!-- Author Meta -->
<meta name="author" content="myiotlab" />
<!-- Meta Description -->
<meta name="description" content="A Blog site about web development, web designed, iot projects and laravel tutorials." />
<meta name="image" content="{{asset('/frontend/ing/sitelogo.png')}}" />
<!-- Meta Keyword -->
<meta name="keywords" content="HTML, CSS, JavaScript, PHP, DATABASE, POSTGRES, MYSQL, WEB MAPPING, GIS, RS, REMOTE SENSING, ARDUINO, IOT, MYIOTLAB, BLOG, SUBHADIP GHORUI, WEB DEVELOPMENT, WEB DESIGNED, LARAVEL" />

<meta property="og:type" content="website" />

<meta property="og:title" content="myiotlab" />

<meta property="og:description" content="A Blog site about web development, web designed, iot projects and laravel tutorials." />

<meta property="og:url" content="{{asset('/')}}" />

<meta property="og:site_name" content="myiotlab" />

{{-- tell seo this is main page --}}
<link rel="canonical" href="{{ config('app.url', 'http://myiotlab.in/') }}}" />


{{-- Tweeter --}}
<meta name="twitter:title" content="myiotlab">

<meta name="twitter:description" content="A Bloge site about web development, web designed, iot projects and laravel tutorials.">

<meta name="twitter:image" content="{{asset('/frontend/ing/sitelogo.png')}}">

<meta name="twitter:site" content="@myiotlab">

<meta name="twitter:creator" content="@subhadipghorui">

<link rel="alternate" type="application/rss+xml" href="{{asset('/frontend/ing/sitelogo.png')}}" title="myiotlab" >

@endpush
@section('content')
<!-- Start banner Area -->
<section class="generic-banner relative">
Expand Down
41 changes: 41 additions & 0 deletions resources/views/categoryPost.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,45 @@
@extends('layouts.frontend.app')
@section('title')
Category Post | myiotlab
@endsection

@push('header')
<!-- Author Meta -->
<meta name="author" content="myiotlab" />
<!-- Meta Description -->
<meta name="description" content="A Blog site about web development, web designed, iot projects and laravel tutorials." />
<meta name="image" content="{{asset('/frontend/ing/sitelogo.png')}}" />
<!-- Meta Keyword -->
<meta name="keywords" content="HTML, CSS, JavaScript, PHP, DATABASE, POSTGRES, MYSQL, WEB MAPPING, GIS, RS, REMOTE SENSING, ARDUINO, IOT, MYIOTLAB, BLOG, SUBHADIP GHORUI, WEB DEVELOPMENT, WEB DESIGNED, LARAVEL" />

<meta property="og:type" content="website" />

<meta property="og:title" content="myiotlab" />

<meta property="og:description" content="A Blog site about web development, web designed, iot projects and laravel tutorials." />

<meta property="og:url" content="{{asset('/')}}" />

<meta property="og:site_name" content="myiotlab" />

{{-- tell seo this is main page --}}
<link rel="canonical" href="{{ config('app.url', 'http://myiotlab.in/') }}}" />


{{-- Tweeter --}}
<meta name="twitter:title" content="myiotlab">

<meta name="twitter:description" content="A Bloge site about web development, web designed, iot projects and laravel tutorials.">

<meta name="twitter:image" content="{{asset('/frontend/ing/sitelogo.png')}}">

<meta name="twitter:site" content="@myiotlab">

<meta name="twitter:creator" content="@subhadipghorui">

<link rel="alternate" type="application/rss+xml" href="{{asset('/frontend/ing/sitelogo.png')}}" title="myiotlab" >

@endpush
@section('content')

<!-- Start top-section Area -->
Expand Down
40 changes: 40 additions & 0 deletions resources/views/index.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
@extends('layouts.frontend.app')
@section('title')
myiotlab
@endsection

@push('header')
<!-- Author Meta -->
<meta name="author" content="myiotlab" />
<!-- Meta Description -->
<meta name="description" content="A Blog site about web development, web designed, iot projects and laravel tutorials." />
<meta name="image" content="{{asset('/frontend/ing/sitelogo.png')}}" />
<!-- Meta Keyword -->
<meta name="keywords" content="HTML, CSS, JavaScript, PHP, DATABASE, POSTGRES, MYSQL, WEB MAPPING, GIS, RS, REMOTE SENSING, ARDUINO, IOT, MYIOTLAB, BLOG, SUBHADIP GHORUI, WEB DEVELOPMENT, WEB DESIGNED, LARAVEL" />

<meta property="og:type" content="website" />

<meta property="og:title" content="myiotlab" />

<meta property="og:description" content="A Blog site about web development, web designed, iot projects and laravel tutorials." />

<meta property="og:url" content="{{asset('/')}}" />

<meta property="og:site_name" content="myiotlab" />

{{-- tell seo this is main page --}}
<link rel="canonical" href="{{ config('app.url', 'http://myiotlab.in/') }}}" />


{{-- Tweeter --}}
<meta name="twitter:title" content="myiotlab">

<meta name="twitter:description" content="A Bloge site about web development, web designed, iot projects and laravel tutorials.">

<meta name="twitter:image" content="{{asset('/frontend/ing/sitelogo.png')}}">

<meta name="twitter:site" content="@myiotlab">

<meta name="twitter:creator" content="@subhadipghorui">

<link rel="alternate" type="application/rss+xml" href="{{asset('/frontend/ing/sitelogo.png')}}" title="myiotlab" >

@endpush
@section('content')

<!-- start banner Area -->
Expand Down
5 changes: 4 additions & 1 deletion resources/views/layouts/backend/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Sufee Admin - HTML5 Admin Template</title>
<title>Dashboard | myiotlab</title>
<meta name="description" content="myiotlab - dashboard" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="csrf-token" content="{{ csrf_token() }}">

{{-- Do not follow this page --}}
<meta name="robots" content="noindex, nofollow">
<link rel="apple-touch-icon" href="{{asset('backend/apple-icon.png')}}" />
<link rel="shortcut icon" href="{{asset('backend/favicon.ico')}}" />

Expand Down
13 changes: 6 additions & 7 deletions resources/views/layouts/frontend/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,14 @@
/>
<!-- Favicon-->
<link rel="shortcut icon" href="img/fav.png" />
<!-- Author Meta -->
<meta name="author" content="myiotlab" />
<!-- Meta Description -->
<meta name="description" content="myiotlab is a personal blogging site about web development, web designed, iot projects and laravel tutorials" />
<!-- Meta Keyword -->
<meta name="keywords" content="HTML, CSS, JavaScript, PHP, DATABASE, POSTGRES, MYSQL, WEB MAPPING, GIS, RS, REMOTE SENSING, ARDUINO, IOT, MYIOTLAB, BLOG, SUBHADIP GHORUI, WEB DEVELOPMENT, WEB DESIGNED, LARAVEL" />
<!-- meta character set -->
<meta charset="UTF-8" />


{{-- SEO Follow this page --}}
<meta name="robots" content="index, follow">
<!-- Site Title -->
<title>myiotlab</title>
<title>@yield('title')</title>

<link
href="https://fonts.googleapis.com/css?family=Poppins:100,200,400,300,500,600,700"
Expand All @@ -43,6 +41,7 @@
href="{{asset('frontend/high-lightjs/default.min.css')}}">
<script src="{{asset('frontend/high-lightjs/highlight.min.js')}}"></script>
<link rel="stylesheet" href="{{ asset('frontend/codesnippet/lib/highlight/styles/monokai_sublime.css') }}">

<style>
@media only screen and (min-width: 790px) {
.menu1{
Expand Down
48 changes: 43 additions & 5 deletions resources/views/post.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,46 @@
@extends('layouts.frontend.app')
@section('title')
{{$post->title}} | myiotlab
@endsection

@push('header')
<!-- Author Meta -->
<meta name="author" content="{{$post->user->name}}" />
<!-- Meta Description -->
<meta name="description" content="{{$post->title}}" />
<meta name="image" content="{{asset('storage/post/'.$post->image)}}" />
<!-- Meta Keyword -->
<meta name="keywords" content="@foreach ($post->tags as $tag) {{$tag->name}},@endforeach" />

<meta property="og:type" content="article" />

<meta property="og:title" content="{{$post->title}}" />

<meta property="og:description" content="{{$post->title}}" />

<meta property="og:image" content="{{asset('storage/post/'.$post->image)}}" />

<meta property="og:url" content="{{asset('/post/'.$post->slug)}}" />

<meta property="og:site_name" content="myiotlab" />

{{-- tell seo this is main page --}}
<link rel="canonical" href="{{asset('/posts/'.$post->slug)}}" />


{{-- Tweeter --}}
<meta name="twitter:title" content="{{$post->title}}">

<meta name="twitter:description" content="{{$post->title}}">

<meta name="twitter:image" content="{{asset('storage/post/'.$post->image)}}">

<meta name="twitter:site" content="@myiotlab">

<meta name="twitter:creator" content="@{{$post->user->name}}">

<link rel="alternate" type="application/rss+xml" href="{{asset('/post/'.$post->slug)}}" title="{{$post->title}} - myiotlab">

<style>
.single-post-content img {
width: 100%;
Expand Down Expand Up @@ -47,7 +87,7 @@
{{$post->title}}
</h1>
<div class="row d-flex justify-content-between pl-3 mt-2">
<h4 class="col-lg-8 col-md-12 text-muted mt-3">{{$post->category->name}}</h4>
<h4 class="col-lg-8 col-md-12 text-muted mt-3"><a href="{{route('category.post', $post->category->slug)}}">{{$post->category->name}}</a></h4>
<div class="col-lg-4 col-md-12 right-side d-flex justify-content-end">
<div class="desc">
<h2>{{$post->user->name}}</h2>
Expand Down Expand Up @@ -84,12 +124,10 @@
@endguest
</div>
<div class="col-lg-4 single-b-wrap col-md-12">
<i class="fa fa-eye" aria-hidden="true"></i> {{$post->view_count}}
views
<i class="fa fa-eye" aria-hidden="true"></i> {{$post->view_count}} views
</div>
<div class="col-lg-4 single-b-wrap col-md-12">
<i class="fa fa-comment-o" aria-hidden="true"></i> {{$post->comments->count()}}
comments
<i class="fa fa-comment-o" aria-hidden="true"></i> {{$post->comments->count()}} comments
</div>
<div class="row mx-1">
<div class="col-lg-6 single-b-wrap col-md-12 pt-4">
Expand Down
41 changes: 41 additions & 0 deletions resources/views/posts.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,45 @@
@extends('layouts.frontend.app')
@section('title')
All Posts | myiotlab
@endsection

@push('header')
<!-- Author Meta -->
<meta name="author" content="myiotlab" />
<!-- Meta Description -->
<meta name="description" content="A Blog site about web development, web designed, iot projects and laravel tutorials." />
<meta name="image" content="{{asset('/frontend/ing/sitelogo.png')}}" />
<!-- Meta Keyword -->
<meta name="keywords" content="HTML, CSS, JavaScript, PHP, DATABASE, POSTGRES, MYSQL, WEB MAPPING, GIS, RS, REMOTE SENSING, ARDUINO, IOT, MYIOTLAB, BLOG, SUBHADIP GHORUI, WEB DEVELOPMENT, WEB DESIGNED, LARAVEL" />

<meta property="og:type" content="website" />

<meta property="og:title" content="myiotlab" />

<meta property="og:description" content="A Blog site about web development, web designed, iot projects and laravel tutorials." />

<meta property="og:url" content="{{asset('/')}}" />

<meta property="og:site_name" content="myiotlab" />

{{-- tell seo this is main page --}}
<link rel="canonical" href="{{ config('app.url', 'http://myiotlab.in/') }}}" />


{{-- Tweeter --}}
<meta name="twitter:title" content="myiotlab">

<meta name="twitter:description" content="A Bloge site about web development, web designed, iot projects and laravel tutorials.">

<meta name="twitter:image" content="{{asset('/frontend/ing/sitelogo.png')}}">

<meta name="twitter:site" content="@myiotlab">

<meta name="twitter:creator" content="@subhadipghorui">

<link rel="alternate" type="application/rss+xml" href="{{asset('/frontend/ing/sitelogo.png')}}" title="myiotlab" >

@endpush
@section('content')

<!-- Start top-section Area -->
Expand Down
41 changes: 41 additions & 0 deletions resources/views/search.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,45 @@
@extends('layouts.frontend.app')
@section('title')
{{$search ?? ""}} | myiotlab
@endsection

@push('header')
<!-- Author Meta -->
<meta name="author" content="myiotlab" />
<!-- Meta Description -->
<meta name="description" content="A Blog site about web development, web designed, iot projects and laravel tutorials." />
<meta name="image" content="{{asset('/frontend/ing/sitelogo.png')}}" />
<!-- Meta Keyword -->
<meta name="keywords" content="HTML, CSS, JavaScript, PHP, DATABASE, POSTGRES, MYSQL, WEB MAPPING, GIS, RS, REMOTE SENSING, ARDUINO, IOT, MYIOTLAB, BLOG, SUBHADIP GHORUI, WEB DEVELOPMENT, WEB DESIGNED, LARAVEL" />

<meta property="og:type" content="website" />

<meta property="og:title" content="myiotlab" />

<meta property="og:description" content="A Blog site about web development, web designed, iot projects and laravel tutorials." />

<meta property="og:url" content="{{asset('/')}}" />

<meta property="og:site_name" content="myiotlab" />

{{-- tell seo this is main page --}}
<link rel="canonical" href="{{ config('app.url', 'http://myiotlab.in/') }}}" />


{{-- Tweeter --}}
<meta name="twitter:title" content="myiotlab">

<meta name="twitter:description" content="A Bloge site about web development, web designed, iot projects and laravel tutorials.">

<meta name="twitter:image" content="{{asset('/frontend/ing/sitelogo.png')}}">

<meta name="twitter:site" content="@myiotlab">

<meta name="twitter:creator" content="@subhadipghorui">

<link rel="alternate" type="application/rss+xml" href="{{asset('/frontend/ing/sitelogo.png')}}" title="myiotlab" >

@endpush
@section('content')

<!-- Start top-section Area -->
Expand Down
Loading

0 comments on commit 2c88db5

Please sign in to comment.