HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //var/www/quadcode.com/src/components/blocks/blog/PostReadAlso.svelte
<script lang="ts">
  import type { IPost } from "$type/post";
  import { getLocaleUrl, getRouteByPostType, t } from "$lib/translations";
  export let data: IPost;
</script>

<div class="read-also">
{#if data.readAlso.length}
  <h3>{$t('blog.moreOnThis')}</h3>
  <ul class="read-also-list">
    {#each data.readAlso as post}
      <li><a href="{getLocaleUrl(`/${getRouteByPostType(post?.type ?? '')}/${post.slug}`)}">{post.title}</a></li>
    {/each}
  </ul>
{/if}
</div>

<style lang="scss">
  .read-also { margin-bottom: 48px; }
  .read-also h3 { font-size: 1rem; font-weight: 700; color: #141414; margin-bottom: 12px; }
  .read-also-list { list-style: none; padding: 0; }
  .read-also-list li {
    padding: 12px 0; border-bottom: 1px solid #eaedf0;
  }
  .read-also-list li:last-child { border-bottom: none; }
  .read-also-list a {
    font-size: 0.9375rem; font-weight: 500; color: #141414;
    transition: color 0.2s;
  }
  .read-also-list a:hover { color: #E62334; }
</style>