Skip to content

Commit

Permalink
local or ext imgs
Browse files Browse the repository at this point in the history
  • Loading branch information
exaluc committed Jul 24, 2023
1 parent 3b1869a commit 8f70eb3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1,061 deletions.
7 changes: 6 additions & 1 deletion _layouts/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@
class="article flex flex-col my-4 bg-white text-black dark:bg-black dark:border-gray-700 shadow-md dark:text-white">
<!-- Article Image -->
{%- if post.image -%}
<a href="{{ post.url }}" class="hover:opacity-75">
<a href="{{ site.baseurl }}{{ post.url }}" class="hover:opacity-75">
{% if post.ext_img %}
<img src="{{ post.image }}">
{% else %}
<img src="{{ site.baseurl }}{{ post.image }}">
{% endif %}

</a>
{%-endif-%}
<div class="flex flex-col justify-start p-6">
Expand Down
4 changes: 4 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ <h4 class="font-bold text-xl mb-2"><i class="fas fa-{{ page.toc_icon | default:

<article class="flex flex-col shadow my-4 ">
{%- if page.image -%}
{% if page.ext_img %}
<img src="{{ page.image }}">
{% else %}
<img src="{{ site.baseurl }}{{ page.image }}">
{% endif %}
{% endif %}
<div class="flex flex-col justify-start p-6">
<div class="flex flex-wrap">
Expand Down
1 change: 1 addition & 0 deletions _posts/data/2023-07-12-data-handling-in-software.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ date: 2023-07-12
categories: data
tags: software
image: https://placekitten.com/500/300
ext_img: true
---

In today's digital age, software applications play a pivotal role in handling, managing, and manipulating data. Data, in various formats, can be input by the user, gathered from external sources, or generated by the software itself. Once the data is collected, it's stored, manipulated, and output in various forms to deliver the functionality intended by the software. This process is often so seamless that end users might not even realize the complexity and sophistication behind the data handling process.
Expand Down
Loading

0 comments on commit 8f70eb3

Please sign in to comment.