Skip to content
This repository was archived by the owner on Mar 13, 2023. It is now read-only.

Commit a6c2799

Browse files
committed
add favicons to backend layout and recent tutorials on homepage
1 parent 5c4061a commit a6c2799

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

resources/views/vendor/core/admin/master.blade.php

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@
77
<meta name="viewport" content="width=device-width, initial-scale=1">
88
<meta name="csrf-token" content="{{ csrf_token() }}">
99
<meta name="api-token" content="{{ auth()->user()->api_token ?? '' }}">
10-
1110
<title>@yield('title') – Console {{ config('typicms.'.config('typicms.admin_locale').'.website_title') }}</title>
12-
11+
<!-- Favicon -->
12+
<link rel="apple-touch-icon" href="{{ asset('img/favicons/apple-touch-icon.png') }}" sizes="180x180">
13+
<link rel="icon" type="image/png" href="{{ asset('img/favicons/favicon-32x32.png') }}" sizes="32x32">
14+
<link rel="icon" type="image/png" href="{{ asset('img/favicons/favicon-16x16.png') }}" sizes="16x16">
15+
<link rel="manifest" href="{{ asset('img/favicons/site.webmanifest') }}">
16+
<link rel="mask-icon" href="{{ asset('img/favicons/safari-pinned-tab.svg') }}" color="#00795d">
17+
<meta name="theme-color" content="#fff">
18+
<meta name="mobile-web-app-capable" content="yes">
1319
@stack('css')
14-
1520
<link href="{{ App::environment('production') ? mix('/css/admin.css') : asset('/css/admin.css') }}" rel="stylesheet">
16-
1721
</head>
1822

1923
<body ontouchstart="" class="@can('see-navbar')has-navbar @endcan @yield('bodyClass')">

resources/views/vendor/pages/public/home.blade.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,18 @@
2525
<a href="#" class="block__link">@lang('db.All tutorials')</a>
2626
</header>
2727
<div class="last-posts">
28-
28+
@if ($latestTutorials = Tutorials::latest(6) and $latestTutorials->count() > 0)
29+
@foreach($latestTutorials as $tutorial)
30+
<article class="last_post" itemscope itemtype="http://schema.org/Article">
31+
<time class="last-post__date">{{ $tutorial->created_at->format('M d, Y') }}</time>
32+
<h6 class="last-post__title"><a href="{{ $tutorial->uri() }}">{{ $tutorial->title }}</a></h6>
33+
<p class="last-post__summary">
34+
{{ str_limit($tutorial->summary, 60) }}
35+
</p>
36+
<strong class="last-post__author text-primary"><span>{{ __('by') }}</span> {{ $tutorial->user->getFullName() }}</strong>
37+
</article>
38+
@endforeach
39+
@endif
2940
</div>
3041
</div>
3142
<div class="next-event">

0 commit comments

Comments
 (0)