Commit e7912e43 by Bagus Pambudi

tambah meta

parent eda1371a
...@@ -14,6 +14,15 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= ...@@ -14,6 +14,15 @@ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
<meta name="language" content="{{Session::get('selected_language')}}"> <meta name="language" content="{{Session::get('selected_language')}}">
<meta name="geo.placename" content="Surabaya"> <meta name="geo.placename" content="Surabaya">
<meta name="geo.region" content="Indonesia"> <meta name="geo.region" content="Indonesia">
<meta property="og:type" content="website" />
<meta property="og:site_name" content="{{$setting['web_title']}}" />
<meta property="og:title" content="{{$setting['web_title']}}" />
<meta property="og:url" content="{{ url('') }}" />
<meta property="og:description" content="{{$setting['web_title']}}" />
<meta property="og:locale" content="{{ app()->getLocale()}}" />
<meta property="og:image" content="https://www.unesa.ac.id/assets/images/logo.png" />
<meta property="og:image:secure_url" content="https://www.unesa.ac.id/assets/images/logo.png" />
<meta property="og:image:type" content="image/png" />
@yield('meta') @yield('meta')
<link rel="alternate" hreflang="id-id" href="{{ url('') }}" /> <link rel="alternate" hreflang="id-id" href="{{ url('') }}" />
<link rel="alternate" hreflang="en-us" href="{{ url('') }}" /> <link rel="alternate" hreflang="en-us" href="{{ url('') }}" />
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
<meta name="language" content="{{Session::get('selected_language')}}"> <meta name="language" content="{{Session::get('selected_language')}}">
<meta name="geo.placename" content="Surabaya"> <meta name="geo.placename" content="Surabaya">
<meta name="geo.region" content="Indonesia"> <meta name="geo.region" content="Indonesia">
<meta property="og:type" content="website" />
<!-- Bootstrap Styles --> <!-- Bootstrap Styles -->
<link href="https://statik.unesa.ac.id/profileunesa_konten_statik/front/css/bootstrap.css" rel="stylesheet"> <link href="https://statik.unesa.ac.id/profileunesa_konten_statik/front/css/bootstrap.css" rel="stylesheet">
......
@extends('webprofile.front.jollyany.master') @extends('webprofile.front.jollyany.master2')
@section('meta') @section('meta')
<title>{{$data?$data->title:$setting['web_title']}}</title>
<meta name="{{ Str::slug($data->title) }}" content="custom"/> <meta name="{{ Str::slug($data->title) }}" content="custom"/>
<meta name="description" content="{!! strip_tags(substr(html_entity_decode($data->content,ENT_COMPAT,"UTF-8"),0 , 200)) !!}"> <meta name="description" content="{!! strip_tags(substr(html_entity_decode($data->content,ENT_COMPAT,"UTF-8"),0 , 200)) !!}">
<meta name="keywords" content="{{ $data->keys }}"> <meta name="keywords" content="{{ $data->keys }}">
<meta name="author" content="{{ $setting['header_admin'] }}"> <meta name="author" content="{{ $setting['header_admin'] }}">
<meta property="og:site_name" content="{{$setting['web_title']}}" />
<meta property="og:title" content="{{$data->title}}" />
<meta property="og:url" content="{{ url('page/'.$data->slug) }}" />
<meta property="og:description" content="{!! strip_tags(substr(html_entity_decode($data->content,ENT_COMPAT,"UTF-8"),0 , 200)) !!}" />
<meta property="og:locale" content="{{Session::get('selected_language')}}" />
<meta property="og:image" content="{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $data->thumbnail }}" />
<meta property="og:image:secure_url" content="{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $data->thumbnail }}" />
<meta property="og:image:type" content="image/{{pathinfo($data->thumbnail, PATHINFO_EXTENSION)}}" />
@endsection @endsection
@section('content') @section('content')
......
@extends('webprofile.front.jollyany.master2') @extends('webprofile.front.jollyany.master2')
@section('meta') @section('meta')
<title>{{$data->title}}</title> <title>{{$data?$data->title:$setting['web_title']}}</title>
<meta name="description" content="{!! strip_tags(substr(html_entity_decode($data->content,ENT_COMPAT,"UTF-8"),0 , 200)) !!}"> <meta name="description" content="{!! strip_tags(substr(html_entity_decode($data->content,ENT_COMPAT,"UTF-8"),0 , 200)) !!}">
<meta name="keywords" content="{{ $data->keys }}"> <meta name="keywords" content="{{ $data->keys }}">
<meta name="author" content="{{ $setting['header_admin'] }}"> <meta name="author" content="{{ $setting['header_admin'] }}">
<meta property="og:site_name" content="{{$setting['web_title']}}" />
<meta property="og:title" content="{{$data->title}}" />
<meta property="og:url" content="{{ url('post/'.$data->slug) }}" />
<meta property="og:description" content="{!! strip_tags(substr(html_entity_decode($data->content,ENT_COMPAT,"UTF-8"),0 , 200)) !!}" />
<meta property="og:locale" content="{{Session::get('selected_language')}}" />
<meta property="og:image" content="{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $data->thumbnail }}" />
<meta property="og:image:secure_url" content="{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $data->thumbnail }}" />
<meta property="og:image:type" content="image/{{pathinfo($data->thumbnail, PATHINFO_EXTENSION)}}" />
@endsection @endsection
@section('content') @section('content')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment