Merge pull request #18 from nishanths/fix-icons-centering

.container .content CSS and .post-item HTML fixes
This commit is contained in:
Nishanth Shanmugham
2016-10-08 00:18:24 -05:00
committed by GitHub
4 changed files with 13 additions and 8 deletions

View File

@@ -39,6 +39,10 @@ hugo -t cocoa
## Usage
#### config.toml
Please see the sample [`config.toml`](https://github.com/nishanths/cocoa-hugo-theme/blob/master/exampleSite/config.toml) in `exampleSite/`.
#### Creating Content
* Posts should generally go under a `content/blog` directory. Typically you would run:
@@ -47,7 +51,7 @@ hugo -t cocoa
hugo new blog/your-new-post.md
````
(You may need to set `draft = false` in the new post's front matter for it to appear on your site.)
You may need to set `draft = false` in the new post's front matter for it to appear on your site.
* Fixed pages such as an About page should preferably go under a `content/fixed` or be present at the root of the `contents` directory.
@@ -55,10 +59,6 @@ hugo new blog/your-new-post.md
$ hugo new fixed/about.md
````
#### config.toml
Please see the sample [`config.toml`](https://github.com/nishanths/cocoa-hugo-theme/blob/master/exampleSite/config.toml) in `exampleSite/`.
#### Example site
An example site is available in `exampleSite/`.

View File

@@ -286,6 +286,8 @@ section.icons {
}
.content {
width: auto;
a {
margin-left: 6px;
margin-right: 6px;
@@ -576,7 +578,7 @@ img {
}
img.profile {
min-width:100%;
min-width:100%;
}
@media (min-width: @wide-1-breakpoint) {

View File

@@ -1,4 +1,4 @@
<li class="post-item">
<div class="meta">{{ .Date.Format .Site.Params.DateForm }}</div>
<a href="{{ .Permalink }}"><div>{{ .Title }}</div></a>
<span class="meta">{{ .Date.Format .Site.Params.DateForm }}</span>
<a href="{{ .Permalink }}"><span>{{ .Title }}</span></a>
</li>

View File

@@ -274,6 +274,9 @@ section.icons .container {
-ms-justify-content: center;
justify-content: center;
}
section.icons .content {
width: auto;
}
section.icons .content a {
margin-left: 6px;
margin-right: 6px;