PurdueAgComm / Extension-2018

1 stars 1 forks source link

County name in header/footer files #12

Closed purduekenny closed 6 years ago

purduekenny commented 6 years ago

Could you create a function that gets the county name if I'm on /county/ so I can use it in any /partials/ file?

For example, currently extension.purdue.edu/benton, Benton County is in the header of the site. I'll probably need to implement something like that.

sfp-john commented 6 years ago

There is a function get_county_name() you can call, I believe from any file or partial, to return the current county that is being used. It'll return "Extension" if no county is detected in the current page path/url. Let me know if this meets your needs.

sfp-nathan commented 6 years ago

This looks like it's done. I'll be sure to test it before closing out this issue.