Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
SEO-related issues
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
EJelome  
View profile  
 More options Sep 7 2012, 5:09 am
From: EJelome <ejel...@gmail.com>
Date: Fri, 7 Sep 2012 02:09:05 -0700 (PDT)
Local: Fri, Sep 7 2012 5:09 am
Subject: SEO-related issues

Hi everyone, newbie here.

I just want to know how is it possible to use the YAML in the <body>,
especially in the <head> of the web page. I can't seem to find any examples
on the docs and the web.

For example, if I put the following:
---
robots: noindex, nofollow
---

How can I access that 'robots' to be usable in the web page itself. My goal
is to put it to the <meta />, like the following:
<meta robots="robots" content="${}" />


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Doug Latornell  
View profile  
 More options Sep 7 2012, 9:33 am
From: Doug Latornell <d...@douglatornell.ca>
Date: Fri, 7 Sep 2012 06:33:48 -0700
Local: Fri, Sep 7 2012 9:33 am
Subject: Re: SEO-related issues

On Fri, Sep 7, 2012 at 2:09 AM, EJelome <ejel...@gmail.com> wrote:
> Hi everyone, newbie here.

Welcome!

> I just want to know how is it possible to use the YAML in the <body>,
> especially in the <head> of the web page. I can't seem to find any examples
> on the docs and the web.

> For example, if I put the following:
> ---
> robots: noindex, nofollow
> ---

> How can I access that 'robots' to be usable in the web page itself. My goal
> is to put it to the <meta />, like the following:
> <meta robots="robots" content="${}" />

The YAML header data is available for use in templates in the post
namespace. So, with the default templates, you should be able to get
what you want with:

<meta robots="robots" content="${post.robots}" />

in the _templates/site.mako file.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
EJelome  
View profile  
 More options Sep 8 2012, 7:59 am
From: EJelome <ejel...@gmail.com>
Date: Sat, 8 Sep 2012 04:59:04 -0700 (PDT)
Local: Sat, Sep 8 2012 7:59 am
Subject: Re: SEO-related issues

Hi Doug,

When I  tried your solution and rebuild blogofile (to apply the changes),
it returns an error.
I do:

>> blogofile build -s blogname

Then it returns the following:

ERROR:blogofile.template:Error rendering template: permapage.mako

I think I have to declare the keyword 'robots' somewhere (correct me if I'm
wrong) so the compiler will know that it exist, only that I don't know
where should I put it.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
EJelome  
View profile  
 More options Sep 8 2012, 10:39 am
From: EJelome <ejel...@gmail.com>
Date: Sat, 8 Sep 2012 07:39:56 -0700 (PDT)
Local: Sat, Sep 8 2012 10:39 am
Subject: Re: SEO-related issues

Hi Doug,

Using the default installation, I have managed to make it work, however,
not in the directory and file you specified but in:
_templates/blog/post.mako

If I try to access it outside this file, it causes an error.
I guess I'll need to study a bit of Mako first then.
Thanks for your help!

Regards,
EJelome


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »