From e81896cc972ef3b60de4f1f841b73fefe86612e5 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Sat, 9 Jan 2016 00:41:41 +0100 Subject: [PATCH] This makes the headline of the post list page customizable. (Closes #166) --- DOCUMENTATION.md | 14 ++++++++++++++ assets/js/src/__init.coffee | 1 + index.hbs | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index 37b3177d..e1c4772b 100644 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -180,6 +180,20 @@ var profile_resume ='Software Engineer'; ``` +### 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 + +``` + ### 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. diff --git a/assets/js/src/__init.coffee b/assets/js/src/__init.coffee index 806140b9..4aad325c 100755 --- a/assets/js/src/__init.coffee +++ b/assets/js/src/__init.coffee @@ -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' diff --git a/index.hbs b/index.hbs index 3f609fa4..dae73ea8 100755 --- a/index.hbs +++ b/index.hbs @@ -1,6 +1,6 @@ {{!< default}} -

Writings.

+

Writings.

    {{#foreach posts}}