meta_data.go 523 B

1234567891011121314151617181920212223242526
  1. package fetdata
  2. import (
  3. "golang-fave/utils"
  4. )
  5. func (this *FERData) MetaTitle() string {
  6. if this.Wrap.CurrModule == "index" {
  7. return this.DataRow.(*utils.MySql_page).A_meta_title
  8. }
  9. return ""
  10. }
  11. func (this *FERData) MetaKeywords() string {
  12. if this.Wrap.CurrModule == "index" {
  13. return this.DataRow.(*utils.MySql_page).A_meta_keywords
  14. }
  15. return ""
  16. }
  17. func (this *FERData) MetaDescription() string {
  18. if this.Wrap.CurrModule == "index" {
  19. return this.DataRow.(*utils.MySql_page).A_meta_description
  20. }
  21. return ""
  22. }