mirror of
https://github.com/Noettore/cocoa-eh-hugo-theme.git
synced 2025-10-15 03:36:41 +02:00
.container .content CSS and .post-item HTML fixes
* .container .content for icons should not be 100% to help with centering. * Use span for .post-item internals, otherwise Firefox messes up at smaller screen width with the list bullet and title on separate lines. * README wording Fix #17
This commit is contained in:
10
README.md
10
README.md
@@ -39,6 +39,10 @@ hugo -t cocoa
|
|||||||
|
|
||||||
## Usage
|
## 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
|
#### Creating Content
|
||||||
|
|
||||||
* Posts should generally go under a `content/blog` directory. Typically you would run:
|
* 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
|
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.
|
* 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
|
$ 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
|
#### Example site
|
||||||
|
|
||||||
An example site is available in `exampleSite/`.
|
An example site is available in `exampleSite/`.
|
||||||
|
@@ -286,6 +286,8 @@ section.icons {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
|
width: auto;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
margin-left: 6px;
|
margin-left: 6px;
|
||||||
margin-right: 6px;
|
margin-right: 6px;
|
||||||
@@ -576,7 +578,7 @@ img {
|
|||||||
}
|
}
|
||||||
|
|
||||||
img.profile {
|
img.profile {
|
||||||
min-width:100%;
|
min-width:100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: @wide-1-breakpoint) {
|
@media (min-width: @wide-1-breakpoint) {
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
<li class="post-item">
|
<li class="post-item">
|
||||||
<div class="meta">{{ .Date.Format .Site.Params.DateForm }}</div>
|
<span class="meta">{{ .Date.Format .Site.Params.DateForm }}</span>
|
||||||
<a href="{{ .Permalink }}"><div>{{ .Title }}</div></a>
|
<a href="{{ .Permalink }}"><span>{{ .Title }}</span></a>
|
||||||
</li>
|
</li>
|
||||||
|
@@ -274,6 +274,9 @@ section.icons .container {
|
|||||||
-ms-justify-content: center;
|
-ms-justify-content: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
section.icons .content {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
section.icons .content a {
|
section.icons .content a {
|
||||||
margin-left: 6px;
|
margin-left: 6px;
|
||||||
margin-right: 6px;
|
margin-right: 6px;
|
||||||
|
Reference in New Issue
Block a user