Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
content
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ok1kvk.cz
content
Commits
93317435
Verified
Commit
93317435
authored
9 years ago
by
Isabella Skořepová
Browse files
Options
Downloads
Patches
Plain Diff
Fix few links
and add few command line options use ./index.js --help to learn more
parent
6880c37d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
sitegin/config.js
+4
-2
4 additions, 2 deletions
sitegin/config.js
sitegin/markdown.js
+16
-0
16 additions, 0 deletions
sitegin/markdown.js
theme/templates/partials/base.html.nunj
+1
-1
1 addition, 1 deletion
theme/templates/partials/base.html.nunj
upload
+1
-1
1 addition, 1 deletion
upload
with
22 additions
and
4 deletions
sitegin/config.js
+
4
−
2
View file @
93317435
...
...
@@ -9,13 +9,15 @@ var cli = require('cli');
var
options
=
cli
.
parse
({
noserver
:
[
'
n
'
,
'
Dont run server
'
],
port
:
[
'
p
'
,
'
Port on which server should run
'
,
'
number
'
,
1337
],
uiport
:
[
null
,
'
BrowserSync UI port
'
,
'
number
'
,
'
port+1
'
]
uiport
:
[
null
,
'
BrowserSync UI port
'
,
'
number
'
,
'
port+1
'
],
httpsonly
:
[
null
,
'
Converts all http://ok1kvk.cz links to https
'
],
httponly
:
[
null
,
'
Converts all https://ok1kvk.cz links to http
'
]
});
module
.
exports
=
function
()
{
var
builddir
=
'
build
'
;
if
(
!
options
.
noserver
)
builddir
=
'
build-debug
'
;
if
(
options
.
uiport
==
'
port+1
'
)
{
options
.
uiport
=
options
.
port
+
1
;
}
...
...
This diff is collapsed.
Click to expand it.
sitegin/markdown.js
+
16
−
0
View file @
93317435
...
...
@@ -30,6 +30,8 @@ renderer.paragraph = function(text) {
else
return
'
<p>
'
+
text
+
'
</p>
\n
'
;
}
renderer
.
_link
=
renderer
.
link
;
marked
.
setOptions
({
renderer
:
renderer
,
gfm
:
true
,
...
...
@@ -42,6 +44,20 @@ marked.setOptions({
});
module
.
exports
=
function
(
obj
)
{
var
options
=
obj
.
config
.
options
;
renderer
.
link
=
function
(
href
,
title
,
text
)
{
if
(
options
.
httponly
)
{
if
(
href
.
match
(
/^https:
\/\/
ok1kvk.cz/
))
href
=
href
.
replace
(
'
https://
'
,
'
http://
'
);
}
if
(
options
.
httpsonly
)
{
if
(
href
.
match
(
/^http:
\/\/
ok1kvk.cz/
))
href
=
href
.
replace
(
'
http://
'
,
'
https://
'
);
}
return
renderer
.
_link
(
href
,
title
,
text
);
};
obj
.
pages
.
forEach
(
function
(
article
)
{
renderer
.
image
=
function
(
href
,
title
,
text
)
{
href
=
href
.
split
(
path
.
sep
).
join
(
'
/
'
);
...
...
This diff is collapsed.
Click to expand it.
theme/templates/partials/base.html.nunj
+
1
−
1
View file @
93317435
...
...
@@ -148,7 +148,7 @@
<footer
class=
"page-footer blue"
>
<div
class=
"container s6"
>
<a
class=
"orange-text text-lighten-3"
target=
"_blank"
href=
"https://git.ok1kvk.cz/"
>
Gitlab
</a>
|
<a
class=
"orange-text text-lighten-3"
target=
"_blank"
href=
"http
s
://forum.ok1kvk.cz/"
>
Fórum
</a>
|
<a
class=
"orange-text text-lighten-3"
target=
"_blank"
href=
"http://forum.ok1kvk.cz/"
>
Fórum
</a>
|
<a
class=
"orange-text text-lighten-3"
href=
"/clanek/webkamera/"
>
Webkamera
</a>
|
<a
class=
"orange-text text-lighten-3"
href=
"/clanek/jak-nahlasit-chybu/"
>
Jak nahlásit chybu
</a>
{% block footerlink %}
...
...
This diff is collapsed.
Click to expand it.
upload
+
1
−
1
View file @
93317435
...
...
@@ -12,4 +12,4 @@ echo "Site compiled"
chmod a+X build -R
echo "Uploading to nove.ok1kvk.cz"
lftp -c "set ftp:ssl-allow no; open --user ok1kvk.cz-nove --env-password ftp://ok1kvk.cz/; mirror -c --verbose=9 -e -R -L ./build /"
lftp -c "set ftp:ssl-allow no; open --user ok1kvk.cz-
www-
nove --env-password ftp://ok1kvk.cz/; mirror -c --verbose=9 -e -R -L ./build /"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment