Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Commit

Permalink
Remove duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
quassy committed Jun 13, 2015
1 parent 9cc5b8f commit a1026e6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
7 changes: 1 addition & 6 deletions _includes/app_content.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@ <h3 id="installation-{{ dist.system }}">{{ dist.system }}</h3>
<p>Add a {{ dist.type }} repository for {{ dist.system }} version {{ repo.version }} to install the software, by entering the following commands in a terminal:</p>
<div class="highlight">
<span class="mega-octicon octicon-terminal"></span>
<pre class="sh"><code>sudo apt-add-repository {{ repo.repository }} && sudo apt-get update
sudo apt-get install {{ repo.package }}</code></pre>
</div>
<div style="display:flex;background:#073642;color:#fff;justify-content:left;align-items:center;">
<span class="mega-octicon octicon-terminal" style="margin:8px"></span>
<pre><code>sudo apt-add-repository {{ repo.repository }} && sudo apt-get update
<pre><code>sudo apt-add-repository {{ repo.repository }} && sudo apt-get update
sudo apt-get install {{ repo.package }}</code></pre>
</div>
{% endfor %}
Expand Down
4 changes: 2 additions & 2 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h1 id="{{ post.title }}">{{ post.title }}</h1>

<div>

<a style="font-weight:bold" href="https://github.com/quassy/elementary-apps/edit/gh-pages/apps/{{ post.title }}.md"><span class="octicon octicon-pencil"></span> Improve this entry on GitHub!</a>
<a class="b" href="https://github.com/quassy/elementary-apps/edit/gh-pages/{{ page.path }}"><span class="octicon octicon-pencil"></span> Improve this entry on GitHub!</a>

{% if post.tags.size > 0 %}
{% capture tags_content %}Tagged with {% endcapture %}
Expand All @@ -64,7 +64,7 @@ <h1 id="{{ post.title }}">{{ post.title }}</h1>
{% assign tags_content = '' %}
{% endif %}

{{ tags_content }}</div>
</div>

</footer>

Expand Down
8 changes: 6 additions & 2 deletions _scss/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,18 @@ ul ul, ol ul {
list-style-type: circle;
}

em, i {
em, i, .i {
font-style: italic;
}

strong, b {
strong, b, .b {
font-weight: bold;
}

u, .u {
text-decoration: underline;
}

img {
max-width: 100%;
}
Expand Down
8 changes: 7 additions & 1 deletion _scss/_highlights.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@

.highlight {
background-color: $base02;
color: $base2;
color: $white;
padding: 5px 10px;
margin: 15px 0;
display: flex;
justify-content: left;
align-items: center;
&:first-child {
margin:8px;
}
}

.highlight pre {
Expand Down

0 comments on commit a1026e6

Please sign in to comment.