1
0
mirror of https://github.com/avinal/avinal.github.io.git synced 2026-07-04 07:40:09 +05:30

add robots and alt

Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
This commit is contained in:
2023-01-31 00:50:35 +05:30
parent 5194c4bacd
commit 22fec59069
5 changed files with 12 additions and 7 deletions
+1 -1
View File
@@ -149,7 +149,7 @@ subscriptions model =
view : Model -> View Msg view : Model -> View Msg
view model = view model =
{ title = "Be my SpaceTime" { title = "Welcome to my website"
, body = [ Html.div [ onClick LiveLife, onMouseLeave LiveLife ] [ universeSvg model ] ] , body = [ Html.div [ onClick LiveLife, onMouseLeave LiveLife ] [ universeSvg model ] ]
} }
+3 -3
View File
@@ -3,7 +3,7 @@ module Pages.Posts exposing (Model, Msg, page)
import Components.Footer exposing (footerLinksToSide) import Components.Footer exposing (footerLinksToSide)
import Effect exposing (Effect) import Effect exposing (Effect)
import Html exposing (Html) import Html exposing (Html)
import Html.Attributes exposing (class, datetime, href, src, target) import Html.Attributes exposing (alt, class, datetime, href, src, target)
import Http import Http
import Json.Decode as Json import Json.Decode as Json
import Page exposing (Page) import Page exposing (Page)
@@ -104,7 +104,7 @@ view model =
first :: rest -> first :: rest ->
Html.div [ class "max-w-6xl p-6 mx-auto space-y-6 sm:space-y-12 mb-16" ] Html.div [ class "max-w-6xl p-6 mx-auto space-y-6 sm:space-y-12 mb-16" ]
[ Html.div [ class "block max-w-sm gap-3 mx-auto sm:max-w-full group hover:no-underline focus:no-underline lg:grid lg:grid-cols-12 bg-neutral-900" ] [ Html.div [ class "block max-w-sm gap-3 mx-auto sm:max-w-full group hover:no-underline focus:no-underline lg:grid lg:grid-cols-12 bg-neutral-900" ]
[ Html.a [ class "lg:col-span-7", href <| "/posts/" ++ first.category ++ "/" ++ first.slug ] [ Html.img [ class "object-cover w-full h-64 rounded sm:h-96 lg:col-span-7", src first.image ] [] ] [ Html.a [ class "lg:col-span-7", href <| "/posts/" ++ first.category ++ "/" ++ first.slug ] [ Html.img [ class "object-cover w-full h-64 rounded sm:h-96 lg:col-span-7", src first.image, alt first.title ] [] ]
, Html.div [ class "p-6 space-y-2 lg:col-span-5" ] , Html.div [ class "p-6 space-y-2 lg:col-span-5" ]
[ Html.a [ href <| "/posts/" ++ first.category ++ "/" ++ first.slug ] [ Html.a [ href <| "/posts/" ++ first.category ++ "/" ++ first.slug ]
[ Html.h3 [ class "text-2xl font-semibold sm:text-4xl group-hover:underline group-focus:underline" ] [ Html.h3 [ class "text-2xl font-semibold sm:text-4xl group-hover:underline group-focus:underline" ]
@@ -124,7 +124,7 @@ view model =
card : JsonMeta -> Html msg card : JsonMeta -> Html msg
card blog = card blog =
Html.div [ class "max-w-sm mx-auto group hover:no-underline focus:no-underline bg-neutral-900", href ("/posts/" ++ blog.category ++ "/" ++ blog.slug) ] Html.div [ class "max-w-sm mx-auto group hover:no-underline focus:no-underline bg-neutral-900", href ("/posts/" ++ blog.category ++ "/" ++ blog.slug) ]
[ Html.a [ href <| "/posts/" ++ blog.category ++ "/" ++ blog.slug ] [ Html.img [ class "object-cover w-full h-44 rounded", src blog.image ] [] ] [ Html.a [ href <| "/posts/" ++ blog.category ++ "/" ++ blog.slug ] [ Html.img [ class "object-cover w-full h-44 rounded", src blog.image, alt blog.title ] [] ]
, Html.div [ class "p-6 space-y-2" ] , Html.div [ class "p-6 space-y-2" ]
[ Html.a [ href <| "/posts/" ++ blog.category ++ "/" ++ blog.slug ] [ Html.a [ href <| "/posts/" ++ blog.category ++ "/" ++ blog.slug ]
[ Html.h3 [ class "text-2xl font-semibold group-hover:underline group-focus:underline" ] [ Html.text blog.title ] [ Html.h3 [ class "text-2xl font-semibold group-hover:underline group-focus:underline" ] [ Html.text blog.title ]
+2 -2
View File
@@ -3,7 +3,7 @@ module Pages.Posts.Category_ exposing (Model, Msg, page)
import Components.Footer exposing (footerLinksToSide) import Components.Footer exposing (footerLinksToSide)
import Effect exposing (Effect) import Effect exposing (Effect)
import Html exposing (Html) import Html exposing (Html)
import Html.Attributes exposing (class, datetime, href, src) import Html.Attributes exposing (alt, class, datetime, href, src)
import Http import Http
import Json.Decode as Json import Json.Decode as Json
import Page exposing (Page) import Page exposing (Page)
@@ -104,7 +104,7 @@ view model =
Html.a [ class "flex flex-wrap mb-6 ", href <| "/posts/" ++ blog.category ++ "/" ++ blog.slug ] Html.a [ class "flex flex-wrap mb-6 ", href <| "/posts/" ++ blog.category ++ "/" ++ blog.slug ]
[ Html.div [ class "grow-0 shrink-0 basis-auto w-full md:w-3/12 md:mb-0 ml-auto" ] [ Html.div [ class "grow-0 shrink-0 basis-auto w-full md:w-3/12 md:mb-0 ml-auto" ]
[ Html.div [ class "overflow-hidden relative bg-no-repeat bg-cover ripple" ] [ Html.div [ class "overflow-hidden relative bg-no-repeat bg-cover ripple" ]
[ Html.img [ src blog.image, class "w-full h-44 object-cover rounded" ] [] [ Html.img [ src blog.image, class "w-full h-44 object-cover rounded", alt blog.title ] []
] ]
] ]
, Html.div [ class "grow-0 shrink-0 basis-auto w-full md:w-9/12 xl:w-7/12 p-3 md:mb-0 mr-auto bg-neutral-900" ] , Html.div [ class "grow-0 shrink-0 basis-auto w-full md:w-9/12 xl:w-7/12 p-3 md:mb-0 mr-auto bg-neutral-900" ]
+2 -1
View File
@@ -3,7 +3,7 @@ module Pages.Posts.Category_.Post_ exposing (Model, Msg, page)
import Components.Footer exposing (avatarAndLinks) import Components.Footer exposing (avatarAndLinks)
import Effect exposing (Effect) import Effect exposing (Effect)
import Html exposing (Html) import Html exposing (Html)
import Html.Attributes exposing (class, datetime, href, rel, src) import Html.Attributes exposing (alt, class, datetime, href, rel, src)
import Http import Http
import Layouts import Layouts
import Page exposing (Page) import Page exposing (Page)
@@ -130,6 +130,7 @@ view model =
[ Html.img [ Html.img
[ class "object-cover w-full h-60 sm:h-96 rounded" [ class "object-cover w-full h-60 sm:h-96 rounded"
, src blog.meta.image , src blog.meta.image
, alt blog.meta.title
] ]
[] []
, articleNode blog.content model.fragment , articleNode blog.content model.fragment
+4
View File
@@ -0,0 +1,4 @@
User-agent: *
Allow: /
Sitemap: https://www.example.com/sitemap.xml