Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
articles:digital-publishing [2025/02/21 14:44] – ipek | articles:digital-publishing [2025/02/22 08:55] (current) – ipek | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | **[[https:// | + | **[[https:// |
[[https:// | [[https:// | ||
Line 7: | Line 7: | ||
**Building a blog-like website with pandoc**: | **Building a blog-like website with pandoc**: | ||
- | 1) You can create a doc file with your usual text editor program, Libre Office for example. You can insert tables to make your menu or buttons, or you can fill the page entirely with tables. Save it as .docx locally in your computer. | + | Using pandoc to create a website might not be the best way, however it can be an easy start, a very DIY ✂️ way of making a website, which you can always edit later on. This guide will show you how to make a start. |
- | 2) Converting the .docx file via command line: | + | **1)** You can create a doc file with your usual text editor program, Libre Office for example. You can insert tables to make your menu or buttons, or you can fill the page entirely with tables. Save it as .docx locally in your computer. |
- | pandoc --extract-media=. -s file_name.docx -t markdown -o file_name.md | + | |
+ | **2)** Converting the .docx file via command line: | ||
+ | < | ||
extract media enables to extract the images and makes a folder for them. -s is the usual Pandoc template that is being used in the markdown format. | extract media enables to extract the images and makes a folder for them. -s is the usual Pandoc template that is being used in the markdown format. | ||
- | 3a) Converting the markdown file into html is possible via the command-line and also via the PanWriter. Via the command line: | + | **3a)** Converting the markdown file into html is possible via the command-line and also via the PanWriter. Via the command line: |
- | pandoc file_name.md -f markdown -t html -s -o file_name.html | + | < |
Or you can export the markdown file to html via PanWriter. | Or you can export the markdown file to html via PanWriter. | ||
Line 28: | Line 30: | ||
You can also [[https:// | You can also [[https:// | ||
- | 3b) Once you have a markdown file, you can convert the markdown file using a custom css file, that you can create yourself. For this, you can use this command: | + | **3b)** Once you have a markdown file, you can convert the markdown file using a custom css file, that you can create yourself. For this, you can use this command: |
< | < |