Skip to content

Commit

Permalink
Merge pull request #38 from Kusum4coding/develop
Browse files Browse the repository at this point in the history
Made changes(added code with help of AI) in `article.html` and `article_row.html` file in order make the web view better of this page
  • Loading branch information
mantejjosan authored Sep 4, 2024
2 parents 0439c82 + 6a52cd9 commit 8a6f99f
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 32 deletions.
Original file line number Diff line number Diff line change
@@ -1,32 +1,46 @@
{% extends "templates/web.html" %}
{% extends "templates/web.html" %}

{% block page_content %}

<div class="py-20 row">
<div class="col-sm-2">
<img alt="{{ title }}" src="{{ image }}"/>
<div class="col-sm-2">
<img
alt="{{ title }}"
src="{{ image }}"
srcset="{{ image }} 1x, {{ image_large }} 2x"
sizes="(max-width: 768px) 100vw, 50vw"
loading="lazy"
/>
</div>
<div class="col">
<h1>{{ title }}</h1>
<p class="lead">By {{ author }}</p>
<div>
{%- if status == 'Available' -%}
<span class="badge badge-success">Available</span>
{%- elif status == 'Issued' -%}
<span class="badge badge-primary">Issued</span>
{%- endif -%}
</div>
<div class="mt-4">
<div>Publisher: <strong>{{ publisher }}</strong></div>
<div>ISBN: <strong>{{ isbn }}</strong></div>
</div>
<p>{{ description }}</p>
</div>
</div>
<div class="col">
<h1>{{ title }}</h1>
<p class="lead">By {{ author }}</p>
<div>

{%- if status == 'Available' -%}

<span class="badge badge-success">Available</span>
{%- elif status == 'Issued' -%}

<span class="badge badge-primary">Issued</span>

{%- endif -%}

</div>
<div class="mt-4">
<div>Publisher: <strong>{{ publisher }}</strong></div>
<div>ISBN: <strong>{{ isbn }}</strong></div>
</div>
<p>{{ description }}</p>
</div>
</div>
<!-- Structured Data for SEO -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Book",
"name": "{{ title }}",
"author": "{{ author }}",
"publisher": "{{ publisher }}",
"isbn": "{{ isbn }}",
"description": "{{ description }}",
"image": "{{ image }}"
}
</script>

{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
<div class="py-8 row">
<div class="col-sm-1">
<img alt="{{ doc.name }}" src="{{ doc.image }}"/>
</div>
<div class="col">
<a class="font-size-lg" href="{{ doc.route }}">{{ doc.name }}</a>
<p class="text-muted">By {{ doc.author }}</p>
</div>
<div class="col-sm-1">
<img
alt="{{ doc.name }}"
src="{{ doc.image }}"
srcset="{{ doc.image }} 1x, {{ doc.image_large }} 2x"
sizes="(max-width: 768px) 100vw, 50vw"
loading="lazy"
class="img-thumbnail"
/>
</div>
<div class="col">
<a
class="font-size-lg"
href="{{ doc.route }}"
title="Read more about {{ doc.name }}"
>
{{ doc.name }}
</a>
<p class="text-muted">By {{ doc.author }}</p>
</div>
</div>

0 comments on commit 8a6f99f

Please sign in to comment.