Skip to content

Commit 9ad1168

Browse files
committed
first commit
0 parents  commit 9ad1168

File tree

97 files changed

+11832
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+11832
-0
lines changed

.hugo_build.lock

Whitespace-only changes.

archetypes/default.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
+++
2+
date = '{{ .Date }}'
3+
draft = true
4+
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
5+
+++

content/about.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: 'Our Difference'
3+
button: 'About us'
4+
weight: 2
5+
---
6+
7+
Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. ipsum dolor sit amet, et essent mediocritatem quo,

content/posts/test.md

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
+++
2+
date = '2025-02-16T18:21:44+03:00'
3+
draft = false
4+
title = 'First'
5+
tags = ['test']
6+
+++
7+
# Dillinger
8+
## _The Last Markdown Editor, Ever_
9+
10+
11+
Dillinger is a cloud-enabled, mobile-ready, offline-storage compatible,
12+
AngularJS-powered HTML5 Markdown editor.
13+
14+
- Type some Markdown on the left
15+
- See HTML in the right
16+
- ✨Magic ✨
17+
18+
## Features
19+
20+
- Import a HTML file and watch it magically convert to Markdown
21+
- Drag and drop images (requires your Dropbox account be linked)
22+
- Import and save files from GitHub, Dropbox, Google Drive and One Drive
23+
- Drag and drop markdown and HTML files into Dillinger
24+
- Export documents as Markdown, HTML and PDF
25+
26+
Markdown is a lightweight markup language based on the formatting conventions
27+
that people naturally use in email.
28+
As [John Gruber] writes on the [Markdown site][df1]
29+
30+
> The overriding design goal for Markdown's
31+
> formatting syntax is to make it as readable
32+
> as possible. The idea is that a
33+
> Markdown-formatted document should be
34+
> publishable as-is, as plain text, without
35+
> looking like it's been marked up with tags
36+
> or formatting instructions.
37+
38+
This text you see here is *actually- written in Markdown! To get a feel
39+
for Markdown's syntax, type some text into the left window and
40+
watch the results in the right.
41+
42+
## Installation
43+
44+
Dillinger requires [Node.js](https://nodejs.org/) v10+ to run.
45+
46+
Install the dependencies and devDependencies and start the server.
47+
48+
```py
49+
print("Hello, world")
50+
a = 5
51+
c = 10
52+
result = a + c
53+
```
54+
55+
56+
## Development
57+
58+
Want to contribute? Great!
59+
60+
Dillinger uses Gulp + Webpack for fast developing.
61+
Make a change in your file and instantaneously see your updates!
62+
63+
Open your favorite Terminal and run these commands.
64+
65+
First Tab:
66+
67+
```sh
68+
node app
69+
```
70+
71+
Second Tab:
72+
73+
```sh
74+
gulp watch
75+
```
76+
77+
(optional) Third:
78+
79+
```sh
80+
karma test
81+
```
82+
83+
#### Building for source
84+
85+
For production release:
86+
87+
```sh
88+
gulp build --prod
89+
```
90+
91+
Generating pre-built zip archives for distribution:
92+
93+
```sh
94+
gulp build dist --prod
95+
```
96+
97+
## Docker
98+
99+
Dillinger is very easy to install and deploy in a Docker container.
100+
101+
By default, the Docker will expose port 8080, so change this within the
102+
Dockerfile if necessary. When ready, simply use the Dockerfile to
103+
build the image.
104+
105+
```sh
106+
cd dillinger
107+
docker build -t <youruser>/dillinger:${package.json.version} .
108+
```
109+
110+
This will create the dillinger image and pull in the necessary dependencies.
111+
Be sure to swap out `${package.json.version}` with the actual
112+
version of Dillinger.
113+
114+
Once done, run the Docker image and map the port to whatever you wish on
115+
your host. In this example, we simply map port 8000 of the host to
116+
port 8080 of the Docker (or whatever port was exposed in the Dockerfile):
117+
118+
```sh
119+
docker run -d -p 8000:8080 --restart=always --cap-add=SYS_ADMIN --name=dillinger <youruser>/dillinger:${package.json.version}
120+
```
121+
122+
> Note: `--capt-add=SYS-ADMIN` is required for PDF rendering.
123+
124+
Verify the deployment by navigating to your server address in
125+
your preferred browser.
126+
127+
```sh
128+
127.0.0.1:8000
129+
```

content/posts/test2.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
+++
2+
date = '2025-02-16T19:16:42+03:00'
3+
draft = true
4+
title = 'Test2'
5+
+++
6+
Dillinger is a cloud-enabled, mobile-ready, offline-storage compatible,
7+
AngularJS-powered HTML5 Markdown editor.
8+
9+
- Type some Markdown on the left
10+
- See HTML in the right
11+
- ✨Magic ✨
12+
13+
## Features
14+
15+
- Import a HTML file and watch it magically convert to Markdown
16+
- Drag and drop images (requires your Dropbox account be linked)
17+
- Import and save files from GitHub, Dropbox, Google Drive and One Drive
18+
- Drag and drop markdown and HTML files into Dillinger
19+
- Export documents as Markdown, HTML and PDF

hugo.toml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
baseURL = 'https://example.org/'
2+
languageCode = 'en-us'
3+
title = 'Vitaliy Khatuntsev'
4+
theme="archie"
5+
copyright = "Vitaliy Khatuntsev"
6+
# Code Highlight
7+
pygmentsstyle = "monokai"
8+
pygmentscodefences = true
9+
pygmentscodefencesguesssyntax = true
10+
11+
12+
pagerSize=3 # articles per page
13+
14+
[params]
15+
mode="auto" # color-mode → light,dark,toggle or auto
16+
useCDN=false # don't use CDNs for fonts and icons, instead serve them locally.
17+
subtitle = "Hello there my name is Vitaliy. "
18+
mathjax = false # enable MathJax support
19+
katex = true # enable KaTeX support
20+
21+
# Social Tags
22+
23+
[[params.social]]
24+
name = "GitHub"
25+
icon = "github"
26+
url = "https://github.com/vihrom"
27+
28+
[[params.social]]
29+
name = "telegram"
30+
icon = "send"
31+
url = "https://t.me/duend0"
32+
33+
# Main menu Items
34+
35+
[[menu.main]]
36+
name = "Home"
37+
url = "/"
38+
weight = 1
39+
40+
[[menu.main]]
41+
name = "All posts"
42+
url = "/posts"
43+
weight = 2
44+
45+
[[menu.main]]
46+
name = "About"
47+
url = "/about"
48+
weight = 3
49+
50+
[[menu.main]]
51+
name = "Tags"
52+
url = "/tags"
53+
weight = 4

public/about/index.html

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
<!DOCTYPE html>
2+
<html><head lang="en"><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
3+
<meta charset="utf-8" />
4+
<meta http-equiv="X-UA-Compatible" content="IE=edge"><title>Our Difference - Vitaliy Khatuntsev</title><meta name="viewport" content="width=device-width, initial-scale=1">
5+
<meta name="description" content="Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. ipsum dolor sit amet, et essent mediocritatem quo," />
6+
<meta property="og:image" content=""/>
7+
<meta property="og:url" content="http://localhost:1313/about/">
8+
<meta property="og:site_name" content="Vitaliy Khatuntsev">
9+
<meta property="og:title" content="Our Difference">
10+
<meta property="og:description" content="Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. ipsum dolor sit amet, et essent mediocritatem quo,">
11+
<meta property="og:locale" content="en_us">
12+
<meta property="og:type" content="article">
13+
14+
<meta name="twitter:card" content="summary">
15+
<meta name="twitter:title" content="Our Difference">
16+
<meta name="twitter:description" content="Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. ipsum dolor sit amet, et essent mediocritatem quo,">
17+
18+
<link href="http://localhost:1313/css/fonts.11a1877508139eac0b5b4852ceb110c35641b3533321e66e39149e901ed5756b.css" rel="stylesheet">
19+
20+
21+
22+
<link rel="stylesheet" type="text/css" media="screen" href="http://localhost:1313/css/main.e08e3d47ef734c0d298ed0fb46ed50640341570139eb362f34ac2720f01a4f58.css" />
23+
<link id="darkModeStyle" rel="stylesheet" type="text/css" href="http://localhost:1313/css/dark.a6ecc2a65313cfac5f20a92af993901cecda7fc68011af46a4c24abe67a922f7.css" media="(prefers-color-scheme: dark)" /><link rel="stylesheet" href="http://localhost:1313/katex/katex.min.css ">
24+
<script defer src="http://localhost:1313/katex/katex.min.js"></script>
25+
<script defer src="http://localhost:1313/katex/auto-render.min.js" onload="renderMathInElement(document.body);"></script>
26+
27+
<script>
28+
document.addEventListener("DOMContentLoaded", function() {
29+
renderMathInElement(document.body, {
30+
delimiters: [
31+
{left: "$$", right: "$$", display: true},
32+
{left: "$", right: "$", display: false}
33+
]
34+
});
35+
});
36+
</script>
37+
</head>
38+
<body>
39+
<div class="content"><header>
40+
<div class="main">
41+
<a href="http://localhost:1313/">Vitaliy Khatuntsev</a>
42+
</div>
43+
<nav>
44+
45+
<a href="/">Home</a>
46+
47+
<a href="/posts">All posts</a>
48+
49+
<a href="/about">About</a>
50+
51+
<a href="/tags">Tags</a>
52+
53+
54+
</nav>
55+
</header>
56+
57+
<main>
58+
<article>
59+
<div class="post-container">
60+
61+
<div class="post-content">
62+
<div class="title">
63+
<h1 class="title">Our Difference</h1>
64+
<div class="meta">Posted on Jan 1, 1</div>
65+
</div>
66+
67+
<section class="body">
68+
<p>Lorem ipsum dolor sit amet, et essent mediocritatem quo, choro volumus oporteat an mei. ipsum dolor sit amet, et essent mediocritatem quo,</p>
69+
70+
</section>
71+
<div class="post-tags">
72+
73+
</div>
74+
</div>
75+
76+
77+
78+
</div>
79+
80+
</article>
81+
</main>
82+
<footer>
83+
<div style="display:flex"><a class="soc" href="https://github.com/vihrom" rel="me" title="GitHub"><svg class="feather">
84+
<use href="/svg/feather-sprite.51cf5647cb1987f769b616558f2620fd9423d72058490231b391bf6aa3744b55.svg#github" />
85+
</svg></a><a class="border"></a><a class="soc" href="https://t.me/duend0" rel="me" title="telegram"><svg class="feather">
86+
<use href="/svg/feather-sprite.51cf5647cb1987f769b616558f2620fd9423d72058490231b391bf6aa3744b55.svg#send" />
87+
</svg></a><a class="border"></a></div>
88+
<div class="footer-info">
89+
2025 Vitaliy Khatuntsev | <a
90+
href="https://github.com/athul/archie">Archie Theme</a> | Built with <a href="https://gohugo.io">Hugo</a>
91+
</div>
92+
</footer>
93+
94+
</div>
95+
</body>
96+
</html>

0 commit comments

Comments
 (0)