Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docs
Commits
33c8ec5c
Commit
33c8ec5c
authored
Apr 16, 2016
by
Julius Volz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More markup cleanups/fixes.
parent
cd4f6528
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
13 deletions
+18
-13
index.html
content/blog/index.html
+13
-11
blog.html
layouts/blog.html
+2
-0
blog_sidebar.html
layouts/blog_sidebar.html
+3
-2
No files found.
content/blog/index.html
View file @
33c8ec5c
---
---
title: Blog
title: Blog
---
---
<div
class=
"col-md-9"
>
<div
class=
"row"
>
<
%
sorted_articles
.
each
do
|
post
|
%
>
<div
class=
"col-md-9"
>
<div
class=
"blog doc-content"
>
<
%
sorted_articles
.
each
do
|
post
|
%
>
<h1><
%=
link_to
post
[
:title
],
post
.
path
%
></h1>
<div
class=
"blog doc-content"
>
<aside>
Posted at:
<
%=
get_pretty_date
(
post
)
%
>
by
<
%=
post
[
:author_name
]%
></aside>
<h1><
%=
link_to
post
[
:title
],
post
.
path
%
></h1>
<article
class=
"doc-content"
>
<aside>
Posted at:
<
%=
get_pretty_date
(
post
)
%
>
by
<
%=
post
[
:author_name
]%
></aside>
<
%=
get_post_start
(
post
)
%
>
<article
class=
"doc-content"
>
</article>
<
%=
get_post_start
(
post
)
%
>
</div>
</article>
<
%
end
%
>
</div>
<
%
end
%
>
</div>
<
%=
render
'
blog_sidebar
'
%
>
</div>
</div>
<
%=
render
'
blog_sidebar
'
%
>
layouts/blog.html
View file @
33c8ec5c
<
%
render
'
default
'
do
%
>
<
%
render
'
default
'
do
%
>
<div
class=
"row"
>
<div
class=
"col-md-9 blog doc-content"
>
<div
class=
"col-md-9 blog doc-content"
>
<h1><
%=
item
[
:title
]
%
></h1>
<h1><
%=
item
[
:title
]
%
></h1>
<aside>
Posted at:
<
%=
get_pretty_date
(
item
)
%
>
by
<
%=
item
[
:author_name
]%
></aside>
<aside>
Posted at:
<
%=
get_pretty_date
(
item
)
%
>
by
<
%=
item
[
:author_name
]%
></aside>
...
@@ -22,4 +23,5 @@
...
@@ -22,4 +23,5 @@
</div>
</div>
<
%=
render
'
blog_sidebar
'
%
>
<
%=
render
'
blog_sidebar
'
%
>
</div>
<
%
end
%
>
<
%
end
%
>
layouts/blog_sidebar.html
View file @
33c8ec5c
<div
class=
"col-md-3 side-nav-col"
>
<div
class=
"col-md-3 side-nav-col"
>
<ul
class=
"nav navbar-nav side-nav"
>
<ul
class=
"nav navbar-nav side-nav"
>
<li
class=
"active"
>
<li>
<span
class=
"nav-header"
>
Blog posts
</span>
<span
class=
"nav-header"
>
Blog posts
</span>
<ul
class=
"nav active"
>
<ul
class=
"nav active"
>
<
%
sorted_articles
.
each
do
|
post
|
%
>
<
%
sorted_articles
.
each
do
|
post
|
%
>
<li><
%=
link_to
post
[
:title
],
post
.
path
%
></li>
<li><
%=
link_to
post
[
:title
],
post
.
path
%
></li>
<
%
end
%
>
<
%
end
%
>
</ul>
</ul>
</li>
</ul>
</ul>
</div>
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment