Skip to content

Instantly share code, notes, and snippets.

View ahmadajmi's full-sized avatar

Ahmad Ajmi ahmadajmi

View GitHub Profile
@ahmadajmi
ahmadajmi / app.min.js
Last active March 29, 2021 12:54
Krabi - Search Title Only
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(k,e){"use strict";function m(e){return null!=e&&e===e.window}var t=[],n=Object.getPrototypeOf,a=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},c=t.push,i=t.indexOf,r={},o=r.toString,w=r.hasOwnProperty,s=w.toString,u=s.call(Object),v={},b=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=k.document,l={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var r,i,o=(n=n||x).createElement("script");if(o.text=e,t)for(r in l)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function p(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?r[o.call(e)]||"object":typeof e}var d="3.5.1",z=function(e,t){return ne
{{!< default}}
{{#page}}
<article class='c-{{ post_class }}'>
{{> post-header }}
<section class='c-content'>
{{ content }}
<br>
<img
alt='{{ title }}'
class='c-post-image lazyload'
data-srcset='
{{ img_url feature_image size='post-image-small' }} 320w,
{{ img_url feature_image size='post-image-medium' }} 731w,
{{ img_url feature_image size='post-image-large' }} 1462w'
sizes='(min-width: 1300px) 731px, (min-width: 1040px) calc(44.58vw + 160px), (min-width: 640px) calc(90vw - 61px), calc(100vw - 32px)'
data-src='{{ img_url feature_image size='post-image-large' }}'
>
{
"Loading": "Yükleniyor",
"More Posts ↓": "Daha Fazla Gönderi ↓",
"All Posts →": "Tüm gönderiler →",
"Recent Posts": "Son Gönderiler",
"Featured Post": "Öne Çıkan Gönderiler",
"Page Not Found": "Sayfa Bulunamadı",
"Published with {ghostLink} & {themeLink}": "{ghostLink} ve {themeLink} ile oluşturuldu",
<style>
@font-face {
  font-family: 'Fraunces';
  font-weight: 100 900;
  font-style: normal;
  font-named-instance: 'Regular';
  font-display: swap;
  src: url('/assets/fonts/Fraunces.ttf') format('truetype');
}
<style>
@media (prefers-color-scheme: dark) {
:root:not([data-user-color-scheme]) {
--color-mode: 'light';
--color-brand: #e7131a;
--color-white: #FFFFFF;
--color-dark: #000C2D;
--color-text: #000C2D;
--color-gray: #4F525F;
--color-error: #CD3D64;
@ahmadajmi
ahmadajmi / toc.md
Last active December 23, 2020 15:21

1. Add the following code in Ghost admin Code Injection (Site Footer)

<script src="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.11.2/tocbot.js"></script>
<script>
  tocbot.init({
    tocSelector: '.toc',
    contentSelector: '.c-content', 
    hasInnerContainers: true
 });
routes:
/signup/: members/signup
/signin/: members/signin
/account/: members/account
collections:
/:
permalink: /{slug}/
template: index
filter: tag:podcast
<style>
[data-user-color-scheme="dark"] .c-logo-dark { display: block; }
:root {
--logo: url('/content/images/2020/06/light-4.png');
}
@media (prefers-color-scheme: dark) {
:root:not([data-user-color-scheme]) {
--logo: url('/assets/dark-logo.png');
@ahmadajmi
ahmadajmi / en.json
Created June 30, 2020 09:53
Aspire
{
"Next": "Next",
"Previous": "Previous",
" (Page %)": " (Page %)",
"Page Not Found": "Page Not Found",
"Recent Posts": "Recent Posts",
"Home Page": "Home Page",
"Featured Post": "Featured Post",
"Share on Twitter": "Share on Twitter",
"Share on Facebook": "Share on Facebook",