UP | HOME
Impaktor

Impaktor

Inject Emacs intravenously

Example of org-mode to html conversion for blog
Published on Sep 05, 2020 by Impaktor.

This is in Italic and this is bold and this is how underlined looks. We can also use verbatim or code. Use strikethrough if needed.1

Footnotes can easily be inserted using C-c C-x f.

Posts can be published and hosted easily.2

Useful link on CSS here

  1. python code with line numbers

    Use C-c C-, to insert environment in org-mode

    1: print("Start local http-server, (assuming python 3) ")
    

    Command line:

    python -m http.server --directory=public/
    
  2. Github Gist:
  3. Gitlab Snippet
  4. Below is the content of .gitlab-ci.yml:
    image: iquiw/alpine-emacs
    
    .build: &build
      script:
      - emacs --batch --no-init-file --load publish.el --funcall org-publish-all
      artifacts:
        paths:
        - public
    
    pages:
      <<: *build
      only:
      - master
    
    test:
      <<: *build
      except:
      - master
    
  5. Center aligned image with no border, caption:

    about.png

    Figure 1: Bamse Brakar - Theodor Kittelsen

  6. Image with spaced border, 40% size:

    about.png

  7. Image with rounded corners & black border:

    about.png

  8. Table:
    Specs  
    Brand Vostok
    Class Amphibia
    Model 670927
    Movement 2415
    Winding Manual + Automatic
    Jewels 31
    Power reserve < 33 hrs.
    WR 20 ATM
    Dial 41mm
    Lug width 20mm
    Strap material Silicon
    Dial material Steel
    Dial shape Round
    Bezel (smooth)Rotating

1. Section

Demonstrating what sections look like

1.1. sub**1-seciton

One sub section (2 *)

1.1.1. sub**2-section

Two sub-section (3 *)

  1. sub**3-section

    Three subsection (4 *)

    1. sub**4-section

      Four subsection (5 *)

      Check lists:

      • Are we all done [50%]
        • not ticked list
        • ticked list

      Hierarchical bullet list

      • One level
        • two levels
          • three levels

      Enumerated list:

      1. one
      2. two
      3. three

Footnotes:

1

Visit The Org Manual for more detail.

2

It’s easy to publish org-mode pages via GitLab CI and Pages.