Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.

Commit

Permalink
Merge pull request #168 from waja/post_list_headline
Browse files Browse the repository at this point in the history
This makes the headline of the post list page customizable.
  • Loading branch information
Kikobeats committed Jan 9, 2016
2 parents 349ff87 + e81896c commit c43f0dc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,20 @@ var profile_resume ='Software Engineer';
</script>
```

### Posts list headline

By default, the title that you see in the page with your blog posts list is 'Writings.' but you might want to adjust this text.

If you want to customize it, you can do it:

Go to Ghost `Admin Panel``Code Injection``Blog Header` and add:

```html
<script>
var posts_headline = 'Random Stuff';
</script>
```

### Colors

Edit the file `assets/scss/modules/_variables.scss`. Remember that is necessary compile the build to load the new style, so keep running your gulp process in background.
Expand Down
1 change: 1 addition & 0 deletions assets/js/src/__init.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ Uno.app.dataset.device = Uno.device()
# window global properties
$('#profile-title').text window.profile_title if window.profile_title
$('#profile-resume').text window.profile_resume if window.profile_resume
$('#posts-headline').text window.posts_headline if window.posts_headline
window.open_button = window.open_button or '.nav-posts > a'

2 changes: 1 addition & 1 deletion index.hbs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{!< default}}

<h1 style="text-align: center;">Writings.</h1>
<h1 style="text-align: center;" id="posts-headline">Writings.</h1>
<ol id="posts-list">
{{#foreach posts}}
<li>
Expand Down

0 comments on commit c43f0dc

Please sign in to comment.