Skip to content

This repository contains articles and blogs written on various topics

Notifications You must be signed in to change notification settings

Hujaakbar/Articles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Articles

This repository contains articles and blogs written on various topics

Google Blogger Tips 💡

  1. To convert markdown to html, use markdown-to-html converter by Code Beautify. It is better compared to VS Code extension especially when it comes to handling mermaid.js graphs and adding header ids.

  2. To highlight syntax after converting markdown to html, use either hightlight.js or PrimsJS:


    Hightlight.js

    hightlight.js has 3 advantages:

    • maintained more actively than PrismJS
    • more themes than PrismJS
    • Auto-detect language feature
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
    <script>hljs.highlightAll();</script>

    The con is even though there are many themes to choose from, there is no really good one. Below are some of my current picks:

    • base16-windows-high-contrast-light
    • atom-one-light
    • stackoverflow-light
    • intellij-light
    • xcode
    • base16-humanoid-light
    • base16-summerfruit-light
    • vs
    • base16-humanoid-dark
    • atom-one-dark
    • night-owl
    • monokai-sublime
    • felipec

    PrismJS:
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/prism.min.js"></script>
    
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/plugins/autoloader/prism-autoloader.min.js"></script>
    
    <link
        rel="stylesheet"
        href="https://cdn.jsdelivr.net/npm/[email protected]/themes/prism.min.css"
    />
  3. If the article contains mermaid graphs, to render it properly on html webpage, use below cdn:

    <script type="module">
        import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs';
    </script>
  4. Write custom URL in the permalink section of the blogger editor. Otherwise blogger generates url from title, if the title contains non-ASCII characters, it discards those characters.

  5. It is possible to schedule publication of the blog posts.

  6. The theme used for the blog is "Notable Light", CSS styles used to customize the appearance and layout of the theme are stored here: Notable_light_theme_styles.css

About

This repository contains articles and blogs written on various topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages