Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
elixir
jekyll-elixir-theme
Commits
a2b55316
Commit
a2b55316
authored
Jul 10, 2019
by
Jacek Lebioda
Browse files
Corrections to post pages
parent
744552ec
Changes
6
Hide whitespace changes
Inline
Side-by-side
_layouts/paginated.html
View file @
a2b55316
...
...
@@ -19,11 +19,11 @@ layout: default
<div
class=
"post"
>
<a
class=
"post-title"
href=
"{{ site.baseurl }}{{ post.url }}"
>
{{ post.title }}
</a>
<span
class=
"post-date"
>
Published on: {{ post.date | date: '%B %d, %Y' }}
</span>
<div
class=
"content"
>
{{ post.content | truncate:
15
0 }}
{{ post.content | truncate:
22
0 }}
</div>
<span
class=
"post-date"
>
Published on: {{ post.date | date: '%B %d, %Y' }}
</span>
</div>
{% endfor %}
...
...
_layouts/paginated_left_col.html
View file @
a2b55316
...
...
@@ -25,11 +25,11 @@ layout: default
<div
class=
"post"
>
<a
class=
"post-title"
href=
"{{ site.baseurl }}{{ post.url }}"
>
{{ post.title }}
</a>
<span
class=
"post-date"
>
Published on: {{ post.date | date: '%B %d, %Y' }}
</span>
<div
class=
"content"
>
{{ post.content | truncate:
15
0 }}
{{ post.content | truncate:
22
0 }}
</div>
<span
class=
"post-date"
>
Published on: {{ post.date | date: '%B %d, %Y' }}
</span>
</div>
{% endfor %}
...
...
_layouts/post.html
View file @
a2b55316
...
...
@@ -12,5 +12,9 @@ layout: default
</header>
{{ content }}
<span
class=
"pull-right"
>
<a
href=
"{{site.baseurl}}/news"
>
Go back to the news
</a>
</span>
</div>
</article>
_sass/elixir/_base.scss
View file @
a2b55316
...
...
@@ -5,7 +5,7 @@ $COLOR_BACKGROUND_HEADER: #023452;
$FONT_DEFAULT
:
'Lato'
,
Verdana
,
Helvetica
,
sans-serif
;
$PADDING_PAGE_LEFT
:
13%
;
$PADDING_PAGE_LEFT_NO_COLUMN
:
2
1
%
;
$PADDING_PAGE_LEFT_NO_COLUMN
:
2
2
.5
%
;
$WIDTH_CONTENT
:
74%
;
$WIDTH_CONTENT_NO_COLUMN
:
58%
;
...
...
_sass/elixir/_layout.scss
View file @
a2b55316
...
...
@@ -408,6 +408,12 @@ div.post {
.post-title
{
font-size
:
25px
;
text-decoration
:
none
;
font-weight
:
600
;
}
.post-date
{
float
:
right
;
font-size
:
smaller
;
}
}
...
...
@@ -465,3 +471,10 @@ button.search {
height
:
50px
;
font-size
:
20px
;
}
.pull-right
{
float
:
right
;
color
:
orange
;
font-weight
:
700
;
font-size
:
larger
;
}
elixir-theme.gemspec
View file @
a2b55316
...
...
@@ -2,7 +2,7 @@
Gem
::
Specification
.
new
do
|
spec
|
spec
.
name
=
"elixir-theme"
spec
.
version
=
"0.
2
.1
9
"
spec
.
version
=
"0.
3
.1"
spec
.
authors
=
[
"jacek.lebioda"
]
spec
.
email
=
[
"jacek.lebioda@uni.lu"
]
...
...
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